3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 03:27:20 +00:00

PR: Fix issues with both ban commands

This commit is contained in:
iamshoXy 2023-09-13 13:58:12 +02:00
parent aa10e28dac
commit 2fc42c217a
6 changed files with 51 additions and 59 deletions

View file

@ -137,19 +137,7 @@ export const BanCmd = modActionsCmd({
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 {
forceban = true;
}
forceban = true;
}
}