Skip to content

Commit

Permalink
Fix syntaxerror
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Oct 30, 2024
1 parent 7ba6f01 commit a20bf79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion novus/models/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def __init__(self, *, state: HTTPConnection, data: payloads.Interaction):
self.guild = Guild(state=state, data=data["guild"])
else:
self.guild = BaseGuild(state=state, data={"id": data["guild_id"]}) # pyright: ignore
if (self.channel := self.state.cache.get_channel(data.get("channel_id"))) is None:
if (channel := self.state.cache.get_channel(data.get("channel_id"))) is None:
self.channel = Channel.partial(self.state, data["channel_id"])
else:
self.channel = channel
Expand Down

0 comments on commit a20bf79

Please sign in to comment.