[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_commands__'] = commands # this will be copied in Cog.__new__
|
||||||
attrs['__cog_listeners__'] = tuple(listeners)
|
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):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args)
|
super().__init__(*args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user