For permissions to be able to determine that I was asking for a command instead of the cog.
What actually happened?
For this example, I have a cog called test. The class is Test and it has a command named test. The role that I am allowing/denying to use the command is called Rolename.
[p]permissions setdefaultglobalrule deny test
[p]permissions addserverrule allow test Rolename
[p]permissions removeserverrule test Rolename
[2019-09-25 15:38:59] [ERROR] red: Exception in command 'permissions removeserverrule'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 79, in wrapped
ret = await coro(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/redbot/cogs/permissions/permissions.py", line 383, in permissions_removeguildrule
cog_or_cmd=cog_or_command, model_id=w.id, guild_id=ctx.guild.id
File "/usr/local/lib/python3.7/site-packages/redbot/cogs/permissions/permissions.py", line 511, in _remove_rule
File "/usr/local/lib/python3.7/site-packages/redbot/core/commands/commands.py", line 403, in clear_rule_for
should_continue = parent.reevaluate_rules_for(model_id, guild_id=guild_id)
File "/usr/local/lib/python3.7/site-packages/redbot/core/commands/commands.py", line 521, in reevaluate_rules_for
for cmd in self.all_commands.values()
AttributeError: 'Test' object has no attribute 'all_commands'
How can we reproduce this issue?
Follow the instructions outlined above in the previous section.
The text was updated successfully, but these errors were encountered: