From 12e180a2906af7fec0c0069d5fcb4f702bea6fdc Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 27 Aug 2023 23:45:42 +0200 Subject: [PATCH] Added new message and removed unused --- commands/config.js | 23 +++-------------------- events/buttons/guildapplicationaccept.js | 2 +- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/commands/config.js b/commands/config.js index 2c76f1c..d52a0a5 100644 --- a/commands/config.js +++ b/commands/config.js @@ -55,18 +55,6 @@ module.exports = { .setName("channel") .setDescription("The channel to send the application to.") .setRequired(true))) - .addSubcommand((subcommand) => - subcommand - .setName("sendguildinfo") - .setDescription("Send the guild info message to a channel.")) - .addSubcommand((subcommand) => - subcommand - .setName("sendrequirements") - .setDescription("Send the guild requirements message to a channel.")) - .addSubcommand((subcommand) => - subcommand - .setName("sendrules-info") - .setDescription("Send the rules and info message to a channel.")) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), @@ -76,10 +64,6 @@ module.exports = { const subcommand = interaction.options.getSubcommand(); const embedColor = Number(color.replace("#", "0x")); - if (subcommand === "reload") { - await interaction.reply({ content: "In development", ephemeral: true }); - return; - } if (subcommand === "sendguildapplication") { const channel = interaction.options.getChannel("channel"); @@ -198,6 +182,7 @@ module.exports = { .setEmoji({ name: "✅" })) ] }); + await interaction.reply({ content: "Message sent", ephemeral: true }); } @@ -222,16 +207,14 @@ module.exports = { components: [ new ActionRowBuilder() .addComponents(new ButtonBuilder() - .setCustomId("waitingListUpdate") + .setCustomId("waitinglistupdate") .setLabel("Update") .setStyle(ButtonStyle.Primary) .setEmoji({ name: "✅" })) ] }); + await interaction.reply({ content: "Message sent", ephemeral: true }); } - if (subcommand !== "sendguildinfo" || "sendrequirements" || "sendrules-info") { - await interaction.reply({ content: "In development.", ephemeral: true }); - } } }; \ No newline at end of file diff --git a/events/buttons/guildapplicationaccept.js b/events/buttons/guildapplicationaccept.js index 74eb20d..c1a7a93 100644 --- a/events/buttons/guildapplicationaccept.js +++ b/events/buttons/guildapplicationaccept.js @@ -90,4 +90,4 @@ module.exports = { }] }); } -}; +}; \ No newline at end of file