Merge pull request #42 from smyalygames/main

fix(arabot): change removeAll to purge so discord accepts the subcommand
This commit is contained in:
Anthony 2022-07-28 05:21:43 +01:00 committed by GitHub
commit 504306a2b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ export class SusCommand extends Command {
.setDescription('Sus note ID')
.setRequired(true)))
// Subcommand to remove all sus notes
.addSubcommand((command) => command.setName('removeAll')
.addSubcommand((command) => command.setName('purge')
.setDescription('Remove all sus notes from a user')
.addUserOption((option) => option.setName('user')
.setDescription('User to remove the note from')
@ -167,7 +167,7 @@ export class SusCommand extends Command {
case 'remove': {
return await this.removeNote(interaction);
}
case 'removeAll': {
case 'purge': {
return await this.removeAllNotes(interaction);
}
}