Updated help commands to use command builder
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user