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

Implement forums #684

Merged
merged 46 commits into from
Mar 20, 2023
Merged

Implement forums #684

merged 46 commits into from
Mar 20, 2023

Conversation

HopeBaron
Copy link
Member

@HopeBaron HopeBaron commented Sep 8, 2022

relevant doc PRs:

Copy link
Member

@lukellmann lukellmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First thoughts, haven't looked at everything yet.

common/src/main/kotlin/entity/DiscordChannel.kt Outdated Show resolved Hide resolved
common/src/main/kotlin/entity/DiscordChannel.kt Outdated Show resolved Hide resolved
import kotlin.contracts.InvocationKind
import kotlin.contracts.contract

public interface ForumChannelBehavior : ThreadParentChannelBehavior {
Copy link
Member

@lukellmann lukellmann Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is missing an extension to create a thread, see here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied at #709

@lukellmann lukellmann changed the title Implmenet forums Implement forums Sep 11, 2022
@lukellmann lukellmann marked this pull request as draft September 11, 2022 00:44
@lukellmann lukellmann mentioned this pull request Sep 18, 2022
10 tasks
# Conflicts:
#	common/src/main/kotlin/entity/DiscordChannel.kt
#	core/api/core.api
#	core/src/main/kotlin/entity/channel/Channel.kt
# Conflicts:
#	common/src/main/kotlin/entity/DiscordChannel.kt
lukellmann and others added 6 commits October 25, 2022 17:46
* 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]>
# Conflicts:
#	common/build/generated/ksp/main/kotlin/dev/kord/common/entity/ChannelType.kt
#	core/api/core.api
#	core/src/main/kotlin/entity/channel/Channel.kt
lukellmann and others added 8 commits January 24, 2023 18:56
# Conflicts:
#	rest/src/main/kotlin/json/JsonErrorCode.kt
* 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
# Conflicts:
#	common/api/common.api
#	core/api/core.api
#	core/src/main/kotlin/cache/data/MessageData.kt
#	core/src/main/kotlin/entity/Message.kt
#	rest/api/rest.api
#	rest/src/main/kotlin/builder/message/create/WebhookMessageCreateBuilder.kt
#	rest/src/main/kotlin/json/request/WebhookRequests.kt
* 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]>
@HopeBaron HopeBaron marked this pull request as ready for review March 20, 2023 19:01
@HopeBaron HopeBaron merged commit b976bf0 into 0.8.x Mar 20, 2023
@HopeBaron HopeBaron deleted the forums branch March 20, 2023 19:04
@HopeBaron HopeBaron restored the forums branch March 20, 2023 19:04
@HopeBaron HopeBaron deleted the forums branch March 25, 2023 12:28
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