[Robot] Add missing json error (#2152)
* 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>
This commit is contained in:
committed by
GitHub
parent
5594739135
commit
202554fdde
@@ -96,9 +96,11 @@ namespace Discord
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region General Request Errors (40XXX)
|
#region General Request Errors (40XXX)
|
||||||
|
MaximumNumberOfEditsReached = 30046,
|
||||||
TokenUnauthorized = 40001,
|
TokenUnauthorized = 40001,
|
||||||
InvalidVerification = 40002,
|
InvalidVerification = 40002,
|
||||||
OpeningDMTooFast = 40003,
|
OpeningDMTooFast = 40003,
|
||||||
|
SendMessagesHasBeenTemporarilyDisabled = 40004,
|
||||||
RequestEntityTooLarge = 40005,
|
RequestEntityTooLarge = 40005,
|
||||||
FeatureDisabled = 40006,
|
FeatureDisabled = 40006,
|
||||||
UserBanned = 40007,
|
UserBanned = 40007,
|
||||||
@@ -108,6 +110,7 @@ namespace Discord
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Action Preconditions/Checks (50XXX)
|
#region Action Preconditions/Checks (50XXX)
|
||||||
|
InteractionHasAlreadyBeenAcknowledged = 40060,
|
||||||
MissingPermissions = 50001,
|
MissingPermissions = 50001,
|
||||||
InvalidAccountType = 50002,
|
InvalidAccountType = 50002,
|
||||||
CannotExecuteForDM = 50003,
|
CannotExecuteForDM = 50003,
|
||||||
@@ -141,12 +144,14 @@ namespace Discord
|
|||||||
InvalidFileUpload = 50046,
|
InvalidFileUpload = 50046,
|
||||||
CannotSelfRedeemGift = 50054,
|
CannotSelfRedeemGift = 50054,
|
||||||
InvalidGuild = 50055,
|
InvalidGuild = 50055,
|
||||||
|
InvalidMessageType = 50068,
|
||||||
PaymentSourceRequiredForGift = 50070,
|
PaymentSourceRequiredForGift = 50070,
|
||||||
CannotDeleteRequiredCommunityChannel = 50074,
|
CannotDeleteRequiredCommunityChannel = 50074,
|
||||||
InvalidSticker = 50081,
|
InvalidSticker = 50081,
|
||||||
CannotExecuteOnArchivedThread = 50083,
|
CannotExecuteOnArchivedThread = 50083,
|
||||||
InvalidThreadNotificationSettings = 50084,
|
InvalidThreadNotificationSettings = 50084,
|
||||||
BeforeValueEarlierThanThreadCreation = 50085,
|
BeforeValueEarlierThanThreadCreation = 50085,
|
||||||
|
CommunityServerChannelsMustBeTextChannels = 50086,
|
||||||
ServerLocaleUnavailable = 50095,
|
ServerLocaleUnavailable = 50095,
|
||||||
ServerRequiresMonetization = 50097,
|
ServerRequiresMonetization = 50097,
|
||||||
ServerRequiresBoosts = 50101,
|
ServerRequiresBoosts = 50101,
|
||||||
|
|||||||
Reference in New Issue
Block a user