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

Adds error 50068 #4366

Merged
merged 1 commit into from
Jan 25, 2022
Merged

Adds error 50068 #4366

merged 1 commit into from
Jan 25, 2022

Conversation

Jupith
Copy link
Contributor

@Jupith Jupith commented Jan 22, 2022

No description provided.

lukellmann added a commit to lukellmann/kord that referenced this pull request Jan 22, 2022
@typpo typpo merged commit 1be6065 into discord:master Jan 25, 2022
Nihlus added a commit to Remora/Remora.Discord that referenced this pull request Jan 27, 2022
HopeBaron pushed a commit to kordlib/kord that referenced this pull request Jan 29, 2022
HopeBaron added a commit to kordlib/kord that referenced this pull request Feb 3, 2022
* Cleanup: remove unnecessary opt-ins, fix top-level tests, experimental contracts everywhere (#471)

* Remove no longer necessary experimental annotations

* Move top-level test json.MessageTest.`User serialization` into class and make it pass

* Move top-level tests in EmojiTest.kt into class json.EmojiTest and make them pass

* Move top-level tests in GuildTest.kt into class json.GuildTest and make them pass

* Opt-in to experimental contracts for all modules

* Add limit to AuditLogGetRequestBuilder (Fix #476)

* Fix bug causing role PermissionOverwrites being added for members

* Add support for Interaction localization

* Update test data

* Revamp stickers (#473)

* Fix collection in 1.6.0

* revamp message sticker model

* Add sticker endpoints and services

* Add core representation for Stickers

* implement suppliers for stickers and cache

* allow Stickers to be have a strategy

* Introduce a GuildSticker with behavior

* Fix compiler errors

* Fix compiler errors, again

* Fix modeling of description to packId

* Fix wrong ISO number in doc

* Add new JsonErrorCodes and fix existing ones (#482)

* Remove duplicate link in all doc comments.

* Add, fix, remove duplicates

* Preserve binary compatibility for JsonErrorCode

* Parse locale properly

* Fix issue with Locale.fromString not parsing languages properly

* No longer send Authorization header on endpoints without authorization (#450)

* Don't encode Authorization header (#486)

* Fix encoding Authorization header

* Fix wrong header in KordBuilder

* Fix issue with Locale.fromString not parsing languages properly

* Nullable limit and before parameters in pagination, more precise Position type, multiple fixes (#484)

* Fix AuditLogGetRequestBuilder docs

* AuditLogGetRequestBuilder.limit is 50 by default

* Better types in pagination

* Always use service getters in RestEntitySupplier

* Default limit for getCurrentUserGuilds, see https://discord.com/developers/docs/resources/user#get-current-user-guilds

* Add checkLimitAndGetBatchSize function

* Add limitPagination function

* RestEntitySupplier.getMessagesAround did not use limit parameter

* Max limit/batchSize for RestEntitySupplier.guilds, see https://discord.com/developers/docs/resources/user#get-current-user-guilds

* Use more specific position types where possible

* Fixes for archived threads

* Lambdas for guilds idSelector

* Fix pagination for audit log

* Higher order function for limited pagination

* unexpected bigger page will not stop pagination

* batchSize as first param in pagination

* Make sure Position.Around can not be used in UserService.getCurrentUserGuilds

* Nullable limit and position parameters to use Discord's defaults

* Clearer names in pagination

* Cannot paginate nullable items

* Clarify no maxBatchSize documented

* Move map one more level in RestEntitySupplier.getJoinedPrivateArchivedThreads()

* idLt for consistency

* Fix issues with autocomplete serialization (#493)

* Fix issue with auto-complete serialization

* Fix compiler error

* Add requested changes
- Add missing instance check
- Clarify docs

* Cache pending property of Members (#495)

* Miscellaneous little fixes and changes (#490)

* Add error code 50086, see discord/discord-api-docs@a833b5c

* Remove unnecessary overrides in EntitySuppliers, toString for StoreEntitySupplier

* Remove unused param in modifyInteractionResponse()

* Data class where appropriate

* No data class for builders

* .

* Document RequestException instead of RestRequestException

* ComponentBuilders refactorings (#494)

* Fix inconsistencies with Locales (#488)

* Add disabled property to SelectMenuComponent (Fix #487) (#492)

* Prevent double CI on PR from branch in kord (#500)

* Fix both ci triggers skipping

* Fix condition

* Update .github/workflows/deployment-ci.yml

Co-authored-by: Lukellmann <47486203+Lukellmann@users.noreply.github.com>

* Update .github/workflows/deployment-ci.yml

Co-authored-by: Lukellmann <47486203+Lukellmann@users.noreply.github.com>

* Add communication_disabled_until audit log change key, see discord/discord-api-docs@c63a4d5 (#508)

* Fix Team.ownerUserId returning the wrong id (#509)

* Add error code 30046, see discord/discord-api-docs@a4be17f (#504)

* Add error code 50068, see discord/discord-api-docs#4366 (#501)

* Fix / add entdpoints without authorization, remove shards field from GatwayResponse (#489)

* No shards field on GatewayResponse

* Fix authentication header requirements

* inline shorthands in suppliers

* reason null by default everywhere

* Added missing properties for attachments. (#506)

* Added missing properties for attachments.

* Use nullable types instead of Optional in Attachment.kt.

Signed-off-by: bvanseg <bvanseg@gmail.com>

* clarify author docs (#505)

* fix bug when choices never get set (#499)

* fix bug when choices never get set

The `.choices` call returns a `MutableList<Choice<*>>?`, which causes the line in question to throw an error if it's null (the default given that it's a delegate call with the default being `Optional.Missing`)

* remove cast

Co-authored-by: Lukellmann <lukellmann@gmail.com>

* Remove random public top level logger in package dev.kord.common.entity (#510)

* Explicit api for all modules (and small changes on the way) (#474)

* Remove no longer necessary experimental annotations

* Move top-level test json.MessageTest.`User serialization` into class and make it pass

* Move top-level tests in EmojiTest.kt into class json.EmojiTest and make them pass

* Move top-level tests in GuildTest.kt into class json.GuildTest and make them pass

* Opt-in to experimental contracts for all modules

* explicitApi for all modules

* explicitApi for Color

* explicitApi for Annotations

* explicitApi for AuditLog

* explicitApi for RateLimiter

* explicitApi for DiscordPinsUpdateData and DiscordTyping

* explicitApi for DiscordActivity

* explicitApi for DiscordBitSet

* explicitApi for DiscordChannel

* explicitApi for DiscordComponent

* explicitApi for DiscordConnection

* explicitApi for DiscordEmoji

* explicitApi for DiscordGuild

* explicitApi for DiscordGuildScheduledEvent and DiscordGuildWidget

* explicitApi for DiscordIntegration

* explicitApi for DiscordInvite

* explicitApi for DiscordMessage

* explicitApi for DiscordNull and DiscordRole

* explicitApi for DiscordSelectOption, DiscordShard and DiscordStageInstance

* explicitApi for DiscordTemplate and DiscordTimestamp

* explicitApi for DiscordUser

* explicitApi for DiscordWebhook

* explicitApi for Interactions

* explicitApi for Invite and Member

* explicitApi for Optional

* explicitApi for Optional

* explicitApi for OptionalDelegates

* explicitApi for OptionalInt

* explicitApi for OptionalLong

* explicitApi for OptionalSnowflake

* explicitApi for Permission

* explicitApi for Presence

* explicitApi for RequestException

* explicitApi for Snowflake

* explicitApi for Team

* explicitApi for Command

* explicitApi for RateLimiter

* explicitApi for ActionRowBuilder

* explicitApi for AllowedMentionsBuilder

* explicitApi for MessageCreateBuilders

* explicitApi for AuditLogGetRequestBuilder

* explicitApi for GatewayConfiguration

* explicitApi for Gateway

* explicitApi for GuildChannelPositionModifyBuilder

* explicitApi for GuildRequests

* explicitApi for OptionsBuilder

* explicitApi for KtorRequestHandler

* explicitApi for RequestBuilder

* explicitApi for RestClient / RestService

* explicitApi for RoleCreateBuilder

* explicitApi for Event

* explicitApi for ApplicationCommandBuilders

* explicitApi for ApplicationInfoResponse, ApplicationService, AuditLogGetRequest and AuditLogService

* explicitApi for BanCreateBuilder, BanResponse

* explicitApi for ButtonBuilder

* explicitApi for CategoryCreateBuilder, CategoryModifyBuilder

* explicitApi for CdnUrl, Channel, ChannelFollowRequest, ChannelPermissionModifyBuilder and ChannelRequests

* explicitApi for ChannelService

* explicitApi for HttpUtils

* explicitApi for ComponentBuilders

* explicitApi for Connection, CurrentUserModifyBuilder and CurrentUserNicknameModifyResponse

* explicitApi for DiscordCdn

* explicitApi for DiscordErrorResponse and EditGuildChannelBuilder

* explicitApi for EmbedBuilder and EmbedResponse

* explicitApi for EmojiCreateBuilder, EmojiModifyBuilder, EmojiRequests and EmojiService

* explicitApi for FollowedChannelResponse, FollowupMessageModifyBuilder and Gateway

* explicitApi for FollowedChannelResponse, FollowupMessageModifyBuilder and Gateway

* explicitApi for GuildModifyBuilder

* explicitApi for GuildService

* explicitApi for Image

* explicitApi for InputChatBuilders

* explicitApi for IntegrationModifyBuilder and InteractionResponseModifyBuilder

* explicitApi for Intent

* explicitApi for InteractionService

* explicitApi for InteractionsRequests

* explicitApi for InviteCreateBuilder, InviteCreateRequest and InviteService

* add new error codes and explicitApi for JsonErrorCode

* explicitApi for Retry and LinearRetry

* explicitApi for LoginBuilder

* explicitApi for MemberAddBuilder and MemberModifyBuilder

* explicitApi for MessageCommandBuilders

* explicitApi for MessageModifyBuilder, UserMessageModifyBuilder and WebhookMessageModifyBuilder

* explicitApi for MessageRequests

* explicitApi for MultiApplicationCommandBuilder

* explicitApi for NamedFile

* explicitApi for NewsChannelCreateBuilder

* explicitApi for OpCode

* explicitApi for PermissionOverwriteBuilder, PermissionOverwritesBuilder, TextChannelCreateBuilder and VoiceChannelCreateBuilder

* explicitApi for Position, PresenceBuilder and Prune

* explicitApi for Request

* explicitApi for RequestBuilder

* explicitApi for RequestHandler and RestRequestException

* explicitApi for Route

* move companion object, Key class and NoStrategy up in Route.kt for better overview

* Group routes similar to docs

* explicitApi for RequestGuildMembersBuilder

* explicitApi for RoleModifyBuilder and RolePositionsModifyBuilder

* explicitApi for ScheduledEventCreateBuilder, ScheduledEventModifyBuilder and ScheduledEventRequests

* explicitApi for SelectOptionBuilder

* explicitApi for StageInstanceRequests and StageInstanceService.kt

* explicitApi for StartThreadBuilder and StartThreadWithMessageBuilder

* explicitApi for TemplateBuilders, TemplateRequests and TemplateService

* explicitApi for ThreadModifyBuilder, Ticker and UserCommandBuilders

* explicitApi for UserRequests and UserService

* explicitApi for VoiceService, VoiceStateModifyBuilder and VoiceStateRequests

* explicitApi for WidgetModifyBuilder

* remove unnecessary constructor keywords

* explicitApi for WebhookCreateBuilder, WebhookModifyBuilder, WebhookRequests, WebhookService and WelcomeScreenModifyBuilder

* * fix ExceptionInInitializerError in AuditLogChangeKey.Serializer caused by Color.Companion being private
* make OpCodes serializer non-companion

* revert change in NotSerializable

* Interactions models as data classes

* public (De-)SerializationStrategies

* DiscordClose as data class

* no data class for UrlFormatBuilder

* Restore explicit api after merge

* Revert "add new error codes and explicitApi for JsonErrorCode"

This reverts commit 75da90e.

* explicitApi for JsonErrorCode after revert (changes in #482 instead)

* Revert making serializers internal (will be in future PR)

* Forgot some

* Remove unused logger

* Restore explicit api after merge

* Restore public api after merge

* restore shards field for GatewayResponse, fixed in other PR

* Restore explicit api after merge

* Restore explicit api after merge

* SelectMenuComponent.disabled doc

* Locale doc

* Restore explicit api after merge

* Revert "Remove unused logger"

This reverts commit 87915e4.

* typo

Co-authored-by: Hope <34831095+HopeBaron@users.noreply.github.com>

* Add support for InteractionCreateEvent in LiveMessage (#485)

* Add InteractionCreateEvent to LiveMessage

* Add MessageCommandInteractionCreateEvent to LiveMessage

* voice: fix race condition where heartbeat is sent before authentication (#511)

* Revert change to `choices` type in `BaseChoiceBuilder` from #505 (#512)

* Add missing Webhook and Interaction functionality (#507)

* No shards field on GatewayResponse

* Fix authentication header requirements

* inline shorthands in suppliers

* reason null by default everywhere

* Add routes for webhooks and followup messages

* Add endpoints in WebhookService

* use createGlobalMessageCommandApplicationCommand in Kord

* add getFollowupMessage() to InteractionService, rename createPublicInteractionResponse()

* use builder from InteractionService in ActionInteractionBehavior

* use builder from InteractionService in FollowupMessageBehavior

* use builder from InteractionService in InteractionResponseBehavior

* use builder from InteractionService in PublicFollowupMessageBehavior

* add getFollowupMessageOrNull() and getFollowupMessage()

* getFollowupMessage() in EntitySupplier

* move withStrategy() to interfaces

* get, edit and delete functions for webhook messages

* Restore explicit api after merge

* formatting

* Rename InteractionFollowup to FollowupMessage and better typing for editing followups

* Fixes for #513 (Guild Scheduled Events) (#514)

* fix event models

* audit log reason for creating and modifying events

* remove no longer existing ScheduledEntityType.None

* remove no longer existing field GuildScheduledEventEntityMetadata.speakerIds

* var for all properties of ScheduledEventCreateBuilder

* new GuildScheduledEventPrivacyLevel type

* optional defaults

* Deprecate Stage Discovery, stickers in GuildPreview, createTimestamp for Threads (#491)

* Deprecate Stage Discovery, see discord/discord-api-docs#3152, discord/discord-api-docs#4191 and discord/discord-api-docs#4296

* Add stickers to GuildPreview, see discord/discord-api-docs@5b023e0

* createTimestamp for Threads, see discord/discord-api-docs@53ee010

* add required cast (#515)

* make it compile

* getInvite

* nullable limits in suppliers

* rename functions

* docs typo

Co-authored-by: Michael Rittmeister <michael@rittmeister.in>
Co-authored-by: Hope <34831095+HopeBaron@users.noreply.github.com>
Co-authored-by: Boston Vanseghi <51012994+bvanseg@users.noreply.github.com>
Co-authored-by: sschr15 <steven.sschr15@hotmail.com>
Co-authored-by: will421 <willou.421@gmail.com>
Co-authored-by: lost-illusi0n <66843744+lost-illusi0n@users.noreply.github.com>
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.

None yet

2 participants