Skip to content

Conversation

Nabil-249
Copy link

@Nabil-249 Nabil-249 commented Sep 21, 2025

Narrows the property parent_id for:

  • APIThreadChannel: now includes parent_id?: Snowflake, reflecting its parent thread relationship.

  • APIGuildCategoryChannel: now includes parent_id?: null, clarifying that categories do not have a parent.

Narrows the property applied_tags for:

  • APIThreadOnlyChannel: now applied_tags: Snowflake[] is explicit to this type.

Reference: https://discord.com/developers/docs/resources/channel#channel-object-channel-structure

Copy link

vercel bot commented Sep 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
discord-api-types Ready Ready Preview Comment Sep 21, 2025 2:01pm

@Nabil-249
Copy link
Author

Nabil-249 commented Sep 21, 2025

Forgot to update deno's types as well, will do it in the next draft will do a commit it here.

@vladfrangu
Copy link
Member

Just run the script, it will do it for you

Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

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

You'll also need to do this change for v9, please 🙏

only show applied_tags field in APIGuildForumChannel and APIGuildMediaChannel
@vladfrangu
Copy link
Member

Please also run the formatting scripts :D

@Jiralite Jiralite changed the title fix(Channel): fix type inference for APIChannel fix: Narrow thread-related properties for channels Sep 21, 2025
@Nabil-249
Copy link
Author

Shall I bump the version in package.json as well?

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

Successfully merging this pull request may close these issues.

3 participants