Skip to content

Commit 3908854

Browse files
committed
fix(bots/discord/commands/admin/reload): fix type error
1 parent 0c1382c commit 3908854

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bots/discord/src/commands/admin/reload.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default new AdminCommand({
1111
logger.debug('Invalidating previous config...')
1212
context.config.invalidate()
1313

14-
if ((trigger as CommandInteraction).deferReply) await trigger.deferReply({ flags: MessageFlags.Ephemeral })
14+
if ((trigger as CommandInteraction).deferReply)
15+
await (trigger as CommandInteraction).deferReply({ flags: MessageFlags.Ephemeral })
1516

1617
logger.info('Reinitializing API client to reload configuration...')
1718
await api.client.ws.setOptions(

0 commit comments

Comments
 (0)