From 1b085c8740c06938bb1b196a99bd2f0e7b4dc590 Mon Sep 17 00:00:00 2001 From: Hiroyuki Date: Mon, 27 Dec 2021 20:36:12 -0400 Subject: [PATCH] fix: delete account message collector filter --- src/commands/deleteaccount.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/deleteaccount.ts b/src/commands/deleteaccount.ts index 3bdbf7a..e5d6696 100644 --- a/src/commands/deleteaccount.ts +++ b/src/commands/deleteaccount.ts @@ -28,7 +28,7 @@ export default class DeleteAccount extends Command { try { await this.client.util.messageCollector(message, `***Please confirm that you are permanently deleting ${username}'s account by entering ${verify}. This action cannot be reversed.***`, - 15000, true, [verify], (msg) => !(msg.author.id === message.author.id)); + 15000, true, [verify], (msg) => msg.author.id === message.author.id); } catch (error) { if (error.message.includes('Did not supply')) return message; throw error;