Skip to content

Commit e940a96

Browse files
authored
Merge pull request #525 from seeyebe/fix/slash-ban-reason-validation
Fix: Remove reason requirement from slash ban command for consistency
2 parents 4f97d15 + 87b5d54 commit e940a96

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

backend/src/plugins/ModActions/commands/ban/BanSlashCmd.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ export const BanSlashCmd = modActionsSlashCmd({
5050
await interaction.deferReply({ ephemeral: true });
5151
const attachments = retrieveMultipleOptions(NUMBER_ATTACHMENTS_CASE_CREATION, options, "attachment");
5252

53-
if ((!options.reason || options.reason.trim() === "") && attachments.length < 1) {
54-
pluginData.state.common.sendErrorMessage(interaction, "Text or attachment required", undefined, undefined, true);
55-
56-
return;
57-
}
58-
5953
let mod = interaction.member as GuildMember;
6054
const canActAsOther = await hasPermission(pluginData, "can_act_as_other", {
6155
channel: interaction.channel,

0 commit comments

Comments
 (0)