Added /help command with list of commands

This commit is contained in:
Marius Begby committed 2023-07-06 18:10:38 +02:00
1 parent 13e27e4f0f
commit 136aa11596
1 file changed
+27
+27
View File
@@ -0,0 +1,27 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
const { useMainPlayer, useQueue } = require('discord-player');
const { EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('help')
.setDescription('Show a list of commands to use.'),
run: async ({ interaction }) => {
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
`**List of commands**\n` +
`\`/help\` - Show this menu.\n` +
`\`/play\` \`query\` - Add a track to the queue by search query or url.\n` +
`\`/pause\` - Pause or resume the current track.\n` +
`\`/skip\` - Skip the current track.\n` +
`\`/leave\` - Remove bot from voice channel and clear queue.\n` +
`\`/queue\` - Show the list of tracks added to the queue.\n` +
`\`/volume\` \`percentage\` - Show or set the playback volume for tracks.\n`
)
.setColor('#4c73df')
]
});
}
};