Browse Source
[bug] call super constructor for `CustomActivity` to fix `created_at`
pull/6098/head
Nadir Chowdhury
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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': |
|
|
|