From c516c738a4a5ff2c35b97cd98067a4b54f71dff8 Mon Sep 17 00:00:00 2001 From: Taken Date: Wed, 15 Nov 2023 16:56:39 +0100 Subject: [PATCH] Added @params to textinputbox events for easier development Signed-off-by: Taken --- events/modals/denyreasonbox.js | 2 ++ events/modals/staffdenyreasonbox.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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"));