aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/common/ConfirmationPrompt.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/common/ConfirmationPrompt.ts b/src/lib/common/ConfirmationPrompt.ts
index 2dc943a..b775640 100644
--- a/src/lib/common/ConfirmationPrompt.ts
+++ b/src/lib/common/ConfirmationPrompt.ts
@@ -35,7 +35,7 @@ export class ConfirmationPrompt {
)
];
- const msg = (await this.message.util.sendNew(this.messageOptions)) as BushMessage;
+ const msg = await this.message.channel!.send(this.messageOptions);
return await new Promise<boolean>((resolve) => {
let responded = false;
@@ -48,13 +48,13 @@ export class ConfirmationPrompt {
await interaction.deferUpdate().catch(() => undefined);
if (interaction.user.id == this.message.author.id || client.config.owners.includes(interaction.user.id)) {
if (interaction.customId === 'confirmationPrompt_confirm') {
- resolve(true);
responded = true;
collector.stop();
- } else if (interaction.customId === 'confirmationPrompt_deny') {
- resolve(false);
+ resolve(true);
+ } else if (interaction.customId === 'confirmationPrompt_cancel') {
responded = true;
collector.stop();
+ resolve(false);
}
}
});