-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update forum channel docs #5391
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
Conversation
Co-authored-by: Vitor <[email protected]>
Co-authored-by: Vitor <[email protected]>
the emoji id types should be “snowflake or number” or “snowflake or 0” |
what does "name of the unicode emoji" mean exactly? |
uh, I think it's like |
why? |
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.
Did some edits to the emoji fields
looks like:
- the emoji id and name fields are not optional
- emoji_id is 0 if a custom emoji or no emoji is set
- emoji_name is null (not an empty string) if a unicode emoji or no emoji is set
also emoji_name is not the name of a standard emoji, it is the actual emoji like emoji_name: "🅰️"
and in other emoji fields, for custom emojis, name
is the name of the custom emoji; why is that not the case here?
Snowflakes are documented to always be a string in the HTTP API, unless the request has incorrect data. 0 is returned as a number, not a string, so it does not fit the requirements of a snowflake field. honestly, ideally this field should just be null not 0, as I mentioned earlier edit: fixed link |
| available_tags? | array of [tag](#DOCS_RESOURCES_CHANNEL/forum-tag-object) objects | the set of tags that can be used in a `GUILD_FORUM` channel | | ||
| applied_tags? | array of snowflakes | the IDs of the set of tags that have been applied to a thread in a `GUILD_FORUM` channel | | ||
| default_reaction_emoji? | ?[default reaction](#DOCS_RESOURCES_CHANNEL/default-reaction-object) object | the emoji to show in the add reaction button on a thread in a `GUILD_FORUM` channel | | ||
| default_thread_rate_limit_per_user? | integer | the initial `rate_limit_per_user` to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. | |
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.
Is this field intended to work for text channels?
The Modify Channel docs says this field applies to text and forum channels, however it only shows on forum channels in the UI, and it doesn't seem to have an effect when set on a text or announcement channel.
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.
It only applies to forum channel.
Will the channel template field be documented? |
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.
The Modify Channel params do not have to explicitly be marked as optional because that is already documented:
All JSON parameters are optional.
Is it even in testing? |
oh, i didn't know setting it got blocked |
docs/resources/Channel.md
Outdated
| emoji_id | snowflake | the id of a guild's custom emoji, or 0 if unset \* | | ||
| emoji_name | ?string | the unicode character of the emoji \* | | ||
|
||
\* At most one of `emoji_id` and `emoji_name` may be set. |
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.
Could this still be changed to be consistent with other emoji in the API?
"emoji": {
"id": 123,
"name": "chillin",
"animated": true
}
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.
Uh, not right now, I'm just documenting what's implemented, but feel free to file a feature request for it
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.
Done #5393
| default_auto_archive_duration | ?integer | the default duration that the clients use (not the API) for newly created threads in the channel, in minutes, to automatically archive the thread after recent activity | Text, Announcement, Forum | | ||
| available_tags? | array of [tag](#DOCS_RESOURCES_CHANNEL/forum-tag-object) objects | the set of tags that can be used in a `GUILD_FORUM` channel | Forum | | ||
| default_reaction_emoji? | ?[default reaction](#DOCS_RESOURCES_CHANNEL/default-reaction-object) object | the emoji to show in the add reaction button on a thread in a `GUILD_FORUM` channel | Forum | | ||
| default_thread_rate_limit_per_user? | integer | the initial `rate_limit_per_user` to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. | Text, Forum | |
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.
Is this copied client-side or in the api?
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.
looks like in the API
Nope |
fyi, it'll return null instead of zero "soon" |
The |
those routes are deprecated and were replaced with PATCHing the channel with the new tags array |
given this PR is merged – and thus available for implementation – won't this be a breaking change? |
Ah yes, another "may change soon" after a merge. |
Don't use them, we'll get rid of them in the future. |
There's no need for the attitude. Before merging this PR a change was merged that switched it from emoji_id=0 to emoji_id=null. |
Preface: I don't consider this a breaking change per se, especially based off of your explanation. However, the |
Ok, I can update the docs for that |
Yup, that seems to be the case. |
👍 Well "soon" will be a bit longer then :D |
I think I got everything but hard to say for sure :)