mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Permissions] Exclude @everyone role when retrieving rules (#2484)
Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
b38ac1d025
commit
bb5aab16c9
@ -531,7 +531,10 @@ class Requires:
|
||||
if category is not None:
|
||||
channels.append(category)
|
||||
|
||||
model_chain = [author, *channels, *author.roles, guild]
|
||||
# We want author roles sorted highest to lowest, and exclude the @everyone role
|
||||
author_roles = reversed(author.roles[1:])
|
||||
|
||||
model_chain = [author, *channels, *author_roles, guild]
|
||||
|
||||
for rules in rules_chain:
|
||||
for model in model_chain:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user