Skip to content

Commit

Permalink
[Robot] Add missing json error (#2601)
Browse files Browse the repository at this point in the history
* 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 <robot@elons.sweatshop.stop>
Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com>
Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com>
  • Loading branch information
4 people committed Mar 31, 2023
1 parent 9ef5a76 commit a8ae1e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Discord.Net.Core/DiscordErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public enum DiscordErrorCode
MaximumNumberOfEditsReached = 30046,
MaximumNumberOfPinnedThreadsInAForumChannelReached = 30047,
MaximumNumberOfTagsInAForumChannelReached = 30048,
MaximumNumberOfPremiumEmojisReached = 30056,
MaximumNumberOfWebhooksReached = 30058,
MaximumNumberOfChannelPermissionOverwritesReached = 30060,
TheChannelsForThisGuildAreTooLarge = 30061,
Expand Down Expand Up @@ -176,12 +177,15 @@ public enum DiscordErrorCode
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,
Expand Down

0 comments on commit a8ae1e9

Please sign in to comment.