Skip to content

Commit

Permalink
fix: map received applied_tags to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum committed Nov 29, 2022
1 parent 91bf63b commit 8f062ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _from_data(self, data: ThreadPayload):
self.member_count = data.get("member_count", None)
self.flags: ChannelFlags = ChannelFlags._from_value(data.get("flags", 0))
self.total_message_sent = data.get("total_message_sent", None)
self._applied_tags: list[int] = data.get("applied_tags", [])
self._applied_tags: list[int] = [int(tag_id) for tag_id in data.get("applied_tags", [])]

# Here, we try to fill in potentially missing data
if thread := self.guild.get_thread(self.id) and data.pop("_invoke_flag", False):
Expand Down

1 comment on commit 8f062ca

@Lulalaby
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did we missed that..

Please sign in to comment.