diff --git a/events/modals/denyreasonbox.js b/events/modals/denyreasonbox.js index 3f78db0..ec976b1 100644 --- a/events/modals/denyreasonbox.js +++ b/events/modals/denyreasonbox.js @@ -10,6 +10,8 @@ module.exports = { description: 'Deny reason box.', type: 'modal', + /** @param {import('discord.js').ModalSubmitInteraction} interaction */ + async execute(interaction) { if (interaction.type !== InteractionType.ModalSubmit) return; diff --git a/events/modals/staffdenyreasonbox.js b/events/modals/staffdenyreasonbox.js index 882574b..c7c5c95 100644 --- a/events/modals/staffdenyreasonbox.js +++ b/events/modals/staffdenyreasonbox.js @@ -10,6 +10,8 @@ module.exports = { description: 'Deny reason box.', type: 'modal', + /** @param {import('discord.js').ModalSubmitInteraction} interaction */ + async execute(interaction) { if (interaction.type !== InteractionType.ModalSubmit) return; @@ -17,7 +19,6 @@ module.exports = { interaction.deferReply(); - const channel = interaction.channel; const guild = interaction.guild; const reason = interaction.fields.fields.get('staffdenyreason').value || "No reason provided"; const embedColor = Number(color.replace("#", "0x"));