Updated music commands
This commit is contained in:
@@ -3,6 +3,8 @@ import { Command } from "interfaces"
|
||||
import play from "./music/play"
|
||||
import leave from "./music/leave"
|
||||
import queue from "./music/queue"
|
||||
import volume from "./music/volume"
|
||||
import skip from "./music/skip"
|
||||
|
||||
export = {
|
||||
name: "music",
|
||||
@@ -24,6 +26,25 @@ export = {
|
||||
.setDescription("The song to play")
|
||||
.setAutocomplete(true)
|
||||
.setRequired(true)))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("volume")
|
||||
.setDescription("Change the volume of the music")
|
||||
.addNumberOption(option =>
|
||||
option
|
||||
.setName("volume")
|
||||
.setDescription("The volume to set")
|
||||
.setMinValue(1)
|
||||
.setMaxValue(100)
|
||||
.setRequired(true)))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("skip")
|
||||
.setDescription("Skip the current song")
|
||||
.addNumberOption(option =>
|
||||
option
|
||||
.setName("amount")
|
||||
.setDescription("The amount of songs to skip")))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("queue")
|
||||
@@ -43,6 +64,16 @@ export = {
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "volume") {
|
||||
volume(interaction)
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "skip") {
|
||||
skip(interaction)
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === "queue") {
|
||||
queue(interaction)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user