mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
parent
1ee5238ad7
commit
af97175839
1
changelog.d/3014.bugfix.rst
Normal file
1
changelog.d/3014.bugfix.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fixes an issue with clearing rules in permissions
|
||||||
@ -573,6 +573,14 @@ class Group(GroupMixin, Command, CogGroupMixin, commands.Group):
|
|||||||
class CogMixin(CogGroupMixin, CogCommandMixin):
|
class CogMixin(CogGroupMixin, CogCommandMixin):
|
||||||
"""Mixin class for a cog, intended for use with discord.py's cog class"""
|
"""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
|
@property
|
||||||
def help(self):
|
def help(self):
|
||||||
doc = self.__doc__
|
doc = self.__doc__
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user