From a8ae1e9b9f0e68a60396d7415be7a97bcf53a4d0 Mon Sep 17 00:00:00 2001 From: Discord-NET-Robot <95661365+Discord-NET-Robot@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:54:03 -0300 Subject: [PATCH] [Robot] Add missing json error (#2601) * Add 30056, 50091, 50144, 50145 Error codes * Apply suggestions from code review Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com> --------- Co-authored-by: Discord.Net Robot Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com> Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com> --- src/Discord.Net.Core/DiscordErrorCode.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Discord.Net.Core/DiscordErrorCode.cs b/src/Discord.Net.Core/DiscordErrorCode.cs index e8f1f5e8..2dc389cb 100644 --- a/src/Discord.Net.Core/DiscordErrorCode.cs +++ b/src/Discord.Net.Core/DiscordErrorCode.cs @@ -103,6 +103,7 @@ namespace Discord MaximumNumberOfEditsReached = 30046, MaximumNumberOfPinnedThreadsInAForumChannelReached = 30047, MaximumNumberOfTagsInAForumChannelReached = 30048, + MaximumNumberOfPremiumEmojisReached = 30056, MaximumNumberOfWebhooksReached = 30058, MaximumNumberOfChannelPermissionOverwritesReached = 30060, TheChannelsForThisGuildAreTooLarge = 30061, @@ -176,12 +177,15 @@ namespace Discord InvalidThreadNotificationSettings = 50084, BeforeValueEarlierThanThreadCreation = 50085, CommunityServerChannelsMustBeTextChannels = 50086, + TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor = 50091, ServerLocaleUnavailable = 50095, ServerRequiresMonetization = 50097, ServerRequiresBoosts = 50101, RequestBodyContainsInvalidJSON = 50109, OwnershipCannotBeTransferredToABotUser = 50132, FailedToResizeAssetBelowTheMaximumSize = 50138, + CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji = 50144, + CannotConvertBetweenPremiumEmojiAndNormalEmoji = 50145, UploadedFileNotFound = 50146, FeatureInProcessOfRollingOut = 50155, MissingPermissionToSendThisSticker = 50600,