Skip to content

Commit dfa1c4d

Browse files
committed
oxfmt
1 parent 016bb50 commit dfa1c4d

2 files changed

Lines changed: 385 additions & 334 deletions

File tree

src/index.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
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";
29
import figlet from "figlet";
310

411
import { loadCommands } from "./commands";
@@ -10,7 +17,7 @@ import { AdminChecker } from "./utils/admin-checker";
1017
import { CommandAnalytics } from "./utils/command-analytics";
1118
import { CooldownManager } from "./utils/cooldown-manager";
1219
import { 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

Comments
 (0)