[Robot] Add missing json error (#2447)
* Add 20024, 30032, 30034, 30052, 40012, 40043, 40058, 40066, 40067, 50017, 50132, 50138, 50146, 110001, 200000, 200001, 220001, 220002, 220003, 220004, 240000 Error codes * Update src/Discord.Net.Core/DiscordErrorCode.cs * Apply suggestions from code review Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop> Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
376a812b6a
commit
b967e6907c
@@ -66,6 +66,7 @@ namespace Discord
|
||||
ActionSlowmode = 20016,
|
||||
OnlyOwnerAction = 20018,
|
||||
AnnouncementEditRatelimit = 20022,
|
||||
UnderMinimumAge = 20024,
|
||||
ChannelWriteRatelimit = 20028,
|
||||
WriteRatelimitReached = 20029,
|
||||
WordsNotAllowed = 20031,
|
||||
@@ -88,7 +89,9 @@ namespace Discord
|
||||
MaximumServerMembersReached = 30019,
|
||||
MaximumServerCategoriesReached = 30030,
|
||||
GuildTemplateAlreadyExists = 30031,
|
||||
MaximumNumberOfApplicationCommandsReached = 30032,
|
||||
MaximumThreadMembersReached = 30033,
|
||||
MaxNumberOfDailyApplicationCommandCreatesHasBeenReached = 30034,
|
||||
MaximumBansForNonGuildMembersReached = 30035,
|
||||
MaximumBanFetchesReached = 30037,
|
||||
MaximumUncompleteGuildScheduledEvents = 30038,
|
||||
@@ -98,6 +101,7 @@ namespace Discord
|
||||
#endregion
|
||||
|
||||
#region General Request Errors (40XXX)
|
||||
BitrateIsTooHighForChannelOfThisType = 30052,
|
||||
MaximumNumberOfEditsReached = 30046,
|
||||
MaximumNumberOfPinnedThreadsInAForumChannelReached = 30047,
|
||||
MaximumNumberOfTagsInAForumChannelReached = 30048,
|
||||
@@ -108,12 +112,17 @@ namespace Discord
|
||||
RequestEntityTooLarge = 40005,
|
||||
FeatureDisabled = 40006,
|
||||
UserBanned = 40007,
|
||||
ConnectionHasBeenRevoked = 40012,
|
||||
TargetUserNotInVoice = 40032,
|
||||
MessageAlreadyCrossposted = 40033,
|
||||
ApplicationNameAlreadyExists = 40041,
|
||||
#endregion
|
||||
|
||||
#region Action Preconditions/Checks (50XXX)
|
||||
ApplicationInteractionFailedToSend = 40043,
|
||||
CannotSendAMessageInAForumChannel = 40058,
|
||||
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
||||
ATagIsRequiredToCreateAForumPostInThisChannel = 40067,
|
||||
InteractionHasAlreadyBeenAcknowledged = 40060,
|
||||
TagNamesMustBeUnique = 40061,
|
||||
MissingPermissions = 50001,
|
||||
@@ -132,6 +141,7 @@ namespace Discord
|
||||
InvalidAuthenticationToken = 50014,
|
||||
NoteTooLong = 50015,
|
||||
ProvidedMessageDeleteCountOutOfBounds = 50016,
|
||||
InvalidMFALevel = 50017,
|
||||
InvalidPinChannel = 50019,
|
||||
InvalidInvite = 50020,
|
||||
CannotExecuteOnSystemMessage = 50021,
|
||||
@@ -165,6 +175,9 @@ namespace Discord
|
||||
#endregion
|
||||
|
||||
#region 2FA (60XXX)
|
||||
OwnershipCannotBeTransferredToABotUser = 50132,
|
||||
AssetResizeBelowTheMaximumSize= 50138,
|
||||
UploadedFileNotFound = 50146,
|
||||
MissingPermissionToSendThisSticker = 50600,
|
||||
Requires2FA = 60003,
|
||||
#endregion
|
||||
@@ -178,6 +191,7 @@ namespace Discord
|
||||
#endregion
|
||||
|
||||
#region API Status (130XXX)
|
||||
ApplicationNotYetAvailable = 110001,
|
||||
APIOverloaded = 130000,
|
||||
#endregion
|
||||
|
||||
@@ -207,5 +221,15 @@ namespace Discord
|
||||
CannotUpdateFinishedEvent = 180000,
|
||||
FailedStageCreation = 180002,
|
||||
#endregion
|
||||
|
||||
#region Forum & Automod
|
||||
MessageWasBlockedByAutomaticModeration = 200000,
|
||||
TitleWasBlockedByAutomaticModeration = 200001,
|
||||
WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId = 220001,
|
||||
WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId = 220002,
|
||||
WebhooksCanOnlyCreateThreadsInForumChannels = 220003,
|
||||
WebhookServicesCannotBeUsedInForumChannels = 220004,
|
||||
MessageBlockedByHarmfulLinksFilter = 240000,
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user