Added @params to textinputbox events for easier development
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -10,6 +10,8 @@ module.exports = {
|
|||||||
description: 'Deny reason box.',
|
description: 'Deny reason box.',
|
||||||
type: 'modal',
|
type: 'modal',
|
||||||
|
|
||||||
|
/** @param {import('discord.js').ModalSubmitInteraction} interaction */
|
||||||
|
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
|
|
||||||
if (interaction.type !== InteractionType.ModalSubmit) return;
|
if (interaction.type !== InteractionType.ModalSubmit) return;
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ module.exports = {
|
|||||||
description: 'Deny reason box.',
|
description: 'Deny reason box.',
|
||||||
type: 'modal',
|
type: 'modal',
|
||||||
|
|
||||||
|
/** @param {import('discord.js').ModalSubmitInteraction} interaction */
|
||||||
|
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
|
|
||||||
if (interaction.type !== InteractionType.ModalSubmit) return;
|
if (interaction.type !== InteractionType.ModalSubmit) return;
|
||||||
@@ -17,7 +19,6 @@ module.exports = {
|
|||||||
|
|
||||||
interaction.deferReply();
|
interaction.deferReply();
|
||||||
|
|
||||||
const channel = interaction.channel;
|
|
||||||
const guild = interaction.guild;
|
const guild = interaction.guild;
|
||||||
const reason = interaction.fields.fields.get('staffdenyreason').value || "No reason provided";
|
const reason = interaction.fields.fields.get('staffdenyreason').value || "No reason provided";
|
||||||
const embedColor = Number(color.replace("#", "0x"));
|
const embedColor = Number(color.replace("#", "0x"));
|
||||||
|
|||||||
Reference in New Issue
Block a user