diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-03 19:57:46 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-03 19:57:46 -0400 |
commit | 939f19c1a8a7efea00fc3df3504a41fc58a3b286 (patch) | |
tree | 7807524c5bb26c7616e50e09435f192649e51f1b /src/lib/extensions/discord-akairo | |
parent | aeba835858f3426c5de31434b5d1f4056606a828 (diff) | |
download | tanzanite-939f19c1a8a7efea00fc3df3504a41fc58a3b286.tar.gz tanzanite-939f19c1a8a7efea00fc3df3504a41fc58a3b286.tar.bz2 tanzanite-939f19c1a8a7efea00fc3df3504a41fc58a3b286.zip |
fix some jank
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 27eeea4..1a13c13 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -964,12 +964,7 @@ export class BushClientUtil extends ClientUtil { interaction: CommandInteraction, responseOptions: BushSlashSendMessageType | BushSlashEditMessageType ): Promise<Message | APIMessage | undefined> { - let newResponseOptions: BushSlashSendMessageType | BushSlashEditMessageType = {}; - if (typeof responseOptions === 'string') { - newResponseOptions.content = responseOptions; - } else { - newResponseOptions = responseOptions; - } + 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 |