mbot/commands/etc/help.js

55 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

2024-07-11 09:43:22 +00:00
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('help')
.setDescription('Displays all the commands for the bot'),
async execute(interaction) {
const helpEmbed = new EmbedBuilder()
.setColor(0x0F3061)
.setTitle('Welcome to MBot.')
.addFields(
{
name: 'Help',
value: 'Displays the commands for this bot.'
},
{
name: 'Ping',
value: 'First command for the bot, pong\'s you back!'
},
{
name: 'Ban',
value: 'Bans any person (with permission) on your server with reason.'
},
{
name: 'Kick',
value: 'Kicks any person (with permission) on your server with reason.'
},
{
name: 'Play',
value: 'Plays any music with a query input.'
},
{
name: 'Pause',
value: 'Pauses the current music playing.'
},
{
name: 'Stop',
value: 'Stop the current music playing and gets rid of the queue.'
},
{
name: 'Skip',
value: 'Skips the current track that is playing.'
},
{
name: 'Queue',
value: 'List the current queue in the server.'
},
)
.setTimestamp()
.setFooter({ text: 'MBot' });
await interaction.reply({ embeds: [helpEmbed] });
}
}