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

0.7.0-RC2 #260

Merged
merged 92 commits into from
Apr 19, 2021
Merged

0.7.0-RC2 #260

merged 92 commits into from
Apr 19, 2021

Conversation

HopeBaron
Copy link
Member

0.7.0-RC2

Additions

Fixes

Changes

Dependencies

BartArys and others added 30 commits December 6, 2020 17:11
Allow null for channelId in UpdateVoiceState
* Add missing template endpoints

* Document stuff

Co-authored-by: HopeBaron <[email protected]>
* Add missing template endpoints

* Document stuff

* Add template core representation
* Allow nullable url in embed provider #149

* Add reference to the issue causing the change
* Add welcome screen

* Use Snowflake instead of String

* Add cache and core representation

* Add functions related to welcome screens and move them to partial guilds

* Add an exception for welcome screens

* Add welcome a orNull variant for welcomeScreens

* expose the list of channels

* Add mutable welcome screen builder

* Fix rest supplier function call

Co-authored-by: HopeBaron <[email protected]>
* Add interaction models

* Add interaction routes

* Add interactions rest service

* Move AllowedMentions to common

* Add serialization strategy for interaction type

* Add interaction create event

* Add interactions to RestClient

* Add interactions requests and builders

* Fix errors due to rename

* introduce a KordEntity type

Since interactions don't need a kord instance to exist.

* Fix incorrect type representation

* Add slash commands core representation

* Add missing interaction requests and fix route returns

* remove redundant applicationId

* Move application command data to matching file name

* Fix undocumented api behaviors

* Add missing applicationId and remove redundant properties

* Fix rest endpoints and builders

* Add interactions core entities and behaviors

* Remove pongs from interactions

They are not allowed through this endpoint

* Add wrapping class for parameters

* Allow no-parameter commands in builders

* Add application command gateway events

Due to the lack of information regarding the global commands  discord/discord-api-docs#2367 I've considered providing a guild application.

* Add convenient builders and @KordPreview for slash commands

* [WIP] - Options core representation

[skip ci]

* Simplyify filterInstanceOfList

* WIP: deserialize incoming interactions

* WIP - Add core representation for Groups, Commands, and Subcommands

* Document those interactions 🎉

* Assume the interaction's parameters are major

* Document NotSerializable serializer

* Restore CacheMissRegression

* Apply contracts and add docs to SlashCommands

* Add a convenient method to transform value into Snowflake

* Replace ExperimentalContracts with OptIn

* Improve docs

* Fix more typos
[skip ci]

* Document properties of Command and it's children

* Add permissions to the interaction

* Include a SlashCommands reference inside Kord and Guilds

Co-authored-by: HopeBaron <[email protected]>
Co-authored-by: BartArys <[email protected]>
* Don't infer version from CI env

* Add sonatype publishing
* Don't infer version from CI env

* Add sonatype publishing

Co-authored-by: Hope <[email protected]>
* Fix acknowledgement response functions

* Fix InteractionResponseBehavior#edit

* Remove Base Interaction class

Co-authored-by: HopeBaron <[email protected]>
* Add support for slash commands option errors

* nested errors has no definite structure
* Add support for slash commands option errors

* nested errors has no definite structure

* Remove function parameter for choices
* Proper to string conversion

* Provide meaningful error for snowflakes
* Proper to string conversion

* Provide meaningful error for snowflakes

* Make content optional in responses
* Properly (de)serialize DiscordActivityPartySize

* Do not deserialize as Iterable
* Update readme and changelog

* Fix modules readmes

* Update changelog

* Update FAQ

* remove buffer function call

* Update readmes with snapshots

* reference snapshot in dependency block

* replace snapshots names
* Remove unused class

* Add message flags
* Remove floating doc

* Set proper type for interaction channel

* Don't assign calculated properties

* Fix compiler warnings

* Fix serializing unknown auditlog keys

* Fix more compiler warnings

* Restructure ApplicationCommands

- Merge Guild and Global application commands and their related builders where possible.

- Introduce a REST test to check basic deser of application commands
HopeBaron and others added 27 commits March 26, 2021 20:25
* Add ResolvedChannel

adds support to resolved channels by application commands

* Provide a default strategy

* Add a meaningful toString

* Add proper spacing into toString

Co-authored-by: Bart Arys <[email protected]>

Co-authored-by: Bart Arys <[email protected]>
* Add webhook getters for guilds

* Add docs for webhook getters

* Move webhooks getters to Kord
* Deploy through releases

* Generate docs on releases only

* add control flow flags

* top level job checks

* replace forward slashs with dashs for snapshots

[publish skip]
* Handle unknown channel types

* Fix when check

* Update changelog

* Proper spacing
* inline bulk commands create method

* Add contracts to slash command create functions
* delete/edit acknowledgements
* Add failIfNotExists flag

* Add message reference core support

* Add failIfNotExist flag

* update change log
Channels with an unknown type won't be considered guild channels by our type system. Not returning them even though they technically are part of the guild is a quick and dirty fix until we consider a better approach.
* acknowledgement message flags

* don't forget return types

* allow modifying flags in interaction responses

* add a overloaded acknowledgement

* update docs

* overload InteractionBehavior#acknowledge to accept list of flags

* update InteractionBehavior#respond docs and params

* introduce public and ephemeral responses

* remove unresolved classes

* inline InteractionResponseBehaviors edit functions

* Optionalize builder in ephemeral responds

* introduce PublicFollowupMessage and EphemeralFollowupMessage

* restructure interaction behaviors/builders/entities

* Fix follow up and allowedMentions builders

* Ephemeral defer + Followup returns an ephemeral followup

* Fix typing and support multipart public response creation

* Rewrite builders

* rewrite behaviors

* wait flag is always true for followups

* Add channel behavior

* Document public/ephemeral followup message and interaction responses

* Apply suggestions

Co-authored-by: Bart Arys <[email protected]>

* Fix imports

* implement Strategizable interface

* apply suggestions

Co-authored-by: Bart Arys <[email protected]>
* implement get application by id endpoint

* Add KordPreview annotations

* rename Kord#getApplicationCommand to getGlobalApplicationCommand
* Use official kotlin style

[publish skip]

Co-authored-by: Michael Rittmeister <[email protected]>
* Add New webhook endpoints (discord/discord-api-docs#2243)
Relates to #121

* Make EditWebhookMessageBuilder.embeds a list of builders

* Remove webhookId from behavior

* Remove inapropriate docs

* Formatting

* Fix some formatting

* Fix some more  formatting

* Fix style issue in Route.kt

* Add test
Co-authored-by: Michael Rittmeister <[email protected]>
* Add webhook execution multiple file support

* Add interaction modify multiple file support

* Webhook patch multipart support

* allow multipart public follow-up message edits

* Fix compilation errors

* format files
* Implement slash command permissions

* Undo some formatting that should now have happened

* Undo some more formatting

* Implement some requested changes

* Add core representation

* Remove duplicated method

* Change name

* Implement requested changes
- Fix compilation error

* More requested changes

* Add Test
* Add allowed mentions to webhook execution builder

* unify allowed mentions behavior

* remove nullable allowed mentions in webhook execute request
* Fix All Permission to include UseSlashCommands

* return values as a set

* Add values field in both Permissions and Permission

* Exclude All from the set
* update changelog

* api dump

[ci skip]
@DRSchlaubi
Copy link
Member

Is this really happening?

@HopeBaron
Copy link
Member Author

As far as I can tell

@HopeBaron HopeBaron merged commit f1f0214 into master Apr 19, 2021
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