From f15cf7c845cc308753fef0707139cfb39acbd7f5 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 23 Feb 2019 05:18:24 -0500 Subject: [PATCH] [commands] Pass over kwargs to `type.__new__` --- discord/ext/commands/cog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py index 1da0c69d8..806623382 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)