1
0
Fork 0

fix: delete account message collector filter

master
Hiroyuki 2021-12-27 20:36:12 -04:00
parent a9a70080cb
commit 1b085c8740
No known key found for this signature in database
GPG Key ID: AF65958B7B7362E6
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export default class DeleteAccount extends Command {
try { try {
await this.client.util.messageCollector(message, await this.client.util.messageCollector(message,
`***Please confirm that you are permanently deleting ${username}'s account by entering ${verify}. This action cannot be reversed.***`, `***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) { } catch (error) {
if (error.message.includes('Did not supply')) return message; if (error.message.includes('Did not supply')) return message;
throw error; throw error;