Added @params to textinputbox events for easier development

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-11-15 16:56:39 +01:00
parent bcf8238d33
commit c516c738a4
2 changed files with 4 additions and 1 deletions

View File

@@ -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;

View File

@@ -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"));