diff options
Diffstat (limited to 'src/lib/extensions')
-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 |