diff --git a/src/localization/en_gb/general/en_gb_moderation.lang b/src/localization/en_gb/general/en_gb_moderation.lang index ff56702..4e7f822 100644 --- a/src/localization/en_gb/general/en_gb_moderation.lang +++ b/src/localization/en_gb/general/en_gb_moderation.lang @@ -97,4 +97,8 @@ the channel isn't locked down the channel is already locked down. Use `/unlockdown` to unlock it. -If you've manually reverted the lockdown, resolve case **#{case}** \ No newline at end of file +If you've manually reverted the lockdown, resolve case **#{case}** + +[INFRACTION_LOCKDOWN_MISSING_PERMS] +The bot is missing the following permissions to execute a lockdown: +**{missing}** \ No newline at end of file diff --git a/src/structure/infractions/Lockdown.js b/src/structure/infractions/Lockdown.js index fb7b193..d25bb23 100644 --- a/src/structure/infractions/Lockdown.js +++ b/src/structure/infractions/Lockdown.js @@ -141,7 +141,8 @@ class LockdownInfraction extends Infraction { async verify() { const perms = this.target.permissionsFor(this.guild.members.me); - if(perms.missing('ManageRoles').length) return this._fail('INFRACTION_LOCKDOWN_MISSING_PERMS'); + const missing = perms.missing(['ManageRoles', 'SendMessages', 'AddReactions']); + if(missing.length) return this._fail('INFRACTION_LOCKDOWN_MISSING_PERMS', { missing: missing.join('**, **') }); return super._verify(); } diff --git a/src/structure/infractions/Unlockdown.js b/src/structure/infractions/Unlockdown.js index 9349510..6e40292 100644 --- a/src/structure/infractions/Unlockdown.js +++ b/src/structure/infractions/Unlockdown.js @@ -96,7 +96,8 @@ class UnlockdownInfraction extends Infraction { async verify() { const perms = this.target.permissionsFor(this.guild.members.me); - if (perms.missing('ManageRoles').length) return this._fail('INFRACTION_LOCKDOWN_MISSING_PERMS'); + const missing = perms.missing(['ManageRoles', 'SendMessages', 'AddReactions']); + if(missing.length) return this._fail('INFRACTION_LOCKDOWN_MISSING_PERMS', { missing: missing.join('**, **') }); return super._verify(); }