forked from Galactic/galactic-bot
lockdown commands fix
This commit is contained in:
parent
2aac46ffc3
commit
2beeabb739
@ -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 };
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 };
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user