-
Notifications
You must be signed in to change notification settings - Fork 82
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
Forum posts #709
Forum posts #709
Conversation
Wouldn't the |
do you mean |
Yes |
the name follows discord docs, I also agree it should be renamed to create |
hm ok. The Discord docs don't really make much sense. It's creating a forum thread, not just a thread 🤔 |
true lol |
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.
LGTM other than the naming for functions that create forums threads that I've voiced before 👍🏼
Don't review yet, I want to add some things that were missing |
# Conflicts: # core/api/core.api # core/src/main/kotlin/cache/data/ChannelData.kt
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.
Several problem: Distinguish a text thread from a forum thread
core/src/main/kotlin/entity/channel/thread/ForumChannelThread.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/entity/channel/thread/TextChannelThread.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # rest/src/main/kotlin/builder/channel/thread/StartThreadBuilder.kt # rest/src/main/kotlin/builder/channel/thread/StartThreadWithMessageBuilder.kt
core/src/main/kotlin/behavior/channel/threads/ForumChannelThreadBehavior.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # common/src/main/kotlin/entity/DiscordChannel.kt # core/api/core.api # core/src/main/kotlin/cache/data/ChannelData.kt # core/src/main/kotlin/entity/channel/ForumChannel.kt # rest/src/main/kotlin/builder/channel/EditGuildChannelBuilder.kt # rest/src/main/kotlin/builder/channel/ForumChannelCreateBuilder.kt
The PR does more than the changed documentation do, is this intentional? |
I wanted to take advantage of the pull request, as this is part of the forums, but if you want I can make a separate one |
# Conflicts: # core/api/core.api
core/src/main/kotlin/entity/channel/thread/ForumChannelThread.kt
Outdated
Show resolved
Hide resolved
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.
1 issue and a minor nitpick. Other than that LGTM i cannot wait for merge :D
rest/src/main/kotlin/builder/channel/thread/ThreadModifyBuilder.kt
Outdated
Show resolved
Hide resolved
* add forum error codes * update docs of Permission.SendMessages for forums * add ChannelType.GuildForum * add ChannelFlags * add DiscordChannel.flags * add ChannelData.flags * add Channel.flags * add cache updates for lastMessageId of forum channels * Implmenet high level abstractions * Error 220003 * API dump * Fix compile error * More error codes * Add `ChannelFlag.RequireTag` * Add `thread_name` for execute webhook * Regenerate `ChannelType` * Remove `nsfwLevel` from channel * Dump API * Add SortOrderType * Add missing fields to DiscordChannel * Imports * Add missing properties for channel builders (#712) * Add missing properties for create forum channel * api dump * add missing fields in the other builders * api dump * move flags to forum threads * apply suggestions * Small fixes Co-authored-by: Lukellmann <[email protected]> * TextChannelModifyBuilder.defaultThreadRateLimitPerUser * Update KDoc for ChannelType.PublicGuildThread see discord/discord-api-docs#5556 * Add ChannelData.defaultSortOrder (#727) * Add default forum layout (#749) * Fix nullability and docs * Add missing default layout to core type (#752) * Message counts and position for channel and message (#726) * Message counts and position for channel and message * Api Dump * Is this dump better? * Update caches for message count and total message sent * Fix merge * Forum posts (#709) * support for creating forum posts * api dump * support for uploading files on forum posts * more support to forums and forum threads * fix errors * maintain code consistency * add forum tag routes * Api Dump * Update Intent KDoc * Check for applied tags * Remove ForumChannelThread type * Move possible functions to ForumChannelBehavior * add applied tags to modify builder * Properly configure JVM auto-provisioning * Fix appliedTags mutability * Fix spacings * Final fixes --------- Co-authored-by: Luis <[email protected]> Co-authored-by: Lukellmann <[email protected]> Co-authored-by: hope <[email protected]> Co-authored-by: Michael Rittmeister <[email protected]> --------- Co-authored-by: Lukellmann <[email protected]> Co-authored-by: Lukellmann <[email protected]> Co-authored-by: Luis <[email protected]> Co-authored-by: NoComment <[email protected]> Co-authored-by: Michael Rittmeister <[email protected]> Co-authored-by: Luis <[email protected]>
see discord/discord-api-docs#4850