aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-02-22 20:11:01 -0500
committerRapptz <[email protected]>2017-02-22 20:11:01 -0500
commit9cb89f019e87945930065c6ee82bd0e83754c76b (patch)
treed8427bd8640efcb2b3805abd7334d029a9b64136
parentForward keyword arguments in Member.ban (diff)
downloaddiscord.py-9cb89f019e87945930065c6ee82bd0e83754c76b.tar.xz
discord.py-9cb89f019e87945930065c6ee82bd0e83754c76b.zip
[commands] Register cog listeners with the name of the attribute.
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index 911664f4..733cfec2 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -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.