consolidate check
This commit is contained in:
parent
18f61d07f6
commit
19dd164447
@ -1,3 +1,6 @@
|
||||
[MODERATION_OWNER]
|
||||
unable to moderate the user
|
||||
|
||||
[MODERATION_MISSING_USERS]
|
||||
You must provide target users.
|
||||
|
||||
@ -87,7 +90,7 @@ I had issues assigning roles to them
|
||||
I had issues revoking roles from them
|
||||
|
||||
[COMMAND_MUTE_4FAIL]
|
||||
Failed to time out member.
|
||||
request rejected (likely permission issue)
|
||||
|
||||
//Kick Command
|
||||
[COMMAND_KICK_HELP]
|
||||
|
@ -140,8 +140,9 @@ class MuteInfraction extends Infraction {
|
||||
}
|
||||
const me = await this.guild.resolveMember(this.client.user);
|
||||
if (settings.mute.type === 3) {
|
||||
if (me.permissions.missing('ModerateMembers').length) return this._fail('COMMAND_MUTE_MISSING_MODERATE_PERM', true);
|
||||
if (me.roles.highest.position <= this.member.roles.highest.position) return this._fail('COMMAND_MUTE_HIERARCHY_ERROR');
|
||||
if (!this.target.moderatable) return this._fail('MODERATION_OWNER');
|
||||
// if (me.permissions.missing('ModerateMembers').length) return this._fail('COMMAND_MUTE_MISSING_MODERATE_PERM', true);
|
||||
// if (me.roles.highest.position <= this.member.roles.highest.position) return this._fail('COMMAND_MUTE_HIERARCHY_ERROR');
|
||||
// if (!this.duration && !settings.mute.default)
|
||||
} else if (me.permissions.missing('ManageRoles').length) return this._fail('COMMAND_MUTE_MISSING_MANAGEROLE_PERM');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user