Skip to content

Commit

Permalink
refactor: make state a positional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum committed Aug 14, 2023
1 parent 5e98705 commit cf5f771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ class Activity(BaseActivity):
"buttons",
)

def __init__(self, **kwargs):
def __init__(self, state: str | None = None, **kwargs):
super().__init__(**kwargs)
self.state: str | None = kwargs.pop("state", None)
self.state: str | None = state
self.details: str | None = kwargs.pop("details", None)
self.timestamps: ActivityTimestamps = kwargs.pop("timestamps", {})
self.assets: ActivityAssets = kwargs.pop("assets", {})
Expand Down

0 comments on commit cf5f771

Please sign in to comment.