diff options
| author | Rapptz <[email protected]> | 2017-02-22 20:11:01 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-02-22 20:11:01 -0500 |
| commit | 9cb89f019e87945930065c6ee82bd0e83754c76b (patch) | |
| tree | d8427bd8640efcb2b3805abd7334d029a9b64136 | |
| parent | Forward keyword arguments in Member.ban (diff) | |
| download | discord.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.py | 2 |
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. |