Skip to content

Commit

Permalink
Fix duplicated members of DiscordErrorCode (#2500)
Browse files Browse the repository at this point in the history
Additionally, fix typo in DiscordErrorCode
  • Loading branch information
gehongyan committed Nov 7, 2022
1 parent 7077c44 commit 6712ef4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/Discord.Net.Core/DiscordErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public enum DiscordErrorCode
MaxNumberOfDailyApplicationCommandCreatesHasBeenReached = 30034,
MaximumBansForNonGuildMembersReached = 30035,
MaximumBanFetchesReached = 30037,
MaximumUncompleteGuildScheduledEvents = 30038,
MaximumUncompletedGuildScheduledEvents = 30038,
MaximumStickersReached = 30039,
MaximumPruneRequestReached = 30040,
MaximumGuildWigitsReached = 30042,
MaximumGuildWidgetsReached = 30042,
#endregion

#region General Request Errors (40XXX)
Expand Down Expand Up @@ -128,12 +128,12 @@ public enum DiscordErrorCode
MissingPermissions = 50001,
InvalidAccountType = 50002,
CannotExecuteForDM = 50003,
GuildWigitDisabled = 50004,
GuildWidgetDisabled = 50004,
CannotEditOtherUsersMessage = 50005,
CannotSendEmptyMessage = 50006,
CannotSendMessageToUser = 50007,
CannotSendMessageToVoiceChannel = 50008,
ChannelVerificationTooHight = 50009,
ChannelVerificationTooHigh = 50009,
OAuth2ApplicationDoesntHaveBot = 50010,
OAuth2ApplicationLimitReached = 50011,
InvalidOAuth2State = 50012,
Expand Down Expand Up @@ -174,9 +174,8 @@ public enum DiscordErrorCode
ServerRequiresMonetization = 50097,
ServerRequiresBoosts = 50101,
RequestBodyContainsInvalidJSON = 50109,
FailedToResizeAssetBelowTheMaximumSize = 50138,
OwnershipCannotBeTransferredToABotUser = 50132,
AssetResizeBelowTheMaximumSize= 50138,
FailedToResizeAssetBelowTheMaximumSize = 50138,
UploadedFileNotFound = 50146,
MissingPermissionToSendThisSticker = 50600,
#endregion
Expand Down Expand Up @@ -215,16 +214,16 @@ public enum DiscordErrorCode
LottieCantContainRasters = 170002,
StickerMaximumFramerateExceeded = 170003,
StickerMaximumFrameCountExceeded = 170004,
LottieMaximumDimentionsExceeded = 170005,
StickerFramerateBoundsExceeed = 170006,
LottieMaximumDimensionsExceeded = 170005,
StickerFramerateBoundsExceeded = 170006,
StickerAnimationDurationTooLong = 170007,
#endregion

#region Guild Scheduled Events
CannotUpdateFinishedEvent = 180000,
FailedStageCreation = 180002,
#endregion

#region Forum & Automod
MessageWasBlockedByAutomaticModeration = 200000,
TitleWasBlockedByAutomaticModeration = 200001,
Expand Down

0 comments on commit 6712ef4

Please sign in to comment.