This commit is contained in:
Erik 2022-07-10 12:06:37 +03:00
parent bb5f3e0539
commit 12fc946cfc
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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
});
}