diff --git a/structure/client/components/settings/moderation/Protection.js b/structure/client/components/settings/moderation/Protection.js index c622e58..0e01d74 100644 --- a/structure/client/components/settings/moderation/Protection.js +++ b/structure/client/components/settings/moderation/Protection.js @@ -55,6 +55,7 @@ class ProtectionSetting extends Setting { const response = await resolver.resolveMethod(params, null, setting.roles, resolver.resolveRoles.bind(resolver), guild); if (!response) return { error: true, msg: message.format('ERR_INVALID_METHOD', { method }) }; ({ method } = response); + if (method !== 'list' && !response.resolved.length) return { error: true, msg: message.format('ERR_ROLERESOLVE') }; if (method === 'add') {