Browse Source

[bug] call super constructor for `CustomActivity` to fix `created_at`

pull/6098/head
Nadir Chowdhury 4 years ago
committed by GitHub
parent
commit
df3e5a15a6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      discord/activity.py

1
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':

Loading…
Cancel
Save