@@ -1,51 +1,54 @@
|
||||
const { SlashCommandBuilder, ChannelType } = require("discord.js");
|
||||
const { color } = require("../config/options.json");
|
||||
const { SlashCommandBuilder, ChannelType } = require('discord.js');
|
||||
const { color } = require('../config/options.json');
|
||||
|
||||
module.exports = {
|
||||
name: "help",
|
||||
description: "Help command",
|
||||
type: "slash",
|
||||
|
||||
data: new SlashCommandBuilder().setName("help").setDescription("Help command").setDMPermission(true),
|
||||
name: 'help',
|
||||
description: 'Help command',
|
||||
type: 'slash',
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('help')
|
||||
.setDescription('Help command')
|
||||
.setDMPermission(true),
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
|
||||
const embedColor = Number(color.replace("#", "0x"));
|
||||
const embedColor = Number(color.replace('#', '0x'));
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
{
|
||||
title: "Commands",
|
||||
description: "List of commands",
|
||||
fields: [
|
||||
{
|
||||
name: "/check",
|
||||
value: "Check the stats of a player",
|
||||
},
|
||||
{
|
||||
name: "/reqs",
|
||||
value: "Check the requirements of the guild",
|
||||
},
|
||||
{
|
||||
name: "/update",
|
||||
value: "Update's your roles",
|
||||
},
|
||||
{
|
||||
name: "/help",
|
||||
value: "Shows this message",
|
||||
},
|
||||
],
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction.guild.iconURL({ dynamic: true }),
|
||||
embeds: [{
|
||||
title: 'Commands',
|
||||
description: "List of commands",
|
||||
fields: [
|
||||
{
|
||||
name: '/check',
|
||||
value: 'Check the stats of a player'
|
||||
},
|
||||
footer: {
|
||||
icon_url: interaction.guild.iconURL({ dynamic: true }),
|
||||
text: interaction.guild.name + " | Developed by: @Taken#0001",
|
||||
{
|
||||
name: '/reqs',
|
||||
value: 'Check the requirements of the guild'
|
||||
},
|
||||
{
|
||||
name: '/update',
|
||||
value: 'Update\'s your roles'
|
||||
},
|
||||
{
|
||||
name: '/help',
|
||||
value: 'Shows this message'
|
||||
}
|
||||
],
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction.guild.iconURL({ dynamic: true })
|
||||
},
|
||||
],
|
||||
footer: {
|
||||
icon_url: interaction.guild.iconURL({ dynamic: true }),
|
||||
text: interaction.guild.name + ' | Developed by: @Taken#0001'
|
||||
}
|
||||
}]
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user