Skip to content

Conversation

osego
Copy link

@osego osego commented Sep 1, 2025

Summary

Fixes two related errors from Guild.templates() both caused by inconsistencies in channel available_tags:

  • TypeError when available_tags is null (happens for all non-forum channels and forum channels which don't have any tags)
  • KeyError when tags in available_tags don't have an 'id' key (happens in the opposite case from the above)

Relevant discord api docs issue: discord/discord-api-docs/issues/7798

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@Rapptz
Copy link
Owner

Rapptz commented Sep 1, 2025

Generally speaking I don't fix upstream issues unless they're not fixed so I'm holding off on merging this PR until then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants