Compare commits
1 commit
key-develo
...
master
Author | SHA1 | Date | |
---|---|---|---|
Patrick Hatsune | 859d914696 |
54
commands/etc/help.js
Normal file
54
commands/etc/help.js
Normal 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] });
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue