aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.