Added now playing
This commit is contained in:
@@ -5,6 +5,7 @@ import leave from "./music/leave"
|
||||
import queue from "./music/queue"
|
||||
import volume from "./music/volume"
|
||||
import skip from "./music/skip"
|
||||
import nowplaying from "./music/nowplaying"
|
||||
|
||||
export = {
|
||||
name: "music",
|
||||
@@ -49,6 +50,10 @@ export = {
|
||||
subcommand
|
||||
.setName("queue")
|
||||
.setDescription("Show the queue"))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("nowplaying")
|
||||
.setDescription("Show the currently playing song"))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("leave")
|
||||
@@ -79,6 +84,11 @@ export = {
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "nowplaying") {
|
||||
nowplaying(interaction)
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "leave") {
|
||||
leave(interaction)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user