lockdown commands fix

This commit is contained in:
Erik 2022-06-28 14:49:07 +03:00
parent 2aac46ffc3
commit 2beeabb739
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 8 additions and 2 deletions

View File

@ -31,11 +31,14 @@ class LockdownCommand extends ModerationCommand {
if (!channels) throw new CommandError(interaction, { index: 'MODERATION_MISSING_CHANNELS' });
return this.client.moderationManager.handleInfraction(Lockdown, interaction, {
await interaction.reply({ content: 'Working...', emoji: 'loading' });
const result = await this.client.moderationManager.handleInfraction(Lockdown, interaction, {
targets: channels.value,
args
});
return { content: result, _edit: true };
}
}

View File

@ -27,11 +27,14 @@ class UnlockdownCommand extends ModerationCommand {
if (!channels) throw new CommandError(interaction, { index: 'MODERATION_MISSING_CHANNELS' });
return this.client.moderationManager.handleInfraction(Unlockdown, interaction, {
await interaction.reply({ content: 'Working...', emoji: 'loading' });
const result = await this.client.moderationManager.handleInfraction(Unlockdown, interaction, {
targets: channels.value,
args
});
return { content: result, _edit: true };
}
}