mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord/commands/admin/reload): fix type error
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user