disgroove 2.0.0 → 2.1.0-dev.c430b6f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/lib/Client.d.ts +10 -1
  2. package/dist/lib/Client.js +193 -179
  3. package/dist/lib/constants.d.ts +17 -5
  4. package/dist/lib/constants.js +221 -209
  5. package/dist/lib/gateway/Shard.js +6 -1
  6. package/dist/lib/gateway/ShardManager.js +0 -1
  7. package/dist/lib/gateway/index.js +0 -1
  8. package/dist/lib/index.js +0 -1
  9. package/dist/lib/rest/CDN.js +0 -1
  10. package/dist/lib/rest/Endpoints.d.ts +4 -2
  11. package/dist/lib/rest/Endpoints.js +8 -5
  12. package/dist/lib/rest/RequestManager.d.ts +2 -3
  13. package/dist/lib/rest/RequestManager.js +17 -18
  14. package/dist/lib/rest/index.js +0 -1
  15. package/dist/lib/types/application-command.js +0 -1
  16. package/dist/lib/types/application-role-connection-metadata.js +0 -1
  17. package/dist/lib/types/application.js +0 -1
  18. package/dist/lib/types/audit-log.js +0 -1
  19. package/dist/lib/types/auto-moderation.js +0 -1
  20. package/dist/lib/types/channel.d.ts +4 -0
  21. package/dist/lib/types/channel.js +0 -1
  22. package/dist/lib/types/emoji.js +0 -1
  23. package/dist/lib/types/entitlements.js +0 -1
  24. package/dist/lib/types/gateway-events.d.ts +28 -0
  25. package/dist/lib/types/gateway-events.js +0 -1
  26. package/dist/lib/types/guild-scheduled-event.js +0 -1
  27. package/dist/lib/types/guild-template.js +0 -1
  28. package/dist/lib/types/guild.js +0 -1
  29. package/dist/lib/types/index.js +0 -1
  30. package/dist/lib/types/interaction.d.ts +3 -0
  31. package/dist/lib/types/interaction.js +0 -1
  32. package/dist/lib/types/invite.js +0 -1
  33. package/dist/lib/types/message-components.js +0 -1
  34. package/dist/lib/types/poll.d.ts +52 -0
  35. package/dist/lib/types/poll.js +2 -0
  36. package/dist/lib/types/role.js +0 -1
  37. package/dist/lib/types/sku.js +0 -1
  38. package/dist/lib/types/stage-instance.js +0 -1
  39. package/dist/lib/types/sticker.js +0 -1
  40. package/dist/lib/types/team.js +0 -1
  41. package/dist/lib/types/user.js +0 -1
  42. package/dist/lib/types/voice.js +0 -1
  43. package/dist/lib/types/webhook.d.ts +3 -0
  44. package/dist/lib/types/webhook.js +0 -1
  45. package/dist/lib/utils/Util.js +0 -1
  46. package/dist/lib/utils/errors.d.ts +1 -1
  47. package/dist/lib/utils/errors.js +4 -5
  48. package/dist/lib/utils/index.js +0 -1
  49. package/dist/package.json +4 -1
  50. package/package.json +4 -1
  51. package/dist/lib/Client.js.map +0 -1
  52. package/dist/lib/constants.js.map +0 -1
  53. package/dist/lib/gateway/Shard.js.map +0 -1
  54. package/dist/lib/gateway/ShardManager.js.map +0 -1
  55. package/dist/lib/gateway/ShardsManager.d.ts +0 -6
  56. package/dist/lib/gateway/ShardsManager.js +0 -14
  57. package/dist/lib/gateway/ShardsManager.js.map +0 -1
  58. package/dist/lib/gateway/index.js.map +0 -1
  59. package/dist/lib/index.js.map +0 -1
  60. package/dist/lib/rest/CDN.js.map +0 -1
  61. package/dist/lib/rest/Endpoints.js.map +0 -1
  62. package/dist/lib/rest/REST.d.ts +0 -17
  63. package/dist/lib/rest/REST.js +0 -35
  64. package/dist/lib/rest/REST.js.map +0 -1
  65. package/dist/lib/rest/RequestManager.js.map +0 -1
  66. package/dist/lib/rest/RequestsManager.d.ts +0 -22
  67. package/dist/lib/rest/RequestsManager.js +0 -123
  68. package/dist/lib/rest/RequestsManager.js.map +0 -1
  69. package/dist/lib/rest/index.js.map +0 -1
  70. package/dist/lib/structures/Application.d.ts +0 -174
  71. package/dist/lib/structures/Application.js +0 -328
  72. package/dist/lib/structures/Application.js.map +0 -1
  73. package/dist/lib/structures/ApplicationCommand.d.ts +0 -45
  74. package/dist/lib/structures/ApplicationCommand.js +0 -127
  75. package/dist/lib/structures/ApplicationCommand.js.map +0 -1
  76. package/dist/lib/structures/AuditLog.d.ts +0 -19
  77. package/dist/lib/structures/AuditLog.js +0 -101
  78. package/dist/lib/structures/AuditLog.js.map +0 -1
  79. package/dist/lib/structures/AutoModerationRule.d.ts +0 -34
  80. package/dist/lib/structures/AutoModerationRule.js +0 -96
  81. package/dist/lib/structures/AutoModerationRule.js.map +0 -1
  82. package/dist/lib/structures/Base.d.ts +0 -10
  83. package/dist/lib/structures/Base.js +0 -23
  84. package/dist/lib/structures/Base.js.map +0 -1
  85. package/dist/lib/structures/Channel.d.ts +0 -254
  86. package/dist/lib/structures/Channel.js +0 -592
  87. package/dist/lib/structures/Channel.js.map +0 -1
  88. package/dist/lib/structures/ClientApplication.d.ts +0 -150
  89. package/dist/lib/structures/ClientApplication.js +0 -241
  90. package/dist/lib/structures/ClientApplication.js.map +0 -1
  91. package/dist/lib/structures/Emoji.d.ts +0 -26
  92. package/dist/lib/structures/Emoji.js +0 -75
  93. package/dist/lib/structures/Emoji.js.map +0 -1
  94. package/dist/lib/structures/Entitlement.d.ts +0 -24
  95. package/dist/lib/structures/Entitlement.js +0 -68
  96. package/dist/lib/structures/Entitlement.js.map +0 -1
  97. package/dist/lib/structures/Guild.d.ts +0 -474
  98. package/dist/lib/structures/Guild.js +0 -1141
  99. package/dist/lib/structures/Guild.js.map +0 -1
  100. package/dist/lib/structures/GuildMember.d.ts +0 -49
  101. package/dist/lib/structures/GuildMember.js +0 -146
  102. package/dist/lib/structures/GuildMember.js.map +0 -1
  103. package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -49
  104. package/dist/lib/structures/GuildScheduledEvent.js +0 -118
  105. package/dist/lib/structures/GuildScheduledEvent.js.map +0 -1
  106. package/dist/lib/structures/GuildTemplate.d.ts +0 -30
  107. package/dist/lib/structures/GuildTemplate.js +0 -72
  108. package/dist/lib/structures/GuildTemplate.js.map +0 -1
  109. package/dist/lib/structures/IdentifiableBase.d.ts +0 -15
  110. package/dist/lib/structures/IdentifiableBase.js +0 -25
  111. package/dist/lib/structures/IdentifiableBase.js.map +0 -1
  112. package/dist/lib/structures/Integration.d.ts +0 -31
  113. package/dist/lib/structures/Integration.js +0 -103
  114. package/dist/lib/structures/Integration.js.map +0 -1
  115. package/dist/lib/structures/Interaction.d.ts +0 -76
  116. package/dist/lib/structures/Interaction.js +0 -346
  117. package/dist/lib/structures/Interaction.js.map +0 -1
  118. package/dist/lib/structures/Invite.d.ts +0 -26
  119. package/dist/lib/structures/Invite.js +0 -82
  120. package/dist/lib/structures/Invite.js.map +0 -1
  121. package/dist/lib/structures/Message.d.ts +0 -86
  122. package/dist/lib/structures/Message.js +0 -303
  123. package/dist/lib/structures/Message.js.map +0 -1
  124. package/dist/lib/structures/Role.d.ts +0 -37
  125. package/dist/lib/structures/Role.js +0 -90
  126. package/dist/lib/structures/Role.js.map +0 -1
  127. package/dist/lib/structures/SKU.d.ts +0 -23
  128. package/dist/lib/structures/SKU.js +0 -63
  129. package/dist/lib/structures/SKU.js.map +0 -1
  130. package/dist/lib/structures/StageInstance.d.ts +0 -24
  131. package/dist/lib/structures/StageInstance.js +0 -57
  132. package/dist/lib/structures/StageInstance.js.map +0 -1
  133. package/dist/lib/structures/Sticker.d.ts +0 -31
  134. package/dist/lib/structures/Sticker.js +0 -86
  135. package/dist/lib/structures/Sticker.js.map +0 -1
  136. package/dist/lib/structures/Team.d.ts +0 -14
  137. package/dist/lib/structures/Team.js +0 -39
  138. package/dist/lib/structures/Team.js.map +0 -1
  139. package/dist/lib/structures/TestEntitlement.d.ts +0 -23
  140. package/dist/lib/structures/TestEntitlement.js +0 -61
  141. package/dist/lib/structures/TestEntitlement.js.map +0 -1
  142. package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
  143. package/dist/lib/structures/UnavailableGuild.js +0 -25
  144. package/dist/lib/structures/UnavailableGuild.js.map +0 -1
  145. package/dist/lib/structures/User.d.ts +0 -63
  146. package/dist/lib/structures/User.js +0 -177
  147. package/dist/lib/structures/User.js.map +0 -1
  148. package/dist/lib/structures/VoiceState.d.ts +0 -24
  149. package/dist/lib/structures/VoiceState.js +0 -66
  150. package/dist/lib/structures/VoiceState.js.map +0 -1
  151. package/dist/lib/structures/Webhook.d.ts +0 -82
  152. package/dist/lib/structures/Webhook.js +0 -223
  153. package/dist/lib/structures/Webhook.js.map +0 -1
  154. package/dist/lib/structures/index.d.ts +0 -28
  155. package/dist/lib/structures/index.js +0 -45
  156. package/dist/lib/structures/index.js.map +0 -1
  157. package/dist/lib/types/application-command.js.map +0 -1
  158. package/dist/lib/types/application-role-connection-metadata.js.map +0 -1
  159. package/dist/lib/types/application.js.map +0 -1
  160. package/dist/lib/types/audit-log.js.map +0 -1
  161. package/dist/lib/types/auto-moderation.js.map +0 -1
  162. package/dist/lib/types/channel.js.map +0 -1
  163. package/dist/lib/types/emoji.js.map +0 -1
  164. package/dist/lib/types/entitlements.js.map +0 -1
  165. package/dist/lib/types/gateway-events.js.map +0 -1
  166. package/dist/lib/types/guild-scheduled-event.js.map +0 -1
  167. package/dist/lib/types/guild-template.js.map +0 -1
  168. package/dist/lib/types/guild.js.map +0 -1
  169. package/dist/lib/types/index.js.map +0 -1
  170. package/dist/lib/types/interaction.js.map +0 -1
  171. package/dist/lib/types/invite.js.map +0 -1
  172. package/dist/lib/types/message-components.js.map +0 -1
  173. package/dist/lib/types/role.js.map +0 -1
  174. package/dist/lib/types/sku.js.map +0 -1
  175. package/dist/lib/types/stage-instance.js.map +0 -1
  176. package/dist/lib/types/sticker.js.map +0 -1
  177. package/dist/lib/types/team.js.map +0 -1
  178. package/dist/lib/types/user.js.map +0 -1
  179. package/dist/lib/types/voice.js.map +0 -1
  180. package/dist/lib/types/webhook.js.map +0 -1
  181. package/dist/lib/utils/Collection.d.ts +0 -24
  182. package/dist/lib/utils/Collection.js +0 -65
  183. package/dist/lib/utils/Collection.js.map +0 -1
  184. package/dist/lib/utils/Util.js.map +0 -1
  185. package/dist/lib/utils/errors.js.map +0 -1
  186. package/dist/lib/utils/index.js.map +0 -1
@@ -456,6 +456,9 @@ export declare enum InviteTargetTypes {
456
456
  Stream = 1,
457
457
  EmbeddedApplication = 2
458
458
  }
459
+ export declare enum LayoutType {
460
+ Default = 1
461
+ }
459
462
  /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */
460
463
  export declare enum PrivacyLevel {
461
464
  Public = 1,
@@ -638,7 +641,9 @@ export declare enum GatewayEvents {
638
641
  UserUpdate = "userUpdate",
639
642
  VoiceStateUpdate = "voiceStateUpdate",
640
643
  VoiceServerUpdate = "voiceServerUpdate",
641
- WebhooksUpdate = "webhooksUpdate"
644
+ WebhooksUpdate = "webhooksUpdate",
645
+ MessagePollVoteAdd = "messagePollVoteAdd",
646
+ MessagePollVoteRemove = "messagePollVoteRemove"
642
647
  }
643
648
  /** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types */
644
649
  export declare enum ActivityType {
@@ -768,7 +773,7 @@ export declare enum HTTPResponseCodes {
768
773
  ServerError = "5xx"
769
774
  }
770
775
  /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes */
771
- export declare enum JsonErrorCodes {
776
+ export declare enum JSONErrorCodes {
772
777
  GeneralError = 0,
773
778
  UnknownAccount = 10001,
774
779
  UnknownApplication = 10002,
@@ -928,7 +933,7 @@ export declare enum JsonErrorCodes {
928
933
  ServerNotAvailableInYourLocation = 50095,
929
934
  ServerNeedsMonetizationEnabledToPerformThisAction = 50097,
930
935
  ServerNeedsMoreBoostsToPerformThisAction = 50101,
931
- RequestBodyContainsInvalidJson = 50109,
936
+ RequestBodyContainsInvalidJSON = 50109,
932
937
  OwnerCannotBePendingMember = 50131,
933
938
  OwnershipCannotBeMovedToABotUser = 50132,
934
939
  FailedToResizeAssetBelowTheMinimumSize = 50138,
@@ -954,7 +959,7 @@ export declare enum JsonErrorCodes {
954
959
  ThreadLocked = 160005,
955
960
  MaximumActiveThreads = 160006,
956
961
  MaximumActiveAnnouncementThreads = 160007,
957
- InvalidJsonForUploadedLottieFile = 170001,
962
+ InvalidJSONForUploadedLottieFile = 170001,
958
963
  UploadedLottiesCannotContainRasterizedImages = 170002,
959
964
  StickerMaximumFramerateExceeded = 170003,
960
965
  StickerFrameCountExceedsMaximumOf1000Frames = 170004,
@@ -971,7 +976,14 @@ export declare enum JsonErrorCodes {
971
976
  WebhookServicesCannotBeUsedInForumChannels = 220004,
972
977
  MessageBlockedByHarmfulLinksFilter = 240000,
973
978
  CannotEnableOnboardingRequirementsAreNotMet = 350000,
974
- CannotUpdateOnboardingWhileBelowRequirements = 350001
979
+ CannotUpdateOnboardingWhileBelowRequirements = 350001,
980
+ PollVotingBlocked = 520000,
981
+ PollExpired = 520001,
982
+ InvalidChannelTypeForPollCreation = 520002,
983
+ CannotEditAPollMessage = 520003,
984
+ CannotUseAnEmojiIncludedWithThePoll = 520004,
985
+ CannotExpireANonPollMessage = 520006,
986
+ PollIsAlreadyExpired = 520007
975
987
  }
976
988
  /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-error-codes */
977
989
  export declare enum RPCErrorCodes {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = exports.InviteTargetTypes = exports.GuildScheduledEventStatus = exports.GuildScheduledEventEntityTypes = exports.GuildScheduledEventPrivacyLevel = exports.ImageWidgetStyleOptions = exports.PromptTypes = exports.OnboardingMode = exports.IntegrationExpireBehaviors = exports.GuildMemberFlags = exports.MutableGuildFeatures = exports.GuildFeatures = exports.SystemChannelFlags = exports.PremiumTier = exports.GuildNSFWLevel = exports.VerificationLevel = exports.MFALevel = exports.ExplicitContentFilterLevel = exports.DefaultMessageNotificationLevel = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = exports.ForumLayoutTypes = exports.SortOrderTypes = exports.ChannelFlags = exports.VideoQualityModes = exports.ChannelTypes = exports.ActionTypes = exports.EventTypes = exports.KeywordPresetTypes = exports.TriggerTypes = exports.AuditLogEvents = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlags = exports.TextInputStyles = exports.ButtonStyles = exports.InteractionCallbackType = exports.ComponentTypes = exports.InteractionType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.ApplicationCommandTypes = exports.Locales = exports.ImageFormats = void 0;
4
- exports.EntitlementTypes = exports.SkuFlags = exports.SkuTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JsonErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.VisibilityTypes = exports.Services = void 0;
3
+ exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = exports.LayoutType = exports.InviteTargetTypes = exports.GuildScheduledEventStatus = exports.GuildScheduledEventEntityTypes = exports.GuildScheduledEventPrivacyLevel = exports.ImageWidgetStyleOptions = exports.PromptTypes = exports.OnboardingMode = exports.IntegrationExpireBehaviors = exports.GuildMemberFlags = exports.MutableGuildFeatures = exports.GuildFeatures = exports.SystemChannelFlags = exports.PremiumTier = exports.GuildNSFWLevel = exports.VerificationLevel = exports.MFALevel = exports.ExplicitContentFilterLevel = exports.DefaultMessageNotificationLevel = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = exports.ForumLayoutTypes = exports.SortOrderTypes = exports.ChannelFlags = exports.VideoQualityModes = exports.ChannelTypes = exports.ActionTypes = exports.EventTypes = exports.KeywordPresetTypes = exports.TriggerTypes = exports.AuditLogEvents = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlags = exports.TextInputStyles = exports.ButtonStyles = exports.InteractionCallbackType = exports.ComponentTypes = exports.InteractionType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.ApplicationCommandTypes = exports.Locales = exports.ImageFormats = void 0;
4
+ exports.EntitlementTypes = exports.SkuFlags = exports.SkuTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = void 0;
5
5
  /** https://discord.com/developers/docs/reference#image-formatting-image-formats */
6
6
  var ImageFormats;
7
7
  (function (ImageFormats) {
@@ -505,6 +505,10 @@ var InviteTargetTypes;
505
505
  InviteTargetTypes[InviteTargetTypes["Stream"] = 1] = "Stream";
506
506
  InviteTargetTypes[InviteTargetTypes["EmbeddedApplication"] = 2] = "EmbeddedApplication";
507
507
  })(InviteTargetTypes || (exports.InviteTargetTypes = InviteTargetTypes = {}));
508
+ var LayoutType;
509
+ (function (LayoutType) {
510
+ LayoutType[LayoutType["Default"] = 1] = "Default";
511
+ })(LayoutType || (exports.LayoutType = LayoutType = {}));
508
512
  /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */
509
513
  var PrivacyLevel;
510
514
  (function (PrivacyLevel) {
@@ -700,6 +704,8 @@ var GatewayEvents;
700
704
  GatewayEvents["VoiceStateUpdate"] = "voiceStateUpdate";
701
705
  GatewayEvents["VoiceServerUpdate"] = "voiceServerUpdate";
702
706
  GatewayEvents["WebhooksUpdate"] = "webhooksUpdate";
707
+ GatewayEvents["MessagePollVoteAdd"] = "messagePollVoteAdd";
708
+ GatewayEvents["MessagePollVoteRemove"] = "messagePollVoteRemove";
703
709
  })(GatewayEvents || (exports.GatewayEvents = GatewayEvents = {}));
704
710
  /** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types */
705
711
  var ActivityType;
@@ -837,212 +843,219 @@ var HTTPResponseCodes;
837
843
  HTTPResponseCodes["ServerError"] = "5xx";
838
844
  })(HTTPResponseCodes || (exports.HTTPResponseCodes = HTTPResponseCodes = {}));
839
845
  /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes */
840
- var JsonErrorCodes;
841
- (function (JsonErrorCodes) {
842
- JsonErrorCodes[JsonErrorCodes["GeneralError"] = 0] = "GeneralError";
843
- JsonErrorCodes[JsonErrorCodes["UnknownAccount"] = 10001] = "UnknownAccount";
844
- JsonErrorCodes[JsonErrorCodes["UnknownApplication"] = 10002] = "UnknownApplication";
845
- JsonErrorCodes[JsonErrorCodes["UnknownChannel"] = 10003] = "UnknownChannel";
846
- JsonErrorCodes[JsonErrorCodes["UnknownGuild"] = 10004] = "UnknownGuild";
847
- JsonErrorCodes[JsonErrorCodes["UnknownIntegration"] = 10005] = "UnknownIntegration";
848
- JsonErrorCodes[JsonErrorCodes["UnknownInvite"] = 10006] = "UnknownInvite";
849
- JsonErrorCodes[JsonErrorCodes["UnknownMember"] = 10007] = "UnknownMember";
850
- JsonErrorCodes[JsonErrorCodes["UnknownMessage"] = 10008] = "UnknownMessage";
851
- JsonErrorCodes[JsonErrorCodes["UnknownPermissionOverwrite"] = 10009] = "UnknownPermissionOverwrite";
852
- JsonErrorCodes[JsonErrorCodes["UnknownProvider"] = 10010] = "UnknownProvider";
853
- JsonErrorCodes[JsonErrorCodes["UnknownRole"] = 10011] = "UnknownRole";
854
- JsonErrorCodes[JsonErrorCodes["UnknownToken"] = 10012] = "UnknownToken";
855
- JsonErrorCodes[JsonErrorCodes["UnknownUser"] = 10013] = "UnknownUser";
856
- JsonErrorCodes[JsonErrorCodes["UnknownEmoji"] = 10014] = "UnknownEmoji";
857
- JsonErrorCodes[JsonErrorCodes["UnknownWebhook"] = 10015] = "UnknownWebhook";
858
- JsonErrorCodes[JsonErrorCodes["UnknownWebhookService"] = 10016] = "UnknownWebhookService";
859
- JsonErrorCodes[JsonErrorCodes["UnknownSession"] = 10020] = "UnknownSession";
860
- JsonErrorCodes[JsonErrorCodes["UnknownBan"] = 10026] = "UnknownBan";
861
- JsonErrorCodes[JsonErrorCodes["UnknownSku"] = 10027] = "UnknownSku";
862
- JsonErrorCodes[JsonErrorCodes["UnknownStoreListing"] = 10028] = "UnknownStoreListing";
863
- JsonErrorCodes[JsonErrorCodes["UnknownEntitlement"] = 10029] = "UnknownEntitlement";
864
- JsonErrorCodes[JsonErrorCodes["UnknownBuild"] = 10030] = "UnknownBuild";
865
- JsonErrorCodes[JsonErrorCodes["UnknownLobby"] = 10031] = "UnknownLobby";
866
- JsonErrorCodes[JsonErrorCodes["UnknownBranch"] = 10032] = "UnknownBranch";
867
- JsonErrorCodes[JsonErrorCodes["UnknownStoreDirectoryLayout"] = 10033] = "UnknownStoreDirectoryLayout";
868
- JsonErrorCodes[JsonErrorCodes["UnknownRedistributable"] = 10036] = "UnknownRedistributable";
869
- JsonErrorCodes[JsonErrorCodes["UnknownGiftCode"] = 10038] = "UnknownGiftCode";
870
- JsonErrorCodes[JsonErrorCodes["UnknownStream"] = 10049] = "UnknownStream";
871
- JsonErrorCodes[JsonErrorCodes["UnknownPremiumServerSubscribeCooldown"] = 10050] = "UnknownPremiumServerSubscribeCooldown";
872
- JsonErrorCodes[JsonErrorCodes["UnknownGuildTemplate"] = 10057] = "UnknownGuildTemplate";
873
- JsonErrorCodes[JsonErrorCodes["UnknownDiscoverableServerCategory"] = 10059] = "UnknownDiscoverableServerCategory";
874
- JsonErrorCodes[JsonErrorCodes["UnknownSticker"] = 10060] = "UnknownSticker";
875
- JsonErrorCodes[JsonErrorCodes["UnknownInteraction"] = 10062] = "UnknownInteraction";
876
- JsonErrorCodes[JsonErrorCodes["UnknownApplicationCommand"] = 10063] = "UnknownApplicationCommand";
877
- JsonErrorCodes[JsonErrorCodes["UnknownVoiceState"] = 10065] = "UnknownVoiceState";
878
- JsonErrorCodes[JsonErrorCodes["UnknownApplicationCommandPermissions"] = 10066] = "UnknownApplicationCommandPermissions";
879
- JsonErrorCodes[JsonErrorCodes["UnknownStageInstance"] = 10067] = "UnknownStageInstance";
880
- JsonErrorCodes[JsonErrorCodes["UnknownGuildMemberVerificationForm"] = 10068] = "UnknownGuildMemberVerificationForm";
881
- JsonErrorCodes[JsonErrorCodes["UnknownGuildWelcomeScreen"] = 10069] = "UnknownGuildWelcomeScreen";
882
- JsonErrorCodes[JsonErrorCodes["UnknownGuildScheduledEvent"] = 10070] = "UnknownGuildScheduledEvent";
883
- JsonErrorCodes[JsonErrorCodes["UnknownGuildScheduledEventUser"] = 10071] = "UnknownGuildScheduledEventUser";
884
- JsonErrorCodes[JsonErrorCodes["UnknownTag"] = 10087] = "UnknownTag";
885
- JsonErrorCodes[JsonErrorCodes["BotsCannotUseThisEndpoint"] = 20001] = "BotsCannotUseThisEndpoint";
886
- JsonErrorCodes[JsonErrorCodes["OnlyBotsCanUseThisEndpoint"] = 20002] = "OnlyBotsCanUseThisEndpoint";
887
- JsonErrorCodes[JsonErrorCodes["ExplicitContentCannotBeSentToTheDesiredRecipient"] = 20009] = "ExplicitContentCannotBeSentToTheDesiredRecipient";
888
- JsonErrorCodes[JsonErrorCodes["NotAuthorizedToPerformThisActionOnThisApplication"] = 20012] = "NotAuthorizedToPerformThisActionOnThisApplication";
889
- JsonErrorCodes[JsonErrorCodes["ActionCannotBePerformedDueToSlowmodeRateLimit"] = 20016] = "ActionCannotBePerformedDueToSlowmodeRateLimit";
890
- JsonErrorCodes[JsonErrorCodes["TheMazeIsntMeantForYou"] = 20017] = "TheMazeIsntMeantForYou";
891
- JsonErrorCodes[JsonErrorCodes["OnlyTheOwnerOfThisAccountCanPerformThisAction"] = 20018] = "OnlyTheOwnerOfThisAccountCanPerformThisAction";
892
- JsonErrorCodes[JsonErrorCodes["AnnouncementEditLimitExceeded"] = 20022] = "AnnouncementEditLimitExceeded";
893
- JsonErrorCodes[JsonErrorCodes["UnderMinimumAge"] = 20024] = "UnderMinimumAge";
894
- JsonErrorCodes[JsonErrorCodes["ChannelSendRateLimit"] = 20028] = "ChannelSendRateLimit";
895
- JsonErrorCodes[JsonErrorCodes["ServerSendRateLimit"] = 20029] = "ServerSendRateLimit";
896
- JsonErrorCodes[JsonErrorCodes["StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords"] = 20031] = "StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords";
897
- JsonErrorCodes[JsonErrorCodes["GuildPremiumSubscriptionLevelTooLow"] = 20035] = "GuildPremiumSubscriptionLevelTooLow";
898
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfGuildsReached"] = 30001] = "MaximumNumberOfGuildsReached";
899
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfFriendsReached"] = 30002] = "MaximumNumberOfFriendsReached";
900
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfPinsReachedForTheChannel"] = 30003] = "MaximumNumberOfPinsReachedForTheChannel";
901
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfRecipientsReached"] = 30004] = "MaximumNumberOfRecipientsReached";
902
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfGuildRolesReached"] = 30005] = "MaximumNumberOfGuildRolesReached";
903
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfWebhooksReached"] = 30007] = "MaximumNumberOfWebhooksReached";
904
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfEmojisReached"] = 30008] = "MaximumNumberOfEmojisReached";
905
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfReactionsReached"] = 30010] = "MaximumNumberOfReactionsReached";
906
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfGroupDMsReached"] = 30011] = "MaximumNumberOfGroupDMsReached";
907
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfGuildChannelsReached"] = 30013] = "MaximumNumberOfGuildChannelsReached";
908
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfAttachmentsInAMessageReached"] = 30015] = "MaximumNumberOfAttachmentsInAMessageReached";
909
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfInvitesReached"] = 30016] = "MaximumNumberOfInvitesReached";
910
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfAnimatedEmojisReached"] = 30018] = "MaximumNumberOfAnimatedEmojisReached";
911
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfServerMembersReached"] = 30019] = "MaximumNumberOfServerMembersReached";
912
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfServerCategoriesReached"] = 30030] = "MaximumNumberOfServerCategoriesReached";
913
- JsonErrorCodes[JsonErrorCodes["GuildAlreadyHasTemplate"] = 30031] = "GuildAlreadyHasTemplate";
914
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfApplicationCommandsReached"] = 30032] = "MaximumNumberOfApplicationCommandsReached";
915
- JsonErrorCodes[JsonErrorCodes["MaximumThreadParticipantsReached"] = 30033] = "MaximumThreadParticipantsReached";
916
- JsonErrorCodes[JsonErrorCodes["MaximumDailyApplicationCommandCreatesReached"] = 30034] = "MaximumDailyApplicationCommandCreatesReached";
917
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfNonGuildMemberBansHasBeenExceeded"] = 30035] = "MaximumNumberOfNonGuildMemberBansHasBeenExceeded";
918
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfBanFetchesHasBeenReached"] = 30037] = "MaximumNumberOfBanFetchesHasBeenReached";
919
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfUncompletedGuildScheduledEventsReached"] = 30038] = "MaximumNumberOfUncompletedGuildScheduledEventsReached";
920
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfStickersReached"] = 30039] = "MaximumNumberOfStickersReached";
921
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfPruneRequestsHasBeenReached"] = 30040] = "MaximumNumberOfPruneRequestsHasBeenReached";
922
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached"] = 30042] = "MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached";
923
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfEditsToMessagesOlderThanOneHourReached"] = 30046] = "MaximumNumberOfEditsToMessagesOlderThanOneHourReached";
924
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfPinnedThreadsInForumHasBeenReached"] = 30047] = "MaximumNumberOfPinnedThreadsInForumHasBeenReached";
925
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfTagsInForumHasBeenReached"] = 30048] = "MaximumNumberOfTagsInForumHasBeenReached";
926
- JsonErrorCodes[JsonErrorCodes["BitrateIsTooHighForChannelOfThisType"] = 30052] = "BitrateIsTooHighForChannelOfThisType";
927
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfPremiumEmojisReached"] = 30056] = "MaximumNumberOfPremiumEmojisReached";
928
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfWebhooksPerGuildReached"] = 30058] = "MaximumNumberOfWebhooksPerGuildReached";
929
- JsonErrorCodes[JsonErrorCodes["MaximumNumberOfChannelPermissionOverwritesReached"] = 30060] = "MaximumNumberOfChannelPermissionOverwritesReached";
930
- JsonErrorCodes[JsonErrorCodes["TheChannelsForThisGuildAreTooLarge"] = 30061] = "TheChannelsForThisGuildAreTooLarge";
931
- JsonErrorCodes[JsonErrorCodes["Unauthorized"] = 40001] = "Unauthorized";
932
- JsonErrorCodes[JsonErrorCodes["VerifyYourAccount"] = 40002] = "VerifyYourAccount";
933
- JsonErrorCodes[JsonErrorCodes["OpeningDirectMessagesTooFast"] = 40003] = "OpeningDirectMessagesTooFast";
934
- JsonErrorCodes[JsonErrorCodes["SendMessagesHasBeenTemporarilyDisabled"] = 40004] = "SendMessagesHasBeenTemporarilyDisabled";
935
- JsonErrorCodes[JsonErrorCodes["RequestEntityTooLarge"] = 40005] = "RequestEntityTooLarge";
936
- JsonErrorCodes[JsonErrorCodes["FeatureTemporarilyDisabledServerSide"] = 40006] = "FeatureTemporarilyDisabledServerSide";
937
- JsonErrorCodes[JsonErrorCodes["UserBannedFromThisGuild"] = 40007] = "UserBannedFromThisGuild";
938
- JsonErrorCodes[JsonErrorCodes["ConnectionHasBeenRevoked"] = 40012] = "ConnectionHasBeenRevoked";
939
- JsonErrorCodes[JsonErrorCodes["TargetUserIsNotConnectedToVoice"] = 40032] = "TargetUserIsNotConnectedToVoice";
940
- JsonErrorCodes[JsonErrorCodes["ThisMessageWasAlreadyCrossposted"] = 40033] = "ThisMessageWasAlreadyCrossposted";
941
- JsonErrorCodes[JsonErrorCodes["ApplicationCommandWithThatNameAlreadyExists"] = 40041] = "ApplicationCommandWithThatNameAlreadyExists";
942
- JsonErrorCodes[JsonErrorCodes["ApplicationInteractionFailedToSend"] = 40043] = "ApplicationInteractionFailedToSend";
943
- JsonErrorCodes[JsonErrorCodes["CannotSendAMessageInAForumChannel"] = 40058] = "CannotSendAMessageInAForumChannel";
944
- JsonErrorCodes[JsonErrorCodes["InteractionHasAlreadyBeenAcknowledged"] = 40060] = "InteractionHasAlreadyBeenAcknowledged";
945
- JsonErrorCodes[JsonErrorCodes["TagNamesMustBeUnique"] = 40061] = "TagNamesMustBeUnique";
946
- JsonErrorCodes[JsonErrorCodes["ServiceResourceIsBeingRateLimited"] = 40062] = "ServiceResourceIsBeingRateLimited";
947
- JsonErrorCodes[JsonErrorCodes["ThereAreNoTagsAvailableThatCanBeSetByNonModerators"] = 40066] = "ThereAreNoTagsAvailableThatCanBeSetByNonModerators";
948
- JsonErrorCodes[JsonErrorCodes["TagRequiredToCreateAForumPostInThisChannel"] = 40067] = "TagRequiredToCreateAForumPostInThisChannel";
949
- JsonErrorCodes[JsonErrorCodes["AnEntitlementHasAlreadyBeenGrantedForThisResource"] = 40074] = "AnEntitlementHasAlreadyBeenGrantedForThisResource";
950
- JsonErrorCodes[JsonErrorCodes["MissingAccess"] = 50001] = "MissingAccess";
951
- JsonErrorCodes[JsonErrorCodes["InvalidAccountType"] = 50002] = "InvalidAccountType";
952
- JsonErrorCodes[JsonErrorCodes["CannotExecuteActionOnDMChannel"] = 50003] = "CannotExecuteActionOnDMChannel";
953
- JsonErrorCodes[JsonErrorCodes["GuildWidgetDisabled"] = 50004] = "GuildWidgetDisabled";
954
- JsonErrorCodes[JsonErrorCodes["CannotEditMessageAuthoredByAnotherUser"] = 50005] = "CannotEditMessageAuthoredByAnotherUser";
955
- JsonErrorCodes[JsonErrorCodes["CannotSendAnEmptyMessage"] = 50006] = "CannotSendAnEmptyMessage";
956
- JsonErrorCodes[JsonErrorCodes["CannotSendMessagesToThisUser"] = 50007] = "CannotSendMessagesToThisUser";
957
- JsonErrorCodes[JsonErrorCodes["CannotSendMessagesInNonTextChannel"] = 50008] = "CannotSendMessagesInNonTextChannel";
958
- JsonErrorCodes[JsonErrorCodes["ChannelVerificationLevelTooHighForYouToGainAccess"] = 50009] = "ChannelVerificationLevelTooHighForYouToGainAccess";
959
- JsonErrorCodes[JsonErrorCodes["OAuth2ApplicationDoesNotHaveBot"] = 50010] = "OAuth2ApplicationDoesNotHaveBot";
960
- JsonErrorCodes[JsonErrorCodes["OAuth2ApplicationLimitReached"] = 50011] = "OAuth2ApplicationLimitReached";
961
- JsonErrorCodes[JsonErrorCodes["InvalidOAuth2State"] = 50012] = "InvalidOAuth2State";
962
- JsonErrorCodes[JsonErrorCodes["MissingPermissions"] = 50013] = "MissingPermissions";
963
- JsonErrorCodes[JsonErrorCodes["InvalidToken"] = 50014] = "InvalidToken";
964
- JsonErrorCodes[JsonErrorCodes["NoteWasTooLong"] = 50015] = "NoteWasTooLong";
965
- JsonErrorCodes[JsonErrorCodes["ProvidedTooFewOrTooManyMessagesToDelete"] = 50016] = "ProvidedTooFewOrTooManyMessagesToDelete";
966
- JsonErrorCodes[JsonErrorCodes["InvalidMFALevel"] = 50017] = "InvalidMFALevel";
967
- JsonErrorCodes[JsonErrorCodes["MessageCanOnlyBePinnedInTheChannelItWasSentIn"] = 50019] = "MessageCanOnlyBePinnedInTheChannelItWasSentIn";
968
- JsonErrorCodes[JsonErrorCodes["InviteCodeInvalidOrTaken"] = 50020] = "InviteCodeInvalidOrTaken";
969
- JsonErrorCodes[JsonErrorCodes["CannotExecuteActionOnSystemMessage"] = 50021] = "CannotExecuteActionOnSystemMessage";
970
- JsonErrorCodes[JsonErrorCodes["CannotExecuteActionOnThisChannelType"] = 50024] = "CannotExecuteActionOnThisChannelType";
971
- JsonErrorCodes[JsonErrorCodes["InvalidOAuth2AccessToken"] = 50025] = "InvalidOAuth2AccessToken";
972
- JsonErrorCodes[JsonErrorCodes["MissingRequiredOAuth2Scope"] = 50026] = "MissingRequiredOAuth2Scope";
973
- JsonErrorCodes[JsonErrorCodes["InvalidWebhookToken"] = 50027] = "InvalidWebhookToken";
974
- JsonErrorCodes[JsonErrorCodes["InvalidRole"] = 50028] = "InvalidRole";
975
- JsonErrorCodes[JsonErrorCodes["InvalidRecipients"] = 50033] = "InvalidRecipients";
976
- JsonErrorCodes[JsonErrorCodes["OneOfTheMessagesProvidedWasTooOldForBulkDelete"] = 50034] = "OneOfTheMessagesProvidedWasTooOldForBulkDelete";
977
- JsonErrorCodes[JsonErrorCodes["InvalidFormBodyOrContentType"] = 50035] = "InvalidFormBodyOrContentType";
978
- JsonErrorCodes[JsonErrorCodes["InviteAcceptedToGuildWithoutTheBotBeingIn"] = 50036] = "InviteAcceptedToGuildWithoutTheBotBeingIn";
979
- JsonErrorCodes[JsonErrorCodes["InvalidActivityAction"] = 50039] = "InvalidActivityAction";
980
- JsonErrorCodes[JsonErrorCodes["InvalidAPIVersion"] = 50041] = "InvalidAPIVersion";
981
- JsonErrorCodes[JsonErrorCodes["FileUploadedExceedsMaximumSize"] = 50045] = "FileUploadedExceedsMaximumSize";
982
- JsonErrorCodes[JsonErrorCodes["InvalidFileUploaded"] = 50046] = "InvalidFileUploaded";
983
- JsonErrorCodes[JsonErrorCodes["CannotSelfRedeemThisGift"] = 50054] = "CannotSelfRedeemThisGift";
984
- JsonErrorCodes[JsonErrorCodes["InvalidGuild"] = 50055] = "InvalidGuild";
985
- JsonErrorCodes[JsonErrorCodes["InvalidSku"] = 50057] = "InvalidSku";
986
- JsonErrorCodes[JsonErrorCodes["InvalidRequestOrigin"] = 50067] = "InvalidRequestOrigin";
987
- JsonErrorCodes[JsonErrorCodes["InvalidMessageType"] = 50068] = "InvalidMessageType";
988
- JsonErrorCodes[JsonErrorCodes["PaymentSourceRequiredToRedeemGift"] = 50070] = "PaymentSourceRequiredToRedeemGift";
989
- JsonErrorCodes[JsonErrorCodes["CannotModifyASystemWebhook"] = 50073] = "CannotModifyASystemWebhook";
990
- JsonErrorCodes[JsonErrorCodes["CannotDeleteChannelRequiredForCommunityGuilds"] = 50074] = "CannotDeleteChannelRequiredForCommunityGuilds";
991
- JsonErrorCodes[JsonErrorCodes["CannotEditStickersWithinMessage"] = 50080] = "CannotEditStickersWithinMessage";
992
- JsonErrorCodes[JsonErrorCodes["InvalidStickerSent"] = 50081] = "InvalidStickerSent";
993
- JsonErrorCodes[JsonErrorCodes["InvalidActionOnArchivedThread"] = 50083] = "InvalidActionOnArchivedThread";
994
- JsonErrorCodes[JsonErrorCodes["InvalidThreadNotificationSettings"] = 50084] = "InvalidThreadNotificationSettings";
995
- JsonErrorCodes[JsonErrorCodes["ParameterEarlierThanCreation"] = 50085] = "ParameterEarlierThanCreation";
996
- JsonErrorCodes[JsonErrorCodes["CommunityServerChannelsMustBeTextChannels"] = 50086] = "CommunityServerChannelsMustBeTextChannels";
997
- JsonErrorCodes[JsonErrorCodes["TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor"] = 50091] = "TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor";
998
- JsonErrorCodes[JsonErrorCodes["ServerNotAvailableInYourLocation"] = 50095] = "ServerNotAvailableInYourLocation";
999
- JsonErrorCodes[JsonErrorCodes["ServerNeedsMonetizationEnabledToPerformThisAction"] = 50097] = "ServerNeedsMonetizationEnabledToPerformThisAction";
1000
- JsonErrorCodes[JsonErrorCodes["ServerNeedsMoreBoostsToPerformThisAction"] = 50101] = "ServerNeedsMoreBoostsToPerformThisAction";
1001
- JsonErrorCodes[JsonErrorCodes["RequestBodyContainsInvalidJson"] = 50109] = "RequestBodyContainsInvalidJson";
1002
- JsonErrorCodes[JsonErrorCodes["OwnerCannotBePendingMember"] = 50131] = "OwnerCannotBePendingMember";
1003
- JsonErrorCodes[JsonErrorCodes["OwnershipCannotBeMovedToABotUser"] = 50132] = "OwnershipCannotBeMovedToABotUser";
1004
- JsonErrorCodes[JsonErrorCodes["FailedToResizeAssetBelowTheMinimumSize"] = 50138] = "FailedToResizeAssetBelowTheMinimumSize";
1005
- JsonErrorCodes[JsonErrorCodes["CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji"] = 50144] = "CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji";
1006
- JsonErrorCodes[JsonErrorCodes["CannotConvertBetweenPremiumEmojiAndNormalEmoji"] = 50145] = "CannotConvertBetweenPremiumEmojiAndNormalEmoji";
1007
- JsonErrorCodes[JsonErrorCodes["UploadedFileNotFound"] = 50146] = "UploadedFileNotFound";
1008
- JsonErrorCodes[JsonErrorCodes["VoiceMessagesDoNotSupportAdditionalContent"] = 50159] = "VoiceMessagesDoNotSupportAdditionalContent";
1009
- JsonErrorCodes[JsonErrorCodes["VoiceMessagesMustHaveASingleAudioAttachment"] = 50160] = "VoiceMessagesMustHaveASingleAudioAttachment";
1010
- JsonErrorCodes[JsonErrorCodes["VoiceMessagesMustHaveSupportingMetadata"] = 50161] = "VoiceMessagesMustHaveSupportingMetadata";
1011
- JsonErrorCodes[JsonErrorCodes["VoiceMessagesCannotBeEdited"] = 50162] = "VoiceMessagesCannotBeEdited";
1012
- JsonErrorCodes[JsonErrorCodes["CannotDeleteGuildSubscriptionIntegration"] = 50163] = "CannotDeleteGuildSubscriptionIntegration";
1013
- JsonErrorCodes[JsonErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
1014
- JsonErrorCodes[JsonErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
1015
- JsonErrorCodes[JsonErrorCodes["YouDoNotHavePermissionToSendThisSticker"] = 50600] = "YouDoNotHavePermissionToSendThisSticker";
1016
- JsonErrorCodes[JsonErrorCodes["TwoFactorAuthenticationIsRequired"] = 60003] = "TwoFactorAuthenticationIsRequired";
1017
- JsonErrorCodes[JsonErrorCodes["NoUsersWithDiscordTagExist"] = 80004] = "NoUsersWithDiscordTagExist";
1018
- JsonErrorCodes[JsonErrorCodes["ReactionWasBlocked"] = 90001] = "ReactionWasBlocked";
1019
- JsonErrorCodes[JsonErrorCodes["ApplicationNotYetAvailable"] = 110001] = "ApplicationNotYetAvailable";
1020
- JsonErrorCodes[JsonErrorCodes["APIResourceOverloaded"] = 130000] = "APIResourceOverloaded";
1021
- JsonErrorCodes[JsonErrorCodes["TheStageIsAlreadyOpen"] = 150006] = "TheStageIsAlreadyOpen";
1022
- JsonErrorCodes[JsonErrorCodes["CannotReplyWithoutPermissionToReadMessageHistory"] = 160002] = "CannotReplyWithoutPermissionToReadMessageHistory";
1023
- JsonErrorCodes[JsonErrorCodes["ThreadAlreadyCreatedForMessage"] = 160004] = "ThreadAlreadyCreatedForMessage";
1024
- JsonErrorCodes[JsonErrorCodes["ThreadLocked"] = 160005] = "ThreadLocked";
1025
- JsonErrorCodes[JsonErrorCodes["MaximumActiveThreads"] = 160006] = "MaximumActiveThreads";
1026
- JsonErrorCodes[JsonErrorCodes["MaximumActiveAnnouncementThreads"] = 160007] = "MaximumActiveAnnouncementThreads";
1027
- JsonErrorCodes[JsonErrorCodes["InvalidJsonForUploadedLottieFile"] = 170001] = "InvalidJsonForUploadedLottieFile";
1028
- JsonErrorCodes[JsonErrorCodes["UploadedLottiesCannotContainRasterizedImages"] = 170002] = "UploadedLottiesCannotContainRasterizedImages";
1029
- JsonErrorCodes[JsonErrorCodes["StickerMaximumFramerateExceeded"] = 170003] = "StickerMaximumFramerateExceeded";
1030
- JsonErrorCodes[JsonErrorCodes["StickerFrameCountExceedsMaximumOf1000Frames"] = 170004] = "StickerFrameCountExceedsMaximumOf1000Frames";
1031
- JsonErrorCodes[JsonErrorCodes["LottieAnimationMaximumDimensionsExceeded"] = 170005] = "LottieAnimationMaximumDimensionsExceeded";
1032
- JsonErrorCodes[JsonErrorCodes["StickerFramerateIsTooSmallOrTooLarge"] = 170006] = "StickerFramerateIsTooSmallOrTooLarge";
1033
- JsonErrorCodes[JsonErrorCodes["StickerAnimationDurationExceedsMaximumOf5Seconds"] = 170007] = "StickerAnimationDurationExceedsMaximumOf5Seconds";
1034
- JsonErrorCodes[JsonErrorCodes["CannotUpdateAFinishedEvent"] = 180000] = "CannotUpdateAFinishedEvent";
1035
- JsonErrorCodes[JsonErrorCodes["FailedToCreateStageNeededForStageEvent"] = 180002] = "FailedToCreateStageNeededForStageEvent";
1036
- JsonErrorCodes[JsonErrorCodes["MessageWasBlockedByAutomaticModeration"] = 200000] = "MessageWasBlockedByAutomaticModeration";
1037
- JsonErrorCodes[JsonErrorCodes["TitleWasBlockedByAutomaticModeration"] = 200001] = "TitleWasBlockedByAutomaticModeration";
1038
- JsonErrorCodes[JsonErrorCodes["WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId"] = 220001] = "WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId";
1039
- JsonErrorCodes[JsonErrorCodes["WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId"] = 220002] = "WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId";
1040
- JsonErrorCodes[JsonErrorCodes["WebhooksCanOnlyCreateThreadsInForumChannels"] = 220003] = "WebhooksCanOnlyCreateThreadsInForumChannels";
1041
- JsonErrorCodes[JsonErrorCodes["WebhookServicesCannotBeUsedInForumChannels"] = 220004] = "WebhookServicesCannotBeUsedInForumChannels";
1042
- JsonErrorCodes[JsonErrorCodes["MessageBlockedByHarmfulLinksFilter"] = 240000] = "MessageBlockedByHarmfulLinksFilter";
1043
- JsonErrorCodes[JsonErrorCodes["CannotEnableOnboardingRequirementsAreNotMet"] = 350000] = "CannotEnableOnboardingRequirementsAreNotMet";
1044
- JsonErrorCodes[JsonErrorCodes["CannotUpdateOnboardingWhileBelowRequirements"] = 350001] = "CannotUpdateOnboardingWhileBelowRequirements";
1045
- })(JsonErrorCodes || (exports.JsonErrorCodes = JsonErrorCodes = {}));
846
+ var JSONErrorCodes;
847
+ (function (JSONErrorCodes) {
848
+ JSONErrorCodes[JSONErrorCodes["GeneralError"] = 0] = "GeneralError";
849
+ JSONErrorCodes[JSONErrorCodes["UnknownAccount"] = 10001] = "UnknownAccount";
850
+ JSONErrorCodes[JSONErrorCodes["UnknownApplication"] = 10002] = "UnknownApplication";
851
+ JSONErrorCodes[JSONErrorCodes["UnknownChannel"] = 10003] = "UnknownChannel";
852
+ JSONErrorCodes[JSONErrorCodes["UnknownGuild"] = 10004] = "UnknownGuild";
853
+ JSONErrorCodes[JSONErrorCodes["UnknownIntegration"] = 10005] = "UnknownIntegration";
854
+ JSONErrorCodes[JSONErrorCodes["UnknownInvite"] = 10006] = "UnknownInvite";
855
+ JSONErrorCodes[JSONErrorCodes["UnknownMember"] = 10007] = "UnknownMember";
856
+ JSONErrorCodes[JSONErrorCodes["UnknownMessage"] = 10008] = "UnknownMessage";
857
+ JSONErrorCodes[JSONErrorCodes["UnknownPermissionOverwrite"] = 10009] = "UnknownPermissionOverwrite";
858
+ JSONErrorCodes[JSONErrorCodes["UnknownProvider"] = 10010] = "UnknownProvider";
859
+ JSONErrorCodes[JSONErrorCodes["UnknownRole"] = 10011] = "UnknownRole";
860
+ JSONErrorCodes[JSONErrorCodes["UnknownToken"] = 10012] = "UnknownToken";
861
+ JSONErrorCodes[JSONErrorCodes["UnknownUser"] = 10013] = "UnknownUser";
862
+ JSONErrorCodes[JSONErrorCodes["UnknownEmoji"] = 10014] = "UnknownEmoji";
863
+ JSONErrorCodes[JSONErrorCodes["UnknownWebhook"] = 10015] = "UnknownWebhook";
864
+ JSONErrorCodes[JSONErrorCodes["UnknownWebhookService"] = 10016] = "UnknownWebhookService";
865
+ JSONErrorCodes[JSONErrorCodes["UnknownSession"] = 10020] = "UnknownSession";
866
+ JSONErrorCodes[JSONErrorCodes["UnknownBan"] = 10026] = "UnknownBan";
867
+ JSONErrorCodes[JSONErrorCodes["UnknownSku"] = 10027] = "UnknownSku";
868
+ JSONErrorCodes[JSONErrorCodes["UnknownStoreListing"] = 10028] = "UnknownStoreListing";
869
+ JSONErrorCodes[JSONErrorCodes["UnknownEntitlement"] = 10029] = "UnknownEntitlement";
870
+ JSONErrorCodes[JSONErrorCodes["UnknownBuild"] = 10030] = "UnknownBuild";
871
+ JSONErrorCodes[JSONErrorCodes["UnknownLobby"] = 10031] = "UnknownLobby";
872
+ JSONErrorCodes[JSONErrorCodes["UnknownBranch"] = 10032] = "UnknownBranch";
873
+ JSONErrorCodes[JSONErrorCodes["UnknownStoreDirectoryLayout"] = 10033] = "UnknownStoreDirectoryLayout";
874
+ JSONErrorCodes[JSONErrorCodes["UnknownRedistributable"] = 10036] = "UnknownRedistributable";
875
+ JSONErrorCodes[JSONErrorCodes["UnknownGiftCode"] = 10038] = "UnknownGiftCode";
876
+ JSONErrorCodes[JSONErrorCodes["UnknownStream"] = 10049] = "UnknownStream";
877
+ JSONErrorCodes[JSONErrorCodes["UnknownPremiumServerSubscribeCooldown"] = 10050] = "UnknownPremiumServerSubscribeCooldown";
878
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildTemplate"] = 10057] = "UnknownGuildTemplate";
879
+ JSONErrorCodes[JSONErrorCodes["UnknownDiscoverableServerCategory"] = 10059] = "UnknownDiscoverableServerCategory";
880
+ JSONErrorCodes[JSONErrorCodes["UnknownSticker"] = 10060] = "UnknownSticker";
881
+ JSONErrorCodes[JSONErrorCodes["UnknownInteraction"] = 10062] = "UnknownInteraction";
882
+ JSONErrorCodes[JSONErrorCodes["UnknownApplicationCommand"] = 10063] = "UnknownApplicationCommand";
883
+ JSONErrorCodes[JSONErrorCodes["UnknownVoiceState"] = 10065] = "UnknownVoiceState";
884
+ JSONErrorCodes[JSONErrorCodes["UnknownApplicationCommandPermissions"] = 10066] = "UnknownApplicationCommandPermissions";
885
+ JSONErrorCodes[JSONErrorCodes["UnknownStageInstance"] = 10067] = "UnknownStageInstance";
886
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildMemberVerificationForm"] = 10068] = "UnknownGuildMemberVerificationForm";
887
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildWelcomeScreen"] = 10069] = "UnknownGuildWelcomeScreen";
888
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEvent"] = 10070] = "UnknownGuildScheduledEvent";
889
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEventUser"] = 10071] = "UnknownGuildScheduledEventUser";
890
+ JSONErrorCodes[JSONErrorCodes["UnknownTag"] = 10087] = "UnknownTag";
891
+ JSONErrorCodes[JSONErrorCodes["BotsCannotUseThisEndpoint"] = 20001] = "BotsCannotUseThisEndpoint";
892
+ JSONErrorCodes[JSONErrorCodes["OnlyBotsCanUseThisEndpoint"] = 20002] = "OnlyBotsCanUseThisEndpoint";
893
+ JSONErrorCodes[JSONErrorCodes["ExplicitContentCannotBeSentToTheDesiredRecipient"] = 20009] = "ExplicitContentCannotBeSentToTheDesiredRecipient";
894
+ JSONErrorCodes[JSONErrorCodes["NotAuthorizedToPerformThisActionOnThisApplication"] = 20012] = "NotAuthorizedToPerformThisActionOnThisApplication";
895
+ JSONErrorCodes[JSONErrorCodes["ActionCannotBePerformedDueToSlowmodeRateLimit"] = 20016] = "ActionCannotBePerformedDueToSlowmodeRateLimit";
896
+ JSONErrorCodes[JSONErrorCodes["TheMazeIsntMeantForYou"] = 20017] = "TheMazeIsntMeantForYou";
897
+ JSONErrorCodes[JSONErrorCodes["OnlyTheOwnerOfThisAccountCanPerformThisAction"] = 20018] = "OnlyTheOwnerOfThisAccountCanPerformThisAction";
898
+ JSONErrorCodes[JSONErrorCodes["AnnouncementEditLimitExceeded"] = 20022] = "AnnouncementEditLimitExceeded";
899
+ JSONErrorCodes[JSONErrorCodes["UnderMinimumAge"] = 20024] = "UnderMinimumAge";
900
+ JSONErrorCodes[JSONErrorCodes["ChannelSendRateLimit"] = 20028] = "ChannelSendRateLimit";
901
+ JSONErrorCodes[JSONErrorCodes["ServerSendRateLimit"] = 20029] = "ServerSendRateLimit";
902
+ JSONErrorCodes[JSONErrorCodes["StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords"] = 20031] = "StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords";
903
+ JSONErrorCodes[JSONErrorCodes["GuildPremiumSubscriptionLevelTooLow"] = 20035] = "GuildPremiumSubscriptionLevelTooLow";
904
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildsReached"] = 30001] = "MaximumNumberOfGuildsReached";
905
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfFriendsReached"] = 30002] = "MaximumNumberOfFriendsReached";
906
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPinsReachedForTheChannel"] = 30003] = "MaximumNumberOfPinsReachedForTheChannel";
907
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfRecipientsReached"] = 30004] = "MaximumNumberOfRecipientsReached";
908
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildRolesReached"] = 30005] = "MaximumNumberOfGuildRolesReached";
909
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfWebhooksReached"] = 30007] = "MaximumNumberOfWebhooksReached";
910
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfEmojisReached"] = 30008] = "MaximumNumberOfEmojisReached";
911
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfReactionsReached"] = 30010] = "MaximumNumberOfReactionsReached";
912
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGroupDMsReached"] = 30011] = "MaximumNumberOfGroupDMsReached";
913
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildChannelsReached"] = 30013] = "MaximumNumberOfGuildChannelsReached";
914
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfAttachmentsInAMessageReached"] = 30015] = "MaximumNumberOfAttachmentsInAMessageReached";
915
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfInvitesReached"] = 30016] = "MaximumNumberOfInvitesReached";
916
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfAnimatedEmojisReached"] = 30018] = "MaximumNumberOfAnimatedEmojisReached";
917
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfServerMembersReached"] = 30019] = "MaximumNumberOfServerMembersReached";
918
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfServerCategoriesReached"] = 30030] = "MaximumNumberOfServerCategoriesReached";
919
+ JSONErrorCodes[JSONErrorCodes["GuildAlreadyHasTemplate"] = 30031] = "GuildAlreadyHasTemplate";
920
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfApplicationCommandsReached"] = 30032] = "MaximumNumberOfApplicationCommandsReached";
921
+ JSONErrorCodes[JSONErrorCodes["MaximumThreadParticipantsReached"] = 30033] = "MaximumThreadParticipantsReached";
922
+ JSONErrorCodes[JSONErrorCodes["MaximumDailyApplicationCommandCreatesReached"] = 30034] = "MaximumDailyApplicationCommandCreatesReached";
923
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfNonGuildMemberBansHasBeenExceeded"] = 30035] = "MaximumNumberOfNonGuildMemberBansHasBeenExceeded";
924
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfBanFetchesHasBeenReached"] = 30037] = "MaximumNumberOfBanFetchesHasBeenReached";
925
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfUncompletedGuildScheduledEventsReached"] = 30038] = "MaximumNumberOfUncompletedGuildScheduledEventsReached";
926
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfStickersReached"] = 30039] = "MaximumNumberOfStickersReached";
927
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPruneRequestsHasBeenReached"] = 30040] = "MaximumNumberOfPruneRequestsHasBeenReached";
928
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached"] = 30042] = "MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached";
929
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfEditsToMessagesOlderThanOneHourReached"] = 30046] = "MaximumNumberOfEditsToMessagesOlderThanOneHourReached";
930
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPinnedThreadsInForumHasBeenReached"] = 30047] = "MaximumNumberOfPinnedThreadsInForumHasBeenReached";
931
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfTagsInForumHasBeenReached"] = 30048] = "MaximumNumberOfTagsInForumHasBeenReached";
932
+ JSONErrorCodes[JSONErrorCodes["BitrateIsTooHighForChannelOfThisType"] = 30052] = "BitrateIsTooHighForChannelOfThisType";
933
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPremiumEmojisReached"] = 30056] = "MaximumNumberOfPremiumEmojisReached";
934
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfWebhooksPerGuildReached"] = 30058] = "MaximumNumberOfWebhooksPerGuildReached";
935
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfChannelPermissionOverwritesReached"] = 30060] = "MaximumNumberOfChannelPermissionOverwritesReached";
936
+ JSONErrorCodes[JSONErrorCodes["TheChannelsForThisGuildAreTooLarge"] = 30061] = "TheChannelsForThisGuildAreTooLarge";
937
+ JSONErrorCodes[JSONErrorCodes["Unauthorized"] = 40001] = "Unauthorized";
938
+ JSONErrorCodes[JSONErrorCodes["VerifyYourAccount"] = 40002] = "VerifyYourAccount";
939
+ JSONErrorCodes[JSONErrorCodes["OpeningDirectMessagesTooFast"] = 40003] = "OpeningDirectMessagesTooFast";
940
+ JSONErrorCodes[JSONErrorCodes["SendMessagesHasBeenTemporarilyDisabled"] = 40004] = "SendMessagesHasBeenTemporarilyDisabled";
941
+ JSONErrorCodes[JSONErrorCodes["RequestEntityTooLarge"] = 40005] = "RequestEntityTooLarge";
942
+ JSONErrorCodes[JSONErrorCodes["FeatureTemporarilyDisabledServerSide"] = 40006] = "FeatureTemporarilyDisabledServerSide";
943
+ JSONErrorCodes[JSONErrorCodes["UserBannedFromThisGuild"] = 40007] = "UserBannedFromThisGuild";
944
+ JSONErrorCodes[JSONErrorCodes["ConnectionHasBeenRevoked"] = 40012] = "ConnectionHasBeenRevoked";
945
+ JSONErrorCodes[JSONErrorCodes["TargetUserIsNotConnectedToVoice"] = 40032] = "TargetUserIsNotConnectedToVoice";
946
+ JSONErrorCodes[JSONErrorCodes["ThisMessageWasAlreadyCrossposted"] = 40033] = "ThisMessageWasAlreadyCrossposted";
947
+ JSONErrorCodes[JSONErrorCodes["ApplicationCommandWithThatNameAlreadyExists"] = 40041] = "ApplicationCommandWithThatNameAlreadyExists";
948
+ JSONErrorCodes[JSONErrorCodes["ApplicationInteractionFailedToSend"] = 40043] = "ApplicationInteractionFailedToSend";
949
+ JSONErrorCodes[JSONErrorCodes["CannotSendAMessageInAForumChannel"] = 40058] = "CannotSendAMessageInAForumChannel";
950
+ JSONErrorCodes[JSONErrorCodes["InteractionHasAlreadyBeenAcknowledged"] = 40060] = "InteractionHasAlreadyBeenAcknowledged";
951
+ JSONErrorCodes[JSONErrorCodes["TagNamesMustBeUnique"] = 40061] = "TagNamesMustBeUnique";
952
+ JSONErrorCodes[JSONErrorCodes["ServiceResourceIsBeingRateLimited"] = 40062] = "ServiceResourceIsBeingRateLimited";
953
+ JSONErrorCodes[JSONErrorCodes["ThereAreNoTagsAvailableThatCanBeSetByNonModerators"] = 40066] = "ThereAreNoTagsAvailableThatCanBeSetByNonModerators";
954
+ JSONErrorCodes[JSONErrorCodes["TagRequiredToCreateAForumPostInThisChannel"] = 40067] = "TagRequiredToCreateAForumPostInThisChannel";
955
+ JSONErrorCodes[JSONErrorCodes["AnEntitlementHasAlreadyBeenGrantedForThisResource"] = 40074] = "AnEntitlementHasAlreadyBeenGrantedForThisResource";
956
+ JSONErrorCodes[JSONErrorCodes["MissingAccess"] = 50001] = "MissingAccess";
957
+ JSONErrorCodes[JSONErrorCodes["InvalidAccountType"] = 50002] = "InvalidAccountType";
958
+ JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnDMChannel"] = 50003] = "CannotExecuteActionOnDMChannel";
959
+ JSONErrorCodes[JSONErrorCodes["GuildWidgetDisabled"] = 50004] = "GuildWidgetDisabled";
960
+ JSONErrorCodes[JSONErrorCodes["CannotEditMessageAuthoredByAnotherUser"] = 50005] = "CannotEditMessageAuthoredByAnotherUser";
961
+ JSONErrorCodes[JSONErrorCodes["CannotSendAnEmptyMessage"] = 50006] = "CannotSendAnEmptyMessage";
962
+ JSONErrorCodes[JSONErrorCodes["CannotSendMessagesToThisUser"] = 50007] = "CannotSendMessagesToThisUser";
963
+ JSONErrorCodes[JSONErrorCodes["CannotSendMessagesInNonTextChannel"] = 50008] = "CannotSendMessagesInNonTextChannel";
964
+ JSONErrorCodes[JSONErrorCodes["ChannelVerificationLevelTooHighForYouToGainAccess"] = 50009] = "ChannelVerificationLevelTooHighForYouToGainAccess";
965
+ JSONErrorCodes[JSONErrorCodes["OAuth2ApplicationDoesNotHaveBot"] = 50010] = "OAuth2ApplicationDoesNotHaveBot";
966
+ JSONErrorCodes[JSONErrorCodes["OAuth2ApplicationLimitReached"] = 50011] = "OAuth2ApplicationLimitReached";
967
+ JSONErrorCodes[JSONErrorCodes["InvalidOAuth2State"] = 50012] = "InvalidOAuth2State";
968
+ JSONErrorCodes[JSONErrorCodes["MissingPermissions"] = 50013] = "MissingPermissions";
969
+ JSONErrorCodes[JSONErrorCodes["InvalidToken"] = 50014] = "InvalidToken";
970
+ JSONErrorCodes[JSONErrorCodes["NoteWasTooLong"] = 50015] = "NoteWasTooLong";
971
+ JSONErrorCodes[JSONErrorCodes["ProvidedTooFewOrTooManyMessagesToDelete"] = 50016] = "ProvidedTooFewOrTooManyMessagesToDelete";
972
+ JSONErrorCodes[JSONErrorCodes["InvalidMFALevel"] = 50017] = "InvalidMFALevel";
973
+ JSONErrorCodes[JSONErrorCodes["MessageCanOnlyBePinnedInTheChannelItWasSentIn"] = 50019] = "MessageCanOnlyBePinnedInTheChannelItWasSentIn";
974
+ JSONErrorCodes[JSONErrorCodes["InviteCodeInvalidOrTaken"] = 50020] = "InviteCodeInvalidOrTaken";
975
+ JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnSystemMessage"] = 50021] = "CannotExecuteActionOnSystemMessage";
976
+ JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnThisChannelType"] = 50024] = "CannotExecuteActionOnThisChannelType";
977
+ JSONErrorCodes[JSONErrorCodes["InvalidOAuth2AccessToken"] = 50025] = "InvalidOAuth2AccessToken";
978
+ JSONErrorCodes[JSONErrorCodes["MissingRequiredOAuth2Scope"] = 50026] = "MissingRequiredOAuth2Scope";
979
+ JSONErrorCodes[JSONErrorCodes["InvalidWebhookToken"] = 50027] = "InvalidWebhookToken";
980
+ JSONErrorCodes[JSONErrorCodes["InvalidRole"] = 50028] = "InvalidRole";
981
+ JSONErrorCodes[JSONErrorCodes["InvalidRecipients"] = 50033] = "InvalidRecipients";
982
+ JSONErrorCodes[JSONErrorCodes["OneOfTheMessagesProvidedWasTooOldForBulkDelete"] = 50034] = "OneOfTheMessagesProvidedWasTooOldForBulkDelete";
983
+ JSONErrorCodes[JSONErrorCodes["InvalidFormBodyOrContentType"] = 50035] = "InvalidFormBodyOrContentType";
984
+ JSONErrorCodes[JSONErrorCodes["InviteAcceptedToGuildWithoutTheBotBeingIn"] = 50036] = "InviteAcceptedToGuildWithoutTheBotBeingIn";
985
+ JSONErrorCodes[JSONErrorCodes["InvalidActivityAction"] = 50039] = "InvalidActivityAction";
986
+ JSONErrorCodes[JSONErrorCodes["InvalidAPIVersion"] = 50041] = "InvalidAPIVersion";
987
+ JSONErrorCodes[JSONErrorCodes["FileUploadedExceedsMaximumSize"] = 50045] = "FileUploadedExceedsMaximumSize";
988
+ JSONErrorCodes[JSONErrorCodes["InvalidFileUploaded"] = 50046] = "InvalidFileUploaded";
989
+ JSONErrorCodes[JSONErrorCodes["CannotSelfRedeemThisGift"] = 50054] = "CannotSelfRedeemThisGift";
990
+ JSONErrorCodes[JSONErrorCodes["InvalidGuild"] = 50055] = "InvalidGuild";
991
+ JSONErrorCodes[JSONErrorCodes["InvalidSku"] = 50057] = "InvalidSku";
992
+ JSONErrorCodes[JSONErrorCodes["InvalidRequestOrigin"] = 50067] = "InvalidRequestOrigin";
993
+ JSONErrorCodes[JSONErrorCodes["InvalidMessageType"] = 50068] = "InvalidMessageType";
994
+ JSONErrorCodes[JSONErrorCodes["PaymentSourceRequiredToRedeemGift"] = 50070] = "PaymentSourceRequiredToRedeemGift";
995
+ JSONErrorCodes[JSONErrorCodes["CannotModifyASystemWebhook"] = 50073] = "CannotModifyASystemWebhook";
996
+ JSONErrorCodes[JSONErrorCodes["CannotDeleteChannelRequiredForCommunityGuilds"] = 50074] = "CannotDeleteChannelRequiredForCommunityGuilds";
997
+ JSONErrorCodes[JSONErrorCodes["CannotEditStickersWithinMessage"] = 50080] = "CannotEditStickersWithinMessage";
998
+ JSONErrorCodes[JSONErrorCodes["InvalidStickerSent"] = 50081] = "InvalidStickerSent";
999
+ JSONErrorCodes[JSONErrorCodes["InvalidActionOnArchivedThread"] = 50083] = "InvalidActionOnArchivedThread";
1000
+ JSONErrorCodes[JSONErrorCodes["InvalidThreadNotificationSettings"] = 50084] = "InvalidThreadNotificationSettings";
1001
+ JSONErrorCodes[JSONErrorCodes["ParameterEarlierThanCreation"] = 50085] = "ParameterEarlierThanCreation";
1002
+ JSONErrorCodes[JSONErrorCodes["CommunityServerChannelsMustBeTextChannels"] = 50086] = "CommunityServerChannelsMustBeTextChannels";
1003
+ JSONErrorCodes[JSONErrorCodes["TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor"] = 50091] = "TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor";
1004
+ JSONErrorCodes[JSONErrorCodes["ServerNotAvailableInYourLocation"] = 50095] = "ServerNotAvailableInYourLocation";
1005
+ JSONErrorCodes[JSONErrorCodes["ServerNeedsMonetizationEnabledToPerformThisAction"] = 50097] = "ServerNeedsMonetizationEnabledToPerformThisAction";
1006
+ JSONErrorCodes[JSONErrorCodes["ServerNeedsMoreBoostsToPerformThisAction"] = 50101] = "ServerNeedsMoreBoostsToPerformThisAction";
1007
+ JSONErrorCodes[JSONErrorCodes["RequestBodyContainsInvalidJSON"] = 50109] = "RequestBodyContainsInvalidJSON";
1008
+ JSONErrorCodes[JSONErrorCodes["OwnerCannotBePendingMember"] = 50131] = "OwnerCannotBePendingMember";
1009
+ JSONErrorCodes[JSONErrorCodes["OwnershipCannotBeMovedToABotUser"] = 50132] = "OwnershipCannotBeMovedToABotUser";
1010
+ JSONErrorCodes[JSONErrorCodes["FailedToResizeAssetBelowTheMinimumSize"] = 50138] = "FailedToResizeAssetBelowTheMinimumSize";
1011
+ JSONErrorCodes[JSONErrorCodes["CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji"] = 50144] = "CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji";
1012
+ JSONErrorCodes[JSONErrorCodes["CannotConvertBetweenPremiumEmojiAndNormalEmoji"] = 50145] = "CannotConvertBetweenPremiumEmojiAndNormalEmoji";
1013
+ JSONErrorCodes[JSONErrorCodes["UploadedFileNotFound"] = 50146] = "UploadedFileNotFound";
1014
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesDoNotSupportAdditionalContent"] = 50159] = "VoiceMessagesDoNotSupportAdditionalContent";
1015
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveASingleAudioAttachment"] = 50160] = "VoiceMessagesMustHaveASingleAudioAttachment";
1016
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveSupportingMetadata"] = 50161] = "VoiceMessagesMustHaveSupportingMetadata";
1017
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesCannotBeEdited"] = 50162] = "VoiceMessagesCannotBeEdited";
1018
+ JSONErrorCodes[JSONErrorCodes["CannotDeleteGuildSubscriptionIntegration"] = 50163] = "CannotDeleteGuildSubscriptionIntegration";
1019
+ JSONErrorCodes[JSONErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
1020
+ JSONErrorCodes[JSONErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
1021
+ JSONErrorCodes[JSONErrorCodes["YouDoNotHavePermissionToSendThisSticker"] = 50600] = "YouDoNotHavePermissionToSendThisSticker";
1022
+ JSONErrorCodes[JSONErrorCodes["TwoFactorAuthenticationIsRequired"] = 60003] = "TwoFactorAuthenticationIsRequired";
1023
+ JSONErrorCodes[JSONErrorCodes["NoUsersWithDiscordTagExist"] = 80004] = "NoUsersWithDiscordTagExist";
1024
+ JSONErrorCodes[JSONErrorCodes["ReactionWasBlocked"] = 90001] = "ReactionWasBlocked";
1025
+ JSONErrorCodes[JSONErrorCodes["ApplicationNotYetAvailable"] = 110001] = "ApplicationNotYetAvailable";
1026
+ JSONErrorCodes[JSONErrorCodes["APIResourceOverloaded"] = 130000] = "APIResourceOverloaded";
1027
+ JSONErrorCodes[JSONErrorCodes["TheStageIsAlreadyOpen"] = 150006] = "TheStageIsAlreadyOpen";
1028
+ JSONErrorCodes[JSONErrorCodes["CannotReplyWithoutPermissionToReadMessageHistory"] = 160002] = "CannotReplyWithoutPermissionToReadMessageHistory";
1029
+ JSONErrorCodes[JSONErrorCodes["ThreadAlreadyCreatedForMessage"] = 160004] = "ThreadAlreadyCreatedForMessage";
1030
+ JSONErrorCodes[JSONErrorCodes["ThreadLocked"] = 160005] = "ThreadLocked";
1031
+ JSONErrorCodes[JSONErrorCodes["MaximumActiveThreads"] = 160006] = "MaximumActiveThreads";
1032
+ JSONErrorCodes[JSONErrorCodes["MaximumActiveAnnouncementThreads"] = 160007] = "MaximumActiveAnnouncementThreads";
1033
+ JSONErrorCodes[JSONErrorCodes["InvalidJSONForUploadedLottieFile"] = 170001] = "InvalidJSONForUploadedLottieFile";
1034
+ JSONErrorCodes[JSONErrorCodes["UploadedLottiesCannotContainRasterizedImages"] = 170002] = "UploadedLottiesCannotContainRasterizedImages";
1035
+ JSONErrorCodes[JSONErrorCodes["StickerMaximumFramerateExceeded"] = 170003] = "StickerMaximumFramerateExceeded";
1036
+ JSONErrorCodes[JSONErrorCodes["StickerFrameCountExceedsMaximumOf1000Frames"] = 170004] = "StickerFrameCountExceedsMaximumOf1000Frames";
1037
+ JSONErrorCodes[JSONErrorCodes["LottieAnimationMaximumDimensionsExceeded"] = 170005] = "LottieAnimationMaximumDimensionsExceeded";
1038
+ JSONErrorCodes[JSONErrorCodes["StickerFramerateIsTooSmallOrTooLarge"] = 170006] = "StickerFramerateIsTooSmallOrTooLarge";
1039
+ JSONErrorCodes[JSONErrorCodes["StickerAnimationDurationExceedsMaximumOf5Seconds"] = 170007] = "StickerAnimationDurationExceedsMaximumOf5Seconds";
1040
+ JSONErrorCodes[JSONErrorCodes["CannotUpdateAFinishedEvent"] = 180000] = "CannotUpdateAFinishedEvent";
1041
+ JSONErrorCodes[JSONErrorCodes["FailedToCreateStageNeededForStageEvent"] = 180002] = "FailedToCreateStageNeededForStageEvent";
1042
+ JSONErrorCodes[JSONErrorCodes["MessageWasBlockedByAutomaticModeration"] = 200000] = "MessageWasBlockedByAutomaticModeration";
1043
+ JSONErrorCodes[JSONErrorCodes["TitleWasBlockedByAutomaticModeration"] = 200001] = "TitleWasBlockedByAutomaticModeration";
1044
+ JSONErrorCodes[JSONErrorCodes["WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId"] = 220001] = "WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId";
1045
+ JSONErrorCodes[JSONErrorCodes["WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId"] = 220002] = "WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId";
1046
+ JSONErrorCodes[JSONErrorCodes["WebhooksCanOnlyCreateThreadsInForumChannels"] = 220003] = "WebhooksCanOnlyCreateThreadsInForumChannels";
1047
+ JSONErrorCodes[JSONErrorCodes["WebhookServicesCannotBeUsedInForumChannels"] = 220004] = "WebhookServicesCannotBeUsedInForumChannels";
1048
+ JSONErrorCodes[JSONErrorCodes["MessageBlockedByHarmfulLinksFilter"] = 240000] = "MessageBlockedByHarmfulLinksFilter";
1049
+ JSONErrorCodes[JSONErrorCodes["CannotEnableOnboardingRequirementsAreNotMet"] = 350000] = "CannotEnableOnboardingRequirementsAreNotMet";
1050
+ JSONErrorCodes[JSONErrorCodes["CannotUpdateOnboardingWhileBelowRequirements"] = 350001] = "CannotUpdateOnboardingWhileBelowRequirements";
1051
+ JSONErrorCodes[JSONErrorCodes["PollVotingBlocked"] = 520000] = "PollVotingBlocked";
1052
+ JSONErrorCodes[JSONErrorCodes["PollExpired"] = 520001] = "PollExpired";
1053
+ JSONErrorCodes[JSONErrorCodes["InvalidChannelTypeForPollCreation"] = 520002] = "InvalidChannelTypeForPollCreation";
1054
+ JSONErrorCodes[JSONErrorCodes["CannotEditAPollMessage"] = 520003] = "CannotEditAPollMessage";
1055
+ JSONErrorCodes[JSONErrorCodes["CannotUseAnEmojiIncludedWithThePoll"] = 520004] = "CannotUseAnEmojiIncludedWithThePoll";
1056
+ JSONErrorCodes[JSONErrorCodes["CannotExpireANonPollMessage"] = 520006] = "CannotExpireANonPollMessage";
1057
+ JSONErrorCodes[JSONErrorCodes["PollIsAlreadyExpired"] = 520007] = "PollIsAlreadyExpired";
1058
+ })(JSONErrorCodes || (exports.JSONErrorCodes = JSONErrorCodes = {}));
1046
1059
  /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-error-codes */
1047
1060
  var RPCErrorCodes;
1048
1061
  (function (RPCErrorCodes) {
@@ -1160,4 +1173,3 @@ var EntitlementTypes;
1160
1173
  (function (EntitlementTypes) {
1161
1174
  EntitlementTypes[EntitlementTypes["ApplicationSubscription"] = 8] = "ApplicationSubscription";
1162
1175
  })(EntitlementTypes || (exports.EntitlementTypes = EntitlementTypes = {}));
1163
- //# sourceMappingURL=constants.js.map