Skip to content

Commit f58c142

Browse files
authored
Remove reason requirement from slash unban command
1 parent 3ef8924 commit f58c142

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

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)