Updated help commands to use command builder

This commit is contained in:
2023-12-15 17:47:24 +01:00
parent 88d0200823
commit a6c207a66d
9 changed files with 30 additions and 28 deletions

View File

@@ -10,20 +10,7 @@ module.exports = {
type: "slash",
dev: false,
public: true,
subcommands: [
{
name: "member",
description: "Get info about a guild memeber",
},
{
name: "info",
description: "Get info about a guild.",
},
{
name: "top",
description: "Get the top guild members based on gexp",
}
],
subcommands: true,
data: new SlashCommandBuilder()
.setName("guild")
@@ -89,8 +76,6 @@ module.exports = {
async execute(interaction) {
await interaction.deferReply()
const subcommand = interaction.options.getSubcommand()
const embedColor = Number(color.replace("#", "0x"))
@@ -112,7 +97,7 @@ module.exports = {
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
await interaction.reply({
embeds: [{
description: "This command is currently under development",
color: embedColor,