Browse Source

Fix setting CustomActivity name

pull/9524/head
Rapptz 2 years ago
parent
commit
1d2177c610
  1. 2
      discord/activity.py

2
discord/activity.py

@ -735,7 +735,7 @@ class CustomActivity(BaseActivity):
def __init__(self, name: Optional[str], *, emoji: Optional[PartialEmoji] = None, **extra: Any) -> None:
super().__init__(**extra)
self.name: Optional[str] = name
self.state: Optional[str] = extra.pop('state', None)
self.state: Optional[str] = extra.pop('state', name)
if self.name == 'Custom Status':
self.name = self.state

Loading…
Cancel
Save