mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 02:27:19 +00:00
Remove reason requirement from slash ban command
This commit is contained in:
parent
f5806932af
commit
87b5d549c1
1 changed files with 0 additions and 6 deletions
|
@ -50,12 +50,6 @@ export const BanSlashCmd = modActionsSlashCmd({
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ ephemeral: true });
|
||||||
const attachments = retrieveMultipleOptions(NUMBER_ATTACHMENTS_CASE_CREATION, options, "attachment");
|
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;
|
let mod = interaction.member as GuildMember;
|
||||||
const canActAsOther = await hasPermission(pluginData, "can_act_as_other", {
|
const canActAsOther = await hasPermission(pluginData, "can_act_as_other", {
|
||||||
channel: interaction.channel,
|
channel: interaction.channel,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue