Updated music commands
This commit is contained in:
@@ -6,6 +6,8 @@ import queue from "./music/queue"
|
||||
import volume from "./music/volume"
|
||||
import skip from "./music/skip"
|
||||
import nowplaying from "./music/nowplaying"
|
||||
import pause from "./music/pause"
|
||||
import unpause from "./music/unpause"
|
||||
|
||||
export = {
|
||||
name: "music",
|
||||
@@ -54,6 +56,14 @@ export = {
|
||||
subcommand
|
||||
.setName("nowplaying")
|
||||
.setDescription("Show the currently playing song"))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("pause")
|
||||
.setDescription("Pause the music"))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("unpause")
|
||||
.setDescription("Unpause the music"))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("leave")
|
||||
@@ -89,6 +99,16 @@ export = {
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "pause") {
|
||||
pause(interaction)
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "unpause") {
|
||||
unpause(interaction)
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "leave") {
|
||||
leave(interaction)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user