mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
[commands] Register cog listeners with the name of the attribute.
This commit is contained in:
parent
67912193ec
commit
9cb89f019e
@ -470,7 +470,7 @@ class BotBase(GroupMixin):
|
||||
|
||||
# register event listeners the cog has
|
||||
if name.startswith('on_'):
|
||||
self.add_listener(member)
|
||||
self.add_listener(member, name)
|
||||
|
||||
def get_cog(self, name):
|
||||
"""Gets the cog instance requested.
|
||||
|
Loading…
x
Reference in New Issue
Block a user