Check if the user is already banned in !forceban
This commit is contained in:
parent
1066c3ef3d
commit
c4ae36c745
1 changed files with 7 additions and 0 deletions
|
@ -1015,6 +1015,13 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure the user isn't already banned
|
||||||
|
const isBanned = await this.isBanned(user.id);
|
||||||
|
if (isBanned) {
|
||||||
|
this.sendErrorMessage(msg.channel, `User is already banned`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// The moderator who did the action is the message author or, if used, the specified --mod
|
// The moderator who did the action is the message author or, if used, the specified --mod
|
||||||
let mod = msg.member;
|
let mod = msg.member;
|
||||||
if (args.mod) {
|
if (args.mod) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue