mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
[Permissions] Ensure defaults are cleared when clearing all rules (#3041)
- fixes #3037
This commit is contained in:
@@ -544,7 +544,7 @@ class Permissions(commands.Cog):
|
||||
|
||||
Handles config.
|
||||
"""
|
||||
self.bot.clear_permission_rules(guild_id)
|
||||
self.bot.clear_permission_rules(guild_id, preserve_default_rule=False)
|
||||
for category in (COG, COMMAND):
|
||||
async with self.config.custom(category).all() as all_rules:
|
||||
for name, rules in all_rules.items():
|
||||
|
||||
Reference in New Issue
Block a user