Compare commits

...

1 commit

Author SHA1 Message Date
Patrick Hatsune 859d914696
Added help command 2024-07-11 02:43:22 -07:00
2 changed files with 54 additions and 0 deletions

54
commands/etc/help.js Normal file
View file

@ -0,0 +1,54 @@
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] });
}
}