1- import { Client , Collection , Events , GatewayIntentBits , MessageFlags , ModalSubmitInteraction } from "discord.js" ;
1+ import {
2+ Client ,
3+ Collection ,
4+ Events ,
5+ GatewayIntentBits ,
6+ MessageFlags ,
7+ ModalSubmitInteraction ,
8+ } from "discord.js" ;
29import figlet from "figlet" ;
310
411import { loadCommands } from "./commands" ;
@@ -10,7 +17,7 @@ import { AdminChecker } from "./utils/admin-checker";
1017import { CommandAnalytics } from "./utils/command-analytics" ;
1118import { CooldownManager } from "./utils/cooldown-manager" ;
1219import { logError , logger } from "./utils/logger" ;
13- import { GauntletCommand } from "./slash-commands/gauntlet.command.ts" ;
20+ import { GauntletCommand } from "./slash-commands/gauntlet.command.ts" ;
1421
1522/**
1623 * Validates that all required environment variables are set.
@@ -183,15 +190,15 @@ client.on(Events.InteractionCreate, async (interaction) => {
183190
184191 // Handle modals
185192 if ( interaction . isModalSubmit ( ) ) {
186- const modalInteraction = interaction as ModalSubmitInteraction // isModalSubmit() confirms it's this class
193+ const modalInteraction = interaction as ModalSubmitInteraction ; // isModalSubmit() confirms it's this class
187194
188195 if ( modalInteraction . customId . startsWith ( "gauntlet" ) ) {
189- await new GauntletCommand ( ) . handleModalSubmit ( modalInteraction )
196+ await new GauntletCommand ( ) . handleModalSubmit ( modalInteraction ) ;
190197 } else {
191- logger . error ( `No modal matching ${ modalInteraction . customId } was found.` )
198+ logger . error ( `No modal matching ${ modalInteraction . customId } was found.` ) ;
192199 }
193200 } else {
194- logger . warn ( ' Not a modal?' )
201+ logger . warn ( " Not a modal?" ) ;
195202 }
196203
197204 if ( ! interaction . isChatInputCommand ( ) ) return ;
0 commit comments