3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 01:25:02 +00:00

Remove unnecessary question when user is not on server

This commit is contained in:
Dark 2021-05-07 18:27:43 +02:00
parent a4e7b5624f
commit a5cdf250b8
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -135,19 +135,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;
}
}