mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
parent
69f5a70eeb
commit
076f9bcac7
@ -102,8 +102,8 @@ class CogMeta(type):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
for name in value.__cog_listener_names__:
|
for listener_name in value.__cog_listener_names__:
|
||||||
listeners.append((name, value.__name__))
|
listeners.append((listener_name, value.__name__))
|
||||||
|
|
||||||
attrs['__cog_commands__'] = commands # this will be copied in Cog.__new__
|
attrs['__cog_commands__'] = commands # this will be copied in Cog.__new__
|
||||||
attrs['__cog_listeners__'] = tuple(listeners)
|
attrs['__cog_listeners__'] = tuple(listeners)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user