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' });
|
if (!users) throw new CommandError(interaction, { index: 'MODERATION_MISSING_USERS' });
|
||||||
|
|
||||||
return this.client.moderationManager.handleInfraction(Note, interaction, {
|
return this.client.moderationManager.handleInfraction(Note, interaction, {
|
||||||
targets: users.value,
|
targets: users.value,
|
||||||
args: {
|
args
|
||||||
silent,
|
|
||||||
...args
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user