diff --git a/changelog.d/3014.bugfix.rst b/changelog.d/3014.bugfix.rst new file mode 100644 index 000000000..5014a8b49 --- /dev/null +++ b/changelog.d/3014.bugfix.rst @@ -0,0 +1 @@ +Fixes an issue with clearing rules in permissions \ No newline at end of file diff --git a/redbot/core/commands/commands.py b/redbot/core/commands/commands.py index 7c9e573e3..e253c82ad 100644 --- a/redbot/core/commands/commands.py +++ b/redbot/core/commands/commands.py @@ -573,6 +573,14 @@ class Group(GroupMixin, Command, CogGroupMixin, commands.Group): class CogMixin(CogGroupMixin, CogCommandMixin): """Mixin class for a cog, intended for use with discord.py's cog class""" + @property + def all_commands(self) -> Dict[str, Command]: + """ + This does not have identical behavior to + Group.all_commands but should return what you expect + """ + return {cmd.name: cmd for cmd in self.__cog_commands__} + @property def help(self): doc = self.__doc__