diff options
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushClientUtil.ts')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 2345ac7..64616f0 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -32,6 +32,7 @@ import { CommandInteraction, Constants, GuildMember, + InteractionReplyOptions, Message, MessageActionRow, MessageButton, @@ -986,8 +987,7 @@ export class BushClientUtil extends ClientUtil { ): Promise<Message | APIMessage | undefined> { const newResponseOptions = typeof responseOptions === 'string' ? { content: responseOptions } : responseOptions; if (interaction.replied || interaction.deferred) { - // @ts-expect-error: stop being dumb - delete newResponseOptions.ephemeral; // Cannot change a preexisting message to be ephemeral + delete (newResponseOptions as InteractionReplyOptions).ephemeral; // Cannot change a preexisting message to be ephemeral return (await interaction.editReply(newResponseOptions)) as Message | APIMessage; } else { await interaction.reply(newResponseOptions); @@ -1190,8 +1190,6 @@ export class BushClientUtil extends ClientUtil { const guild = client.guilds.resolveId(options.guild)!; const type = this.#findTypeEnum(options.type)!; - console.debug(expires); - const entry = ActivePunishment.build( options.extraInfo ? { user, type, guild, expires, modlog: options.modlog, extraInfo: options.extraInfo } |