mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
Remove unnecessary question when user is not on server
This commit is contained in:
parent
a4e7b5624f
commit
a5cdf250b8
1 changed files with 1 additions and 13 deletions
|
@ -134,22 +134,10 @@ export const BanCmd = modActionsCmd({
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// Ask the mod if we should upgrade to a forceban as the user is not on the server
|
|
||||||
const reply = await waitForButtonConfirm(
|
|
||||||
msg.channel,
|
|
||||||
{ content: "User not on server, forceban instead?" },
|
|
||||||
{ confirmText: "Yes", cancelText: "No", restrictToId: msg.member.id },
|
|
||||||
);
|
|
||||||
if (!reply) {
|
|
||||||
sendErrorMessage(pluginData, msg.channel, "User not on server, ban cancelled by moderator");
|
|
||||||
lock.unlock();
|
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
forceban = true;
|
forceban = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure we're allowed to ban this member if they are on the server
|
// Make sure we're allowed to ban this member if they are on the server
|
||||||
if (!forceban && !canActOn(pluginData, msg.member, memberToBan!)) {
|
if (!forceban && !canActOn(pluginData, msg.member, memberToBan!)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue