From f58c1426643a5047c4eb00eb619d31e2f167121c Mon Sep 17 00:00:00 2001 From: seeyebe <85168740+seeyebe@users.noreply.github.com> Date: Fri, 6 Jun 2025 21:45:29 +0300 Subject: [PATCH] Remove reason requirement from slash unban command --- .../src/plugins/ModActions/commands/unban/UnbanSlashCmd.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/backend/src/plugins/ModActions/commands/unban/UnbanSlashCmd.ts b/backend/src/plugins/ModActions/commands/unban/UnbanSlashCmd.ts index 7c910e53..664bf397 100644 --- a/backend/src/plugins/ModActions/commands/unban/UnbanSlashCmd.ts +++ b/backend/src/plugins/ModActions/commands/unban/UnbanSlashCmd.ts @@ -28,12 +28,6 @@ export const UnbanSlashCmd = modActionsSlashCmd({ await interaction.deferReply({ ephemeral: true }); const attachments = retrieveMultipleOptions(NUMBER_ATTACHMENTS_CASE_CREATION, options, "attachment"); - if ((!options.reason || options.reason.trim() === "") && attachments.length < 1) { - pluginData.state.common.sendErrorMessage(interaction, "Text or attachment required", undefined, undefined, true); - - return; - } - let mod = interaction.member as GuildMember; const canActAsOther = await hasPermission(pluginData, "can_act_as_other", { channel: interaction.channel,