We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec1193 commit 7b28073Copy full SHA for 7b28073
discord/threads.py
@@ -282,12 +282,12 @@ def members(self) -> List[ThreadMember]:
282
def applied_tags(self) -> List[ForumTag]:
283
"""List[:class:`ForumTag`]: A list of tags applied to this thread."""
284
tags = []
285
- if self.parent is None or self.parent.type != ChannelType.forum:
+ if self.parent is None or self.parent.type not in (ChannelType.forum, ChannelType.media):
286
return tags
287
288
parent = self.parent
289
for tag_id in self._applied_tags:
290
- tag = parent.get_tag(tag_id) # type: ignore
+ tag = parent.get_tag(tag_id) # type: ignore # parent here will be ForumChannel instance
291
if tag is not None:
292
tags.append(tag)
293
0 commit comments