mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
Added /help command with list of commands
This commit is contained in:
1 parent
13e27e4f0f
commit
136aa11596
1 file changed
+27
@@ -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')
|
||||
]
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user