Skip to content

Commit

Permalink
Fix setting CustomActivity name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Aug 10, 2023
1 parent c5f5f8e commit d381d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d381d4c

Please sign in to comment.