aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-19 15:50:05 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-19 15:50:05 -0400
commitc6e0b564bf742ff772a24fd8c0c8d37acccce80e (patch)
treeab60f7ff22598ba70331a9686ec13b64a6abfaa0 /src/lib
parent98477a07a4a225e2a36cbe6c2c2cefd1d3c0a82e (diff)
downloadtanzanite-c6e0b564bf742ff772a24fd8c0c8d37acccce80e.tar.gz
tanzanite-c6e0b564bf742ff772a24fd8c0c8d37acccce80e.tar.bz2
tanzanite-c6e0b564bf742ff772a24fd8c0c8d37acccce80e.zip
some minor fixes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts6
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 }