diff --git a/src/structure/components/commands/moderation/Lockdown.js b/src/structure/components/commands/moderation/Lockdown.js index 6b1ab7e..e64d732 100644 --- a/src/structure/components/commands/moderation/Lockdown.js +++ b/src/structure/components/commands/moderation/Lockdown.js @@ -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 }; + } } diff --git a/src/structure/components/commands/moderation/Unlockdown.js b/src/structure/components/commands/moderation/Unlockdown.js index 3647d3c..69f3dc6 100644 --- a/src/structure/components/commands/moderation/Unlockdown.js +++ b/src/structure/components/commands/moderation/Unlockdown.js @@ -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 }; + } }