bugfix
This commit is contained in:
parent
bb5f3e0539
commit
12fc946cfc
@ -19,16 +19,13 @@ class NoteCommand extends ModerationCommand {
|
||||
});
|
||||
}
|
||||
|
||||
async execute(interaction, { users, silent, ...args }) {
|
||||
async execute(interaction, { users, ...args }) {
|
||||
|
||||
if (!users) throw new CommandError(interaction, { index: 'MODERATION_MISSING_USERS' });
|
||||
|
||||
return this.client.moderationManager.handleInfraction(Note, interaction, {
|
||||
targets: users.value,
|
||||
args: {
|
||||
silent,
|
||||
...args
|
||||
}
|
||||
args
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user