mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-03 03:39:48 +01:00
Merge pull request #42 from smyalygames/main
fix(arabot): change removeAll to purge so discord accepts the subcommand
This commit is contained in:
commit
504306a2b7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user