3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-06 10:37:19 +00:00
This commit is contained in:
seeyebe 2025-06-06 21:55:19 +03:00 committed by GitHub
commit 5db427c22f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,12 +28,6 @@ export const UnbanSlashCmd = 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,