Skip to content

Commit e311279

Browse files
authored
Merge pull request #531 from seeyebe/fix/slash-unban-reason-validation
fix: Remove reason requirement from slash unban command for consistency
2 parents 07401ba + f7a20fb commit e311279

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

backend/src/plugins/ModActions/commands/unban/UnbanSlashCmd.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ export const UnbanSlashCmd = modActionsSlashCmd({
2828
await interaction.deferReply({ ephemeral: true });
2929
const attachments = retrieveMultipleOptions(NUMBER_ATTACHMENTS_CASE_CREATION, options, "attachment");
3030

31-
if ((!options.reason || options.reason.trim() === "") && attachments.length < 1) {
32-
pluginData.state.common.sendErrorMessage(interaction, "Text or attachment required", undefined, undefined, true);
33-
34-
return;
35-
}
36-
3731
let mod = interaction.member as GuildMember;
3832
const canActAsOther = await hasPermission(pluginData, "can_act_as_other", {
3933
channel: interaction.channel,

0 commit comments

Comments
 (0)