Musique/commands.js

35 lines
1 KiB
JavaScript
Raw Permalink Normal View History

const { SlashCommandBuilder } = require("@discordjs/builders");
module.exports = [
new SlashCommandBuilder()
.setName("play")
.setDescription("Plays a song, or adds it to queue")
.addStringOption(option => {
option.setName("song")
.setDescription("The song name")
.setRequired(true);
return option;
}).toJSON(),
new SlashCommandBuilder()
.setName("stop")
.setDescription("Stops a song")
.toJSON(),
new SlashCommandBuilder()
.setName("skip")
.setDescription("Skips a song")
.toJSON(),
new SlashCommandBuilder()
.setName("queue")
.setDescription("Views the queue")
.toJSON(),
2021-12-06 16:10:43 +00:00
new SlashCommandBuilder()
.setName("loop")
.setDescription("Makes the queue play from the start when it has finished all the songs.")
.toJSON(),
2022-01-13 12:08:36 +00:00
new SlashCommandBuilder()
.setName("invite")
.setDescription("Invite me to your server.")
.toJSON(),
2022-01-13 12:08:36 +00:00
]