Skip to content
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

Merged
merged 25 commits into from
Mar 20, 2023
Merged

Forum posts #709

merged 25 commits into from
Mar 20, 2023

Conversation

luisfbl
Copy link
Contributor

@luisfbl luisfbl commented Nov 2, 2022

@NoComment1105
Copy link
Contributor

Wouldn't the createPublicThread make more sense to the user as createPublicForum? Seems an unnecessary confusion. If the thread element is necessary perhaps createPublicForumThread?

@luisfbl
Copy link
Contributor Author

luisfbl commented Nov 2, 2022

do you mean startPublicThread in ForumChannelBehavior? I couldn't find anything by that name

@NoComment1105
Copy link
Contributor

Yes

@luisfbl
Copy link
Contributor Author

luisfbl commented Nov 2, 2022

the name follows discord docs, I also agree it should be renamed to create

@NoComment1105
Copy link
Contributor

hm ok. The Discord docs don't really make much sense. It's creating a forum thread, not just a thread 🤔

@luisfbl
Copy link
Contributor Author

luisfbl commented Nov 2, 2022

true lol

Copy link
Contributor

@NoComment1105 NoComment1105 left a 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 👍🏼

@luisfbl
Copy link
Contributor Author

luisfbl commented Nov 17, 2022

Don't review yet, I want to add some things that were missing

@luisfbl luisfbl mentioned this pull request Nov 18, 2022
38 tasks
Copy link
Contributor Author

@luisfbl luisfbl left a 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

# Conflicts:
#	rest/src/main/kotlin/builder/channel/thread/StartThreadBuilder.kt
#	rest/src/main/kotlin/builder/channel/thread/StartThreadWithMessageBuilder.kt
luisfbl and others added 4 commits November 27, 2022 16:54
# 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
@HopeBaron
Copy link
Member

The PR does more than the changed documentation do, is this intentional?

common/src/main/kotlin/Locale.kt Outdated Show resolved Hide resolved
common/src/main/kotlin/entity/DiscordChannel.kt Outdated Show resolved Hide resolved
@luisfbl
Copy link
Contributor Author

luisfbl commented Feb 21, 2023

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

Copy link
Contributor

@NoComment1105 NoComment1105 left a 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

@HopeBaron HopeBaron merged commit 365cc05 into kordlib:forums Mar 20, 2023
HopeBaron added a commit that referenced this pull request Mar 20, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants