mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
[commands] Pass over kwargs to type.__new__
This commit is contained in:
parent
a8dd4a826f
commit
f15cf7c845
@ -106,7 +106,7 @@ class CogMeta(type):
|
||||
|
||||
attrs['__cog_commands__'] = commands # this will be copied in Cog.__new__
|
||||
attrs['__cog_listeners__'] = tuple(listeners)
|
||||
return super().__new__(cls, name, bases, attrs)
|
||||
return super().__new__(cls, name, bases, attrs, **kwargs)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args)
|
||||
|
Loading…
x
Reference in New Issue
Block a user