From 8f062ca0def4e87c5f74c9fd6c8e0ba9232aad36 Mon Sep 17 00:00:00 2001 From: Dorukyum Date: Tue, 29 Nov 2022 17:54:29 +0300 Subject: [PATCH] fix: map received applied_tags to int --- discord/threads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/threads.py b/discord/threads.py index 96eee779ec..13cf320cb1 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -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):