mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-29 16:09:05 +00:00
1 parent
69f5a70eeb
commit
076f9bcac7
1 file changed
+2
-2
@@ -102,8 +102,8 @@ class CogMeta(type):
|
||||
except AttributeError:
|
||||
continue
|
||||
else:
|
||||
for name in value.__cog_listener_names__:
|
||||
listeners.append((name, value.__name__))
|
||||
for listener_name in value.__cog_listener_names__:
|
||||
listeners.append((listener_name, value.__name__))
|
||||
|
||||
attrs['__cog_commands__'] = commands # this will be copied in Cog.__new__
|
||||
attrs['__cog_listeners__'] = tuple(listeners)
|
||||
|
||||
Reference in new issue
Block a user