Skip to content

Commit

Permalink
Change reaction init in message update
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Aug 9, 2023
1 parent e499edd commit 98d26a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion novus/models/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _update(self, data: payloads.Message) -> Self:
for d in data.get("embeds", [])
]
self.reactions = [
Reaction(state=self.state, data=d, message=self)
Reaction(state=self.state, data=d, message_id=self.id, channel_id=self.channel.id)
for d in data.get("reactions", [])
]
self.pinned = data.get("pinned")
Expand Down

0 comments on commit 98d26a4

Please sign in to comment.