Updated music
This commit is contained in:
@@ -5,6 +5,7 @@ import nowplaying from "./music/nowplaying.js"
|
||||
import pause from "./music/pause.js"
|
||||
import play from "./music/play.js"
|
||||
import queue from "./music/queue.js"
|
||||
import repeat from "./music/repeat.js"
|
||||
import skip from "./music/skip.js"
|
||||
import unpause from "./music/unpause.js"
|
||||
import volume from "./music/volume.js"
|
||||
@@ -54,6 +55,22 @@ export default {
|
||||
.setDescription("The amount of songs to skip")
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("repeat")
|
||||
.setDescription("Set repeat mode")
|
||||
.addStringOption(option =>
|
||||
option
|
||||
.setName("mode")
|
||||
.setDescription("The repeat mode")
|
||||
.addChoices(
|
||||
{ name: "Off", value: "off" },
|
||||
{ name: "Track", value: "track" },
|
||||
{ name: "Queue", value: "queue" }
|
||||
)
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("queue")
|
||||
@@ -100,6 +117,11 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "repeat") {
|
||||
repeat(interaction)
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "queue") {
|
||||
queue(interaction)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user