-
Notifications
You must be signed in to change notification settings - Fork 813
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
Add Forum settings to Channel struct #1306
Conversation
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.
Thank you for the PR! Here's some of my thoughts on it:
- We usually prefix the constant values of various types, to allow for better discoverability.
Channel
structure is only used for retrieving data from the API. The fields might also need to be added intoChannelEdit
structure, to allow for usage inModify
endpoint. They should haveomitempty
, and if necessary, pointer type. If a field has a possiblenull
value, just leave a "nullable" TODO, and keep it a pointer.
Sorry for reviewing it at such a time. Kinda forgot about the PR in all the holiday stuff. |
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
In my area, the New Year has come a little earlier. |
Thank you for a quick response, I'll probably merge the PR on the week. |
Add some settings of forum channel as shown docs.
https://discord.com/developers/docs/change-log#add-default-layout-setting-for-forum-channels
https://discord.com/developers/docs/change-log#default-sort-order-for-forum-channels
https://discord.com/developers/docs/resources/channel#channel-object-channel-structure