Skip to content

Commit

Permalink
Update discord/interactions.py
Browse files Browse the repository at this point in the history
Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
  • Loading branch information
Dorukyum committed Jun 25, 2024
1 parent 48d4396 commit 4b903f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ def __init__(self, data: dict[str, Any], state: ConnectionState):
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 4b903f4

Please sign in to comment.