Add files via upload
This commit is contained in:
33
Commands/help.js
Normal file
33
Commands/help.js
Normal file
@ -0,0 +1,33 @@
|
||||
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: "help",
|
||||
description: "Displays the bots Help page",
|
||||
options: [],
|
||||
|
||||
CommandCreator() {
|
||||
const data = new SlashCommandBuilder()
|
||||
.setName(this.name)
|
||||
.setDescription(this.description);
|
||||
return data.toJSON();
|
||||
},
|
||||
|
||||
async run(bot, interaction) {
|
||||
const userEmbed = new EmbedBuilder()
|
||||
.setColor('#0099ff')
|
||||
.setTitle('Dev Pengu Help')
|
||||
.setURL('https://frankenbot.io/help')
|
||||
.setDescription('A List of Commands for Dev Pengu')
|
||||
.addFields(
|
||||
{ name: '**Help**', value: '`/help`' },
|
||||
{ name: '**Clear**', value: '`/clear amount`' },
|
||||
)
|
||||
|
||||
interaction.reply({ embeds: [userEmbed] })
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
return
|
||||
});
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user