Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 25, 2024
1 parent 4b903f4 commit f1e235f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1568,10 +1568,10 @@ class AuthorizingIntegrationOwners:
def __init__(self, data: dict[str, Any], state: ConnectionState):
self._state = state
# keys are Application Integration Types as strings
self.user_id = (
int(uid) if (uid := data.get("1")) is not None else None
self.user_id = int(uid) if (uid := data.get("1")) is not None else None
self.guild_id = (
int(guild_id) if (guild_id := data.get("0", None)) is not None else None
)
self.guild_id = int(guild_id) if (guild_id := data.get("0", None)) is not None else None

def __repr__(self):
return f"<AuthorizingIntegrationOwners user_id={self.user_id} guild_id={self.guild_id}>"
Expand Down

0 comments on commit f1e235f

Please sign in to comment.