diff options
| author | Nadir Chowdhury <[email protected]> | 2020-11-28 08:17:05 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-28 03:17:05 -0500 |
| commit | df3e5a15a6425bb117f5de0ae5126939bae56443 (patch) | |
| tree | a0ca65ac4dff4b587a32da3e002fc8858537ab69 | |
| parent | [chore] Remove redundant imports (diff) | |
| download | discord.py-df3e5a15a6425bb117f5de0ae5126939bae56443.tar.xz discord.py-df3e5a15a6425bb117f5de0ae5126939bae56443.zip | |
[bug] call super constructor for `CustomActivity` to fix `created_at`
| -rw-r--r-- | discord/activity.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/activity.py b/discord/activity.py index 0e0e59bc..91e094e2 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -685,6 +685,7 @@ class CustomActivity(BaseActivity): __slots__ = ('name', 'emoji', 'state') def __init__(self, name, *, emoji=None, **extra): + super().__init__(**extra) self.name = name self.state = extra.pop('state', None) if self.name == 'Custom Status': |