Browse Source

[commands] Pass over kwargs to `type.__new__`

pull/1929/head
Rapptz 6 years ago
parent
commit
f15cf7c845
  1. 2
      discord/ext/commands/cog.py

2
discord/ext/commands/cog.py

@ -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…
Cancel
Save