Skip to content

Commit

Permalink
[Robot] Add missing json error (#2152)
Browse files Browse the repository at this point in the history
* Add 30046, 40004, 40060, 50068, 50086 Error codes

* Update src/Discord.Net.Core/DiscordErrorCode.cs

Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop>
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 2, 2022
1 parent 5594739 commit 202554f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Discord.Net.Core/DiscordErrorCode.cs
Expand Up @@ -96,9 +96,11 @@ public enum DiscordErrorCode
#endregion

#region General Request Errors (40XXX)
MaximumNumberOfEditsReached = 30046,
TokenUnauthorized = 40001,
InvalidVerification = 40002,
OpeningDMTooFast = 40003,
SendMessagesHasBeenTemporarilyDisabled = 40004,
RequestEntityTooLarge = 40005,
FeatureDisabled = 40006,
UserBanned = 40007,
Expand All @@ -108,6 +110,7 @@ public enum DiscordErrorCode
#endregion

#region Action Preconditions/Checks (50XXX)
InteractionHasAlreadyBeenAcknowledged = 40060,
MissingPermissions = 50001,
InvalidAccountType = 50002,
CannotExecuteForDM = 50003,
Expand Down Expand Up @@ -141,12 +144,14 @@ public enum DiscordErrorCode
InvalidFileUpload = 50046,
CannotSelfRedeemGift = 50054,
InvalidGuild = 50055,
InvalidMessageType = 50068,
PaymentSourceRequiredForGift = 50070,
CannotDeleteRequiredCommunityChannel = 50074,
InvalidSticker = 50081,
CannotExecuteOnArchivedThread = 50083,
InvalidThreadNotificationSettings = 50084,
BeforeValueEarlierThanThreadCreation = 50085,
CommunityServerChannelsMustBeTextChannels = 50086,
ServerLocaleUnavailable = 50095,
ServerRequiresMonetization = 50097,
ServerRequiresBoosts = 50101,
Expand Down

0 comments on commit 202554f

Please sign in to comment.