-
-
Notifications
You must be signed in to change notification settings - Fork 130
fix: Narrow thread-related properties for channels #1377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: Narrow thread-related properties for channels #1377
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Forgot to update deno's types as well, |
Just run the script, it will do it for you |
There was a problem hiding this 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
Please also run the formatting scripts :D |
Shall I bump the version in package.json as well? |
Narrows the property
parent_id
for:APIThreadChannel
: now includesparent_id?: Snowflake
, reflecting its parent thread relationship.APIGuildCategoryChannel
: now includesparent_id?: null
, clarifying that categories do not have a parent.Narrows the property
applied_tags
for:APIThreadOnlyChannel
: nowapplied_tags: Snowflake[]
is explicit to this type.Reference: https://discord.com/developers/docs/resources/channel#channel-object-channel-structure