aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/cog.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-02-23 05:18:24 -0500
committerRapptz <[email protected]>2019-02-23 05:18:24 -0500
commitf15cf7c845cc308753fef0707139cfb39acbd7f5 (patch)
tree3781ccf50bbee9714e67c6f63e65c4d8de84555a /discord/ext/commands/cog.py
parentDocument listener changes in the migrating docs. (diff)
downloaddiscord.py-f15cf7c845cc308753fef0707139cfb39acbd7f5.tar.xz
discord.py-f15cf7c845cc308753fef0707139cfb39acbd7f5.zip
[commands] Pass over kwargs to `type.__new__`
Diffstat (limited to 'discord/ext/commands/cog.py')
-rw-r--r--discord/ext/commands/cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py
index 1da0c69d..80662338 100644
--- a/discord/ext/commands/cog.py
+++ b/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)