From 3908854fe090dda67b0d90225ab76f75e95db4c0 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Wed, 16 Apr 2025 20:39:49 +0700 Subject: [PATCH] fix(bots/discord/commands/admin/reload): fix type error --- bots/discord/src/commands/admin/reload.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bots/discord/src/commands/admin/reload.ts b/bots/discord/src/commands/admin/reload.ts index 9093613..01270cd 100644 --- a/bots/discord/src/commands/admin/reload.ts +++ b/bots/discord/src/commands/admin/reload.ts @@ -11,7 +11,8 @@ export default new AdminCommand({ logger.debug('Invalidating previous config...') context.config.invalidate() - if ((trigger as CommandInteraction).deferReply) await trigger.deferReply({ flags: MessageFlags.Ephemeral }) + if ((trigger as CommandInteraction).deferReply) + await (trigger as CommandInteraction).deferReply({ flags: MessageFlags.Ephemeral }) logger.info('Reinitializing API client to reload configuration...') await api.client.ws.setOptions(