disgroove 2.0.0 → 2.1.0-dev.118f285

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 (190) hide show
  1. package/dist/lib/Client.d.ts +16 -4
  2. package/dist/lib/Client.js +216 -180
  3. package/dist/lib/constants.d.ts +29 -5
  4. package/dist/lib/constants.js +235 -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 +5 -2
  11. package/dist/lib/rest/Endpoints.js +10 -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.d.ts +5 -1
  16. package/dist/lib/types/application-command.js +0 -1
  17. package/dist/lib/types/application-role-connection-metadata.js +0 -1
  18. package/dist/lib/types/application.d.ts +11 -1
  19. package/dist/lib/types/application.js +0 -1
  20. package/dist/lib/types/audit-log.js +0 -1
  21. package/dist/lib/types/auto-moderation.js +0 -1
  22. package/dist/lib/types/channel.d.ts +4 -1
  23. package/dist/lib/types/channel.js +0 -1
  24. package/dist/lib/types/emoji.js +0 -1
  25. package/dist/lib/types/entitlements.js +0 -1
  26. package/dist/lib/types/gateway-events.d.ts +28 -0
  27. package/dist/lib/types/gateway-events.js +0 -1
  28. package/dist/lib/types/guild-scheduled-event.js +0 -1
  29. package/dist/lib/types/guild-template.js +0 -1
  30. package/dist/lib/types/guild.d.ts +4 -0
  31. package/dist/lib/types/guild.js +0 -1
  32. package/dist/lib/types/index.d.ts +1 -0
  33. package/dist/lib/types/index.js +1 -1
  34. package/dist/lib/types/interaction.d.ts +3 -1
  35. package/dist/lib/types/interaction.js +0 -1
  36. package/dist/lib/types/invite.js +0 -1
  37. package/dist/lib/types/message-components.js +0 -1
  38. package/dist/lib/types/poll.d.ts +66 -0
  39. package/dist/lib/types/poll.js +2 -0
  40. package/dist/lib/types/role.js +0 -1
  41. package/dist/lib/types/sku.js +0 -1
  42. package/dist/lib/types/stage-instance.js +0 -1
  43. package/dist/lib/types/sticker.js +0 -1
  44. package/dist/lib/types/team.js +0 -1
  45. package/dist/lib/types/user.js +0 -1
  46. package/dist/lib/types/voice.js +0 -1
  47. package/dist/lib/types/webhook.d.ts +3 -1
  48. package/dist/lib/types/webhook.js +0 -1
  49. package/dist/lib/utils/Util.js +0 -1
  50. package/dist/lib/utils/errors.d.ts +1 -1
  51. package/dist/lib/utils/errors.js +4 -5
  52. package/dist/lib/utils/index.js +0 -1
  53. package/dist/package.json +4 -2
  54. package/package.json +4 -2
  55. package/dist/lib/Client.js.map +0 -1
  56. package/dist/lib/constants.js.map +0 -1
  57. package/dist/lib/gateway/Shard.js.map +0 -1
  58. package/dist/lib/gateway/ShardManager.js.map +0 -1
  59. package/dist/lib/gateway/ShardsManager.d.ts +0 -6
  60. package/dist/lib/gateway/ShardsManager.js +0 -14
  61. package/dist/lib/gateway/ShardsManager.js.map +0 -1
  62. package/dist/lib/gateway/index.js.map +0 -1
  63. package/dist/lib/index.js.map +0 -1
  64. package/dist/lib/rest/CDN.js.map +0 -1
  65. package/dist/lib/rest/Endpoints.js.map +0 -1
  66. package/dist/lib/rest/REST.d.ts +0 -17
  67. package/dist/lib/rest/REST.js +0 -35
  68. package/dist/lib/rest/REST.js.map +0 -1
  69. package/dist/lib/rest/RequestManager.js.map +0 -1
  70. package/dist/lib/rest/RequestsManager.d.ts +0 -22
  71. package/dist/lib/rest/RequestsManager.js +0 -123
  72. package/dist/lib/rest/RequestsManager.js.map +0 -1
  73. package/dist/lib/rest/index.js.map +0 -1
  74. package/dist/lib/structures/Application.d.ts +0 -174
  75. package/dist/lib/structures/Application.js +0 -328
  76. package/dist/lib/structures/Application.js.map +0 -1
  77. package/dist/lib/structures/ApplicationCommand.d.ts +0 -45
  78. package/dist/lib/structures/ApplicationCommand.js +0 -127
  79. package/dist/lib/structures/ApplicationCommand.js.map +0 -1
  80. package/dist/lib/structures/AuditLog.d.ts +0 -19
  81. package/dist/lib/structures/AuditLog.js +0 -101
  82. package/dist/lib/structures/AuditLog.js.map +0 -1
  83. package/dist/lib/structures/AutoModerationRule.d.ts +0 -34
  84. package/dist/lib/structures/AutoModerationRule.js +0 -96
  85. package/dist/lib/structures/AutoModerationRule.js.map +0 -1
  86. package/dist/lib/structures/Base.d.ts +0 -10
  87. package/dist/lib/structures/Base.js +0 -23
  88. package/dist/lib/structures/Base.js.map +0 -1
  89. package/dist/lib/structures/Channel.d.ts +0 -254
  90. package/dist/lib/structures/Channel.js +0 -592
  91. package/dist/lib/structures/Channel.js.map +0 -1
  92. package/dist/lib/structures/ClientApplication.d.ts +0 -150
  93. package/dist/lib/structures/ClientApplication.js +0 -241
  94. package/dist/lib/structures/ClientApplication.js.map +0 -1
  95. package/dist/lib/structures/Emoji.d.ts +0 -26
  96. package/dist/lib/structures/Emoji.js +0 -75
  97. package/dist/lib/structures/Emoji.js.map +0 -1
  98. package/dist/lib/structures/Entitlement.d.ts +0 -24
  99. package/dist/lib/structures/Entitlement.js +0 -68
  100. package/dist/lib/structures/Entitlement.js.map +0 -1
  101. package/dist/lib/structures/Guild.d.ts +0 -474
  102. package/dist/lib/structures/Guild.js +0 -1141
  103. package/dist/lib/structures/Guild.js.map +0 -1
  104. package/dist/lib/structures/GuildMember.d.ts +0 -49
  105. package/dist/lib/structures/GuildMember.js +0 -146
  106. package/dist/lib/structures/GuildMember.js.map +0 -1
  107. package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -49
  108. package/dist/lib/structures/GuildScheduledEvent.js +0 -118
  109. package/dist/lib/structures/GuildScheduledEvent.js.map +0 -1
  110. package/dist/lib/structures/GuildTemplate.d.ts +0 -30
  111. package/dist/lib/structures/GuildTemplate.js +0 -72
  112. package/dist/lib/structures/GuildTemplate.js.map +0 -1
  113. package/dist/lib/structures/IdentifiableBase.d.ts +0 -15
  114. package/dist/lib/structures/IdentifiableBase.js +0 -25
  115. package/dist/lib/structures/IdentifiableBase.js.map +0 -1
  116. package/dist/lib/structures/Integration.d.ts +0 -31
  117. package/dist/lib/structures/Integration.js +0 -103
  118. package/dist/lib/structures/Integration.js.map +0 -1
  119. package/dist/lib/structures/Interaction.d.ts +0 -76
  120. package/dist/lib/structures/Interaction.js +0 -346
  121. package/dist/lib/structures/Interaction.js.map +0 -1
  122. package/dist/lib/structures/Invite.d.ts +0 -26
  123. package/dist/lib/structures/Invite.js +0 -82
  124. package/dist/lib/structures/Invite.js.map +0 -1
  125. package/dist/lib/structures/Message.d.ts +0 -86
  126. package/dist/lib/structures/Message.js +0 -303
  127. package/dist/lib/structures/Message.js.map +0 -1
  128. package/dist/lib/structures/Role.d.ts +0 -37
  129. package/dist/lib/structures/Role.js +0 -90
  130. package/dist/lib/structures/Role.js.map +0 -1
  131. package/dist/lib/structures/SKU.d.ts +0 -23
  132. package/dist/lib/structures/SKU.js +0 -63
  133. package/dist/lib/structures/SKU.js.map +0 -1
  134. package/dist/lib/structures/StageInstance.d.ts +0 -24
  135. package/dist/lib/structures/StageInstance.js +0 -57
  136. package/dist/lib/structures/StageInstance.js.map +0 -1
  137. package/dist/lib/structures/Sticker.d.ts +0 -31
  138. package/dist/lib/structures/Sticker.js +0 -86
  139. package/dist/lib/structures/Sticker.js.map +0 -1
  140. package/dist/lib/structures/Team.d.ts +0 -14
  141. package/dist/lib/structures/Team.js +0 -39
  142. package/dist/lib/structures/Team.js.map +0 -1
  143. package/dist/lib/structures/TestEntitlement.d.ts +0 -23
  144. package/dist/lib/structures/TestEntitlement.js +0 -61
  145. package/dist/lib/structures/TestEntitlement.js.map +0 -1
  146. package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
  147. package/dist/lib/structures/UnavailableGuild.js +0 -25
  148. package/dist/lib/structures/UnavailableGuild.js.map +0 -1
  149. package/dist/lib/structures/User.d.ts +0 -63
  150. package/dist/lib/structures/User.js +0 -177
  151. package/dist/lib/structures/User.js.map +0 -1
  152. package/dist/lib/structures/VoiceState.d.ts +0 -24
  153. package/dist/lib/structures/VoiceState.js +0 -66
  154. package/dist/lib/structures/VoiceState.js.map +0 -1
  155. package/dist/lib/structures/Webhook.d.ts +0 -82
  156. package/dist/lib/structures/Webhook.js +0 -223
  157. package/dist/lib/structures/Webhook.js.map +0 -1
  158. package/dist/lib/structures/index.d.ts +0 -28
  159. package/dist/lib/structures/index.js +0 -45
  160. package/dist/lib/structures/index.js.map +0 -1
  161. package/dist/lib/types/application-command.js.map +0 -1
  162. package/dist/lib/types/application-role-connection-metadata.js.map +0 -1
  163. package/dist/lib/types/application.js.map +0 -1
  164. package/dist/lib/types/audit-log.js.map +0 -1
  165. package/dist/lib/types/auto-moderation.js.map +0 -1
  166. package/dist/lib/types/channel.js.map +0 -1
  167. package/dist/lib/types/emoji.js.map +0 -1
  168. package/dist/lib/types/entitlements.js.map +0 -1
  169. package/dist/lib/types/gateway-events.js.map +0 -1
  170. package/dist/lib/types/guild-scheduled-event.js.map +0 -1
  171. package/dist/lib/types/guild-template.js.map +0 -1
  172. package/dist/lib/types/guild.js.map +0 -1
  173. package/dist/lib/types/index.js.map +0 -1
  174. package/dist/lib/types/interaction.js.map +0 -1
  175. package/dist/lib/types/invite.js.map +0 -1
  176. package/dist/lib/types/message-components.js.map +0 -1
  177. package/dist/lib/types/role.js.map +0 -1
  178. package/dist/lib/types/sku.js.map +0 -1
  179. package/dist/lib/types/stage-instance.js.map +0 -1
  180. package/dist/lib/types/sticker.js.map +0 -1
  181. package/dist/lib/types/team.js.map +0 -1
  182. package/dist/lib/types/user.js.map +0 -1
  183. package/dist/lib/types/voice.js.map +0 -1
  184. package/dist/lib/types/webhook.js.map +0 -1
  185. package/dist/lib/utils/Collection.d.ts +0 -24
  186. package/dist/lib/utils/Collection.js +0 -65
  187. package/dist/lib/utils/Collection.js.map +0 -1
  188. package/dist/lib/utils/Util.js.map +0 -1
  189. package/dist/lib/utils/errors.js.map +0 -1
  190. package/dist/lib/utils/index.js.map +0 -1
@@ -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.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.ApplicationIntegrationTypes = exports.TextInputStyles = exports.ButtonStyles = exports.InteractionCallbackType = exports.ComponentTypes = exports.InterationContextTypes = 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 = exports.UserFlags = exports.StickerFormatTypes = void 0;
5
5
  /** https://discord.com/developers/docs/reference#image-formatting-image-formats */
6
6
  var ImageFormats;
7
7
  (function (ImageFormats) {
@@ -86,6 +86,13 @@ var InteractionType;
86
86
  InteractionType[InteractionType["ApplicationCommandAutocomplete"] = 4] = "ApplicationCommandAutocomplete";
87
87
  InteractionType[InteractionType["ModalSubmit"] = 5] = "ModalSubmit";
88
88
  })(InteractionType || (exports.InteractionType = InteractionType = {}));
89
+ /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types */
90
+ var InterationContextTypes;
91
+ (function (InterationContextTypes) {
92
+ InterationContextTypes[InterationContextTypes["Guild"] = 0] = "Guild";
93
+ InterationContextTypes[InterationContextTypes["BotDM"] = 1] = "BotDM";
94
+ InterationContextTypes[InterationContextTypes["PrivateChannel"] = 2] = "PrivateChannel";
95
+ })(InterationContextTypes || (exports.InterationContextTypes = InterationContextTypes = {}));
89
96
  /** https://discord.com/developers/docs/interactions/message-components#component-object-component-types */
90
97
  var ComponentTypes;
91
98
  (function (ComponentTypes) {
@@ -125,6 +132,12 @@ var TextInputStyles;
125
132
  TextInputStyles[TextInputStyles["Short"] = 1] = "Short";
126
133
  TextInputStyles[TextInputStyles["Paragraph"] = 2] = "Paragraph";
127
134
  })(TextInputStyles || (exports.TextInputStyles = TextInputStyles = {}));
135
+ /** https://discord.com/developers/docs/resources/application#application-object-application-integration-types */
136
+ var ApplicationIntegrationTypes;
137
+ (function (ApplicationIntegrationTypes) {
138
+ ApplicationIntegrationTypes[ApplicationIntegrationTypes["GuildInstall"] = 0] = "GuildInstall";
139
+ ApplicationIntegrationTypes[ApplicationIntegrationTypes["UserInstall"] = 1] = "UserInstall";
140
+ })(ApplicationIntegrationTypes || (exports.ApplicationIntegrationTypes = ApplicationIntegrationTypes = {}));
128
141
  /** https://discord.com/developers/docs/resources/application#application-object-application-flags */
129
142
  var ApplicationFlags;
130
143
  (function (ApplicationFlags) {
@@ -505,6 +518,10 @@ var InviteTargetTypes;
505
518
  InviteTargetTypes[InviteTargetTypes["Stream"] = 1] = "Stream";
506
519
  InviteTargetTypes[InviteTargetTypes["EmbeddedApplication"] = 2] = "EmbeddedApplication";
507
520
  })(InviteTargetTypes || (exports.InviteTargetTypes = InviteTargetTypes = {}));
521
+ var LayoutType;
522
+ (function (LayoutType) {
523
+ LayoutType[LayoutType["Default"] = 1] = "Default";
524
+ })(LayoutType || (exports.LayoutType = LayoutType = {}));
508
525
  /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */
509
526
  var PrivacyLevel;
510
527
  (function (PrivacyLevel) {
@@ -700,6 +717,8 @@ var GatewayEvents;
700
717
  GatewayEvents["VoiceStateUpdate"] = "voiceStateUpdate";
701
718
  GatewayEvents["VoiceServerUpdate"] = "voiceServerUpdate";
702
719
  GatewayEvents["WebhooksUpdate"] = "webhooksUpdate";
720
+ GatewayEvents["MessagePollVoteAdd"] = "messagePollVoteAdd";
721
+ GatewayEvents["MessagePollVoteRemove"] = "messagePollVoteRemove";
703
722
  })(GatewayEvents || (exports.GatewayEvents = GatewayEvents = {}));
704
723
  /** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types */
705
724
  var ActivityType;
@@ -837,212 +856,220 @@ var HTTPResponseCodes;
837
856
  HTTPResponseCodes["ServerError"] = "5xx";
838
857
  })(HTTPResponseCodes || (exports.HTTPResponseCodes = HTTPResponseCodes = {}));
839
858
  /** 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 = {}));
859
+ var JSONErrorCodes;
860
+ (function (JSONErrorCodes) {
861
+ JSONErrorCodes[JSONErrorCodes["GeneralError"] = 0] = "GeneralError";
862
+ JSONErrorCodes[JSONErrorCodes["UnknownAccount"] = 10001] = "UnknownAccount";
863
+ JSONErrorCodes[JSONErrorCodes["UnknownApplication"] = 10002] = "UnknownApplication";
864
+ JSONErrorCodes[JSONErrorCodes["UnknownChannel"] = 10003] = "UnknownChannel";
865
+ JSONErrorCodes[JSONErrorCodes["UnknownGuild"] = 10004] = "UnknownGuild";
866
+ JSONErrorCodes[JSONErrorCodes["UnknownIntegration"] = 10005] = "UnknownIntegration";
867
+ JSONErrorCodes[JSONErrorCodes["UnknownInvite"] = 10006] = "UnknownInvite";
868
+ JSONErrorCodes[JSONErrorCodes["UnknownMember"] = 10007] = "UnknownMember";
869
+ JSONErrorCodes[JSONErrorCodes["UnknownMessage"] = 10008] = "UnknownMessage";
870
+ JSONErrorCodes[JSONErrorCodes["UnknownPermissionOverwrite"] = 10009] = "UnknownPermissionOverwrite";
871
+ JSONErrorCodes[JSONErrorCodes["UnknownProvider"] = 10010] = "UnknownProvider";
872
+ JSONErrorCodes[JSONErrorCodes["UnknownRole"] = 10011] = "UnknownRole";
873
+ JSONErrorCodes[JSONErrorCodes["UnknownToken"] = 10012] = "UnknownToken";
874
+ JSONErrorCodes[JSONErrorCodes["UnknownUser"] = 10013] = "UnknownUser";
875
+ JSONErrorCodes[JSONErrorCodes["UnknownEmoji"] = 10014] = "UnknownEmoji";
876
+ JSONErrorCodes[JSONErrorCodes["UnknownWebhook"] = 10015] = "UnknownWebhook";
877
+ JSONErrorCodes[JSONErrorCodes["UnknownWebhookService"] = 10016] = "UnknownWebhookService";
878
+ JSONErrorCodes[JSONErrorCodes["UnknownSession"] = 10020] = "UnknownSession";
879
+ JSONErrorCodes[JSONErrorCodes["UnknownBan"] = 10026] = "UnknownBan";
880
+ JSONErrorCodes[JSONErrorCodes["UnknownSku"] = 10027] = "UnknownSku";
881
+ JSONErrorCodes[JSONErrorCodes["UnknownStoreListing"] = 10028] = "UnknownStoreListing";
882
+ JSONErrorCodes[JSONErrorCodes["UnknownEntitlement"] = 10029] = "UnknownEntitlement";
883
+ JSONErrorCodes[JSONErrorCodes["UnknownBuild"] = 10030] = "UnknownBuild";
884
+ JSONErrorCodes[JSONErrorCodes["UnknownLobby"] = 10031] = "UnknownLobby";
885
+ JSONErrorCodes[JSONErrorCodes["UnknownBranch"] = 10032] = "UnknownBranch";
886
+ JSONErrorCodes[JSONErrorCodes["UnknownStoreDirectoryLayout"] = 10033] = "UnknownStoreDirectoryLayout";
887
+ JSONErrorCodes[JSONErrorCodes["UnknownRedistributable"] = 10036] = "UnknownRedistributable";
888
+ JSONErrorCodes[JSONErrorCodes["UnknownGiftCode"] = 10038] = "UnknownGiftCode";
889
+ JSONErrorCodes[JSONErrorCodes["UnknownStream"] = 10049] = "UnknownStream";
890
+ JSONErrorCodes[JSONErrorCodes["UnknownPremiumServerSubscribeCooldown"] = 10050] = "UnknownPremiumServerSubscribeCooldown";
891
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildTemplate"] = 10057] = "UnknownGuildTemplate";
892
+ JSONErrorCodes[JSONErrorCodes["UnknownDiscoverableServerCategory"] = 10059] = "UnknownDiscoverableServerCategory";
893
+ JSONErrorCodes[JSONErrorCodes["UnknownSticker"] = 10060] = "UnknownSticker";
894
+ JSONErrorCodes[JSONErrorCodes["UnknownInteraction"] = 10062] = "UnknownInteraction";
895
+ JSONErrorCodes[JSONErrorCodes["UnknownApplicationCommand"] = 10063] = "UnknownApplicationCommand";
896
+ JSONErrorCodes[JSONErrorCodes["UnknownVoiceState"] = 10065] = "UnknownVoiceState";
897
+ JSONErrorCodes[JSONErrorCodes["UnknownApplicationCommandPermissions"] = 10066] = "UnknownApplicationCommandPermissions";
898
+ JSONErrorCodes[JSONErrorCodes["UnknownStageInstance"] = 10067] = "UnknownStageInstance";
899
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildMemberVerificationForm"] = 10068] = "UnknownGuildMemberVerificationForm";
900
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildWelcomeScreen"] = 10069] = "UnknownGuildWelcomeScreen";
901
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEvent"] = 10070] = "UnknownGuildScheduledEvent";
902
+ JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEventUser"] = 10071] = "UnknownGuildScheduledEventUser";
903
+ JSONErrorCodes[JSONErrorCodes["UnknownTag"] = 10087] = "UnknownTag";
904
+ JSONErrorCodes[JSONErrorCodes["BotsCannotUseThisEndpoint"] = 20001] = "BotsCannotUseThisEndpoint";
905
+ JSONErrorCodes[JSONErrorCodes["OnlyBotsCanUseThisEndpoint"] = 20002] = "OnlyBotsCanUseThisEndpoint";
906
+ JSONErrorCodes[JSONErrorCodes["ExplicitContentCannotBeSentToTheDesiredRecipient"] = 20009] = "ExplicitContentCannotBeSentToTheDesiredRecipient";
907
+ JSONErrorCodes[JSONErrorCodes["NotAuthorizedToPerformThisActionOnThisApplication"] = 20012] = "NotAuthorizedToPerformThisActionOnThisApplication";
908
+ JSONErrorCodes[JSONErrorCodes["ActionCannotBePerformedDueToSlowmodeRateLimit"] = 20016] = "ActionCannotBePerformedDueToSlowmodeRateLimit";
909
+ JSONErrorCodes[JSONErrorCodes["TheMazeIsntMeantForYou"] = 20017] = "TheMazeIsntMeantForYou";
910
+ JSONErrorCodes[JSONErrorCodes["OnlyTheOwnerOfThisAccountCanPerformThisAction"] = 20018] = "OnlyTheOwnerOfThisAccountCanPerformThisAction";
911
+ JSONErrorCodes[JSONErrorCodes["AnnouncementEditLimitExceeded"] = 20022] = "AnnouncementEditLimitExceeded";
912
+ JSONErrorCodes[JSONErrorCodes["UnderMinimumAge"] = 20024] = "UnderMinimumAge";
913
+ JSONErrorCodes[JSONErrorCodes["ChannelSendRateLimit"] = 20028] = "ChannelSendRateLimit";
914
+ JSONErrorCodes[JSONErrorCodes["ServerSendRateLimit"] = 20029] = "ServerSendRateLimit";
915
+ JSONErrorCodes[JSONErrorCodes["StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords"] = 20031] = "StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords";
916
+ JSONErrorCodes[JSONErrorCodes["GuildPremiumSubscriptionLevelTooLow"] = 20035] = "GuildPremiumSubscriptionLevelTooLow";
917
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildsReached"] = 30001] = "MaximumNumberOfGuildsReached";
918
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfFriendsReached"] = 30002] = "MaximumNumberOfFriendsReached";
919
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPinsReachedForTheChannel"] = 30003] = "MaximumNumberOfPinsReachedForTheChannel";
920
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfRecipientsReached"] = 30004] = "MaximumNumberOfRecipientsReached";
921
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildRolesReached"] = 30005] = "MaximumNumberOfGuildRolesReached";
922
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfWebhooksReached"] = 30007] = "MaximumNumberOfWebhooksReached";
923
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfEmojisReached"] = 30008] = "MaximumNumberOfEmojisReached";
924
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfReactionsReached"] = 30010] = "MaximumNumberOfReactionsReached";
925
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGroupDMsReached"] = 30011] = "MaximumNumberOfGroupDMsReached";
926
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildChannelsReached"] = 30013] = "MaximumNumberOfGuildChannelsReached";
927
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfAttachmentsInAMessageReached"] = 30015] = "MaximumNumberOfAttachmentsInAMessageReached";
928
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfInvitesReached"] = 30016] = "MaximumNumberOfInvitesReached";
929
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfAnimatedEmojisReached"] = 30018] = "MaximumNumberOfAnimatedEmojisReached";
930
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfServerMembersReached"] = 30019] = "MaximumNumberOfServerMembersReached";
931
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfServerCategoriesReached"] = 30030] = "MaximumNumberOfServerCategoriesReached";
932
+ JSONErrorCodes[JSONErrorCodes["GuildAlreadyHasTemplate"] = 30031] = "GuildAlreadyHasTemplate";
933
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfApplicationCommandsReached"] = 30032] = "MaximumNumberOfApplicationCommandsReached";
934
+ JSONErrorCodes[JSONErrorCodes["MaximumThreadParticipantsReached"] = 30033] = "MaximumThreadParticipantsReached";
935
+ JSONErrorCodes[JSONErrorCodes["MaximumDailyApplicationCommandCreatesReached"] = 30034] = "MaximumDailyApplicationCommandCreatesReached";
936
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfNonGuildMemberBansHasBeenExceeded"] = 30035] = "MaximumNumberOfNonGuildMemberBansHasBeenExceeded";
937
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfBanFetchesHasBeenReached"] = 30037] = "MaximumNumberOfBanFetchesHasBeenReached";
938
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfUncompletedGuildScheduledEventsReached"] = 30038] = "MaximumNumberOfUncompletedGuildScheduledEventsReached";
939
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfStickersReached"] = 30039] = "MaximumNumberOfStickersReached";
940
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPruneRequestsHasBeenReached"] = 30040] = "MaximumNumberOfPruneRequestsHasBeenReached";
941
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached"] = 30042] = "MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached";
942
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfEditsToMessagesOlderThanOneHourReached"] = 30046] = "MaximumNumberOfEditsToMessagesOlderThanOneHourReached";
943
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPinnedThreadsInForumHasBeenReached"] = 30047] = "MaximumNumberOfPinnedThreadsInForumHasBeenReached";
944
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfTagsInForumHasBeenReached"] = 30048] = "MaximumNumberOfTagsInForumHasBeenReached";
945
+ JSONErrorCodes[JSONErrorCodes["BitrateIsTooHighForChannelOfThisType"] = 30052] = "BitrateIsTooHighForChannelOfThisType";
946
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPremiumEmojisReached"] = 30056] = "MaximumNumberOfPremiumEmojisReached";
947
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfWebhooksPerGuildReached"] = 30058] = "MaximumNumberOfWebhooksPerGuildReached";
948
+ JSONErrorCodes[JSONErrorCodes["MaximumNumberOfChannelPermissionOverwritesReached"] = 30060] = "MaximumNumberOfChannelPermissionOverwritesReached";
949
+ JSONErrorCodes[JSONErrorCodes["TheChannelsForThisGuildAreTooLarge"] = 30061] = "TheChannelsForThisGuildAreTooLarge";
950
+ JSONErrorCodes[JSONErrorCodes["Unauthorized"] = 40001] = "Unauthorized";
951
+ JSONErrorCodes[JSONErrorCodes["VerifyYourAccount"] = 40002] = "VerifyYourAccount";
952
+ JSONErrorCodes[JSONErrorCodes["OpeningDirectMessagesTooFast"] = 40003] = "OpeningDirectMessagesTooFast";
953
+ JSONErrorCodes[JSONErrorCodes["SendMessagesHasBeenTemporarilyDisabled"] = 40004] = "SendMessagesHasBeenTemporarilyDisabled";
954
+ JSONErrorCodes[JSONErrorCodes["RequestEntityTooLarge"] = 40005] = "RequestEntityTooLarge";
955
+ JSONErrorCodes[JSONErrorCodes["FeatureTemporarilyDisabledServerSide"] = 40006] = "FeatureTemporarilyDisabledServerSide";
956
+ JSONErrorCodes[JSONErrorCodes["UserBannedFromThisGuild"] = 40007] = "UserBannedFromThisGuild";
957
+ JSONErrorCodes[JSONErrorCodes["ConnectionHasBeenRevoked"] = 40012] = "ConnectionHasBeenRevoked";
958
+ JSONErrorCodes[JSONErrorCodes["TargetUserIsNotConnectedToVoice"] = 40032] = "TargetUserIsNotConnectedToVoice";
959
+ JSONErrorCodes[JSONErrorCodes["ThisMessageWasAlreadyCrossposted"] = 40033] = "ThisMessageWasAlreadyCrossposted";
960
+ JSONErrorCodes[JSONErrorCodes["ApplicationCommandWithThatNameAlreadyExists"] = 40041] = "ApplicationCommandWithThatNameAlreadyExists";
961
+ JSONErrorCodes[JSONErrorCodes["ApplicationInteractionFailedToSend"] = 40043] = "ApplicationInteractionFailedToSend";
962
+ JSONErrorCodes[JSONErrorCodes["CannotSendAMessageInAForumChannel"] = 40058] = "CannotSendAMessageInAForumChannel";
963
+ JSONErrorCodes[JSONErrorCodes["InteractionHasAlreadyBeenAcknowledged"] = 40060] = "InteractionHasAlreadyBeenAcknowledged";
964
+ JSONErrorCodes[JSONErrorCodes["TagNamesMustBeUnique"] = 40061] = "TagNamesMustBeUnique";
965
+ JSONErrorCodes[JSONErrorCodes["ServiceResourceIsBeingRateLimited"] = 40062] = "ServiceResourceIsBeingRateLimited";
966
+ JSONErrorCodes[JSONErrorCodes["ThereAreNoTagsAvailableThatCanBeSetByNonModerators"] = 40066] = "ThereAreNoTagsAvailableThatCanBeSetByNonModerators";
967
+ JSONErrorCodes[JSONErrorCodes["TagRequiredToCreateAForumPostInThisChannel"] = 40067] = "TagRequiredToCreateAForumPostInThisChannel";
968
+ JSONErrorCodes[JSONErrorCodes["AnEntitlementHasAlreadyBeenGrantedForThisResource"] = 40074] = "AnEntitlementHasAlreadyBeenGrantedForThisResource";
969
+ JSONErrorCodes[JSONErrorCodes["MissingAccess"] = 50001] = "MissingAccess";
970
+ JSONErrorCodes[JSONErrorCodes["InvalidAccountType"] = 50002] = "InvalidAccountType";
971
+ JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnDMChannel"] = 50003] = "CannotExecuteActionOnDMChannel";
972
+ JSONErrorCodes[JSONErrorCodes["GuildWidgetDisabled"] = 50004] = "GuildWidgetDisabled";
973
+ JSONErrorCodes[JSONErrorCodes["CannotEditMessageAuthoredByAnotherUser"] = 50005] = "CannotEditMessageAuthoredByAnotherUser";
974
+ JSONErrorCodes[JSONErrorCodes["CannotSendAnEmptyMessage"] = 50006] = "CannotSendAnEmptyMessage";
975
+ JSONErrorCodes[JSONErrorCodes["CannotSendMessagesToThisUser"] = 50007] = "CannotSendMessagesToThisUser";
976
+ JSONErrorCodes[JSONErrorCodes["CannotSendMessagesInNonTextChannel"] = 50008] = "CannotSendMessagesInNonTextChannel";
977
+ JSONErrorCodes[JSONErrorCodes["ChannelVerificationLevelTooHighForYouToGainAccess"] = 50009] = "ChannelVerificationLevelTooHighForYouToGainAccess";
978
+ JSONErrorCodes[JSONErrorCodes["OAuth2ApplicationDoesNotHaveBot"] = 50010] = "OAuth2ApplicationDoesNotHaveBot";
979
+ JSONErrorCodes[JSONErrorCodes["OAuth2ApplicationLimitReached"] = 50011] = "OAuth2ApplicationLimitReached";
980
+ JSONErrorCodes[JSONErrorCodes["InvalidOAuth2State"] = 50012] = "InvalidOAuth2State";
981
+ JSONErrorCodes[JSONErrorCodes["MissingPermissions"] = 50013] = "MissingPermissions";
982
+ JSONErrorCodes[JSONErrorCodes["InvalidToken"] = 50014] = "InvalidToken";
983
+ JSONErrorCodes[JSONErrorCodes["NoteWasTooLong"] = 50015] = "NoteWasTooLong";
984
+ JSONErrorCodes[JSONErrorCodes["ProvidedTooFewOrTooManyMessagesToDelete"] = 50016] = "ProvidedTooFewOrTooManyMessagesToDelete";
985
+ JSONErrorCodes[JSONErrorCodes["InvalidMFALevel"] = 50017] = "InvalidMFALevel";
986
+ JSONErrorCodes[JSONErrorCodes["MessageCanOnlyBePinnedInTheChannelItWasSentIn"] = 50019] = "MessageCanOnlyBePinnedInTheChannelItWasSentIn";
987
+ JSONErrorCodes[JSONErrorCodes["InviteCodeInvalidOrTaken"] = 50020] = "InviteCodeInvalidOrTaken";
988
+ JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnSystemMessage"] = 50021] = "CannotExecuteActionOnSystemMessage";
989
+ JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnThisChannelType"] = 50024] = "CannotExecuteActionOnThisChannelType";
990
+ JSONErrorCodes[JSONErrorCodes["InvalidOAuth2AccessToken"] = 50025] = "InvalidOAuth2AccessToken";
991
+ JSONErrorCodes[JSONErrorCodes["MissingRequiredOAuth2Scope"] = 50026] = "MissingRequiredOAuth2Scope";
992
+ JSONErrorCodes[JSONErrorCodes["InvalidWebhookToken"] = 50027] = "InvalidWebhookToken";
993
+ JSONErrorCodes[JSONErrorCodes["InvalidRole"] = 50028] = "InvalidRole";
994
+ JSONErrorCodes[JSONErrorCodes["InvalidRecipients"] = 50033] = "InvalidRecipients";
995
+ JSONErrorCodes[JSONErrorCodes["OneOfTheMessagesProvidedWasTooOldForBulkDelete"] = 50034] = "OneOfTheMessagesProvidedWasTooOldForBulkDelete";
996
+ JSONErrorCodes[JSONErrorCodes["InvalidFormBodyOrContentType"] = 50035] = "InvalidFormBodyOrContentType";
997
+ JSONErrorCodes[JSONErrorCodes["InviteAcceptedToGuildWithoutTheBotBeingIn"] = 50036] = "InviteAcceptedToGuildWithoutTheBotBeingIn";
998
+ JSONErrorCodes[JSONErrorCodes["InvalidActivityAction"] = 50039] = "InvalidActivityAction";
999
+ JSONErrorCodes[JSONErrorCodes["InvalidAPIVersion"] = 50041] = "InvalidAPIVersion";
1000
+ JSONErrorCodes[JSONErrorCodes["FileUploadedExceedsMaximumSize"] = 50045] = "FileUploadedExceedsMaximumSize";
1001
+ JSONErrorCodes[JSONErrorCodes["InvalidFileUploaded"] = 50046] = "InvalidFileUploaded";
1002
+ JSONErrorCodes[JSONErrorCodes["CannotSelfRedeemThisGift"] = 50054] = "CannotSelfRedeemThisGift";
1003
+ JSONErrorCodes[JSONErrorCodes["InvalidGuild"] = 50055] = "InvalidGuild";
1004
+ JSONErrorCodes[JSONErrorCodes["InvalidSku"] = 50057] = "InvalidSku";
1005
+ JSONErrorCodes[JSONErrorCodes["InvalidRequestOrigin"] = 50067] = "InvalidRequestOrigin";
1006
+ JSONErrorCodes[JSONErrorCodes["InvalidMessageType"] = 50068] = "InvalidMessageType";
1007
+ JSONErrorCodes[JSONErrorCodes["PaymentSourceRequiredToRedeemGift"] = 50070] = "PaymentSourceRequiredToRedeemGift";
1008
+ JSONErrorCodes[JSONErrorCodes["CannotModifyASystemWebhook"] = 50073] = "CannotModifyASystemWebhook";
1009
+ JSONErrorCodes[JSONErrorCodes["CannotDeleteChannelRequiredForCommunityGuilds"] = 50074] = "CannotDeleteChannelRequiredForCommunityGuilds";
1010
+ JSONErrorCodes[JSONErrorCodes["CannotEditStickersWithinMessage"] = 50080] = "CannotEditStickersWithinMessage";
1011
+ JSONErrorCodes[JSONErrorCodes["InvalidStickerSent"] = 50081] = "InvalidStickerSent";
1012
+ JSONErrorCodes[JSONErrorCodes["InvalidActionOnArchivedThread"] = 50083] = "InvalidActionOnArchivedThread";
1013
+ JSONErrorCodes[JSONErrorCodes["InvalidThreadNotificationSettings"] = 50084] = "InvalidThreadNotificationSettings";
1014
+ JSONErrorCodes[JSONErrorCodes["ParameterEarlierThanCreation"] = 50085] = "ParameterEarlierThanCreation";
1015
+ JSONErrorCodes[JSONErrorCodes["CommunityServerChannelsMustBeTextChannels"] = 50086] = "CommunityServerChannelsMustBeTextChannels";
1016
+ JSONErrorCodes[JSONErrorCodes["TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor"] = 50091] = "TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor";
1017
+ JSONErrorCodes[JSONErrorCodes["ServerNotAvailableInYourLocation"] = 50095] = "ServerNotAvailableInYourLocation";
1018
+ JSONErrorCodes[JSONErrorCodes["ServerNeedsMonetizationEnabledToPerformThisAction"] = 50097] = "ServerNeedsMonetizationEnabledToPerformThisAction";
1019
+ JSONErrorCodes[JSONErrorCodes["ServerNeedsMoreBoostsToPerformThisAction"] = 50101] = "ServerNeedsMoreBoostsToPerformThisAction";
1020
+ JSONErrorCodes[JSONErrorCodes["RequestBodyContainsInvalidJSON"] = 50109] = "RequestBodyContainsInvalidJSON";
1021
+ JSONErrorCodes[JSONErrorCodes["OwnerCannotBePendingMember"] = 50131] = "OwnerCannotBePendingMember";
1022
+ JSONErrorCodes[JSONErrorCodes["OwnershipCannotBeMovedToABotUser"] = 50132] = "OwnershipCannotBeMovedToABotUser";
1023
+ JSONErrorCodes[JSONErrorCodes["FailedToResizeAssetBelowTheMinimumSize"] = 50138] = "FailedToResizeAssetBelowTheMinimumSize";
1024
+ JSONErrorCodes[JSONErrorCodes["CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji"] = 50144] = "CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji";
1025
+ JSONErrorCodes[JSONErrorCodes["CannotConvertBetweenPremiumEmojiAndNormalEmoji"] = 50145] = "CannotConvertBetweenPremiumEmojiAndNormalEmoji";
1026
+ JSONErrorCodes[JSONErrorCodes["UploadedFileNotFound"] = 50146] = "UploadedFileNotFound";
1027
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesDoNotSupportAdditionalContent"] = 50159] = "VoiceMessagesDoNotSupportAdditionalContent";
1028
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveASingleAudioAttachment"] = 50160] = "VoiceMessagesMustHaveASingleAudioAttachment";
1029
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveSupportingMetadata"] = 50161] = "VoiceMessagesMustHaveSupportingMetadata";
1030
+ JSONErrorCodes[JSONErrorCodes["VoiceMessagesCannotBeEdited"] = 50162] = "VoiceMessagesCannotBeEdited";
1031
+ JSONErrorCodes[JSONErrorCodes["CannotDeleteGuildSubscriptionIntegration"] = 50163] = "CannotDeleteGuildSubscriptionIntegration";
1032
+ JSONErrorCodes[JSONErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
1033
+ JSONErrorCodes[JSONErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
1034
+ JSONErrorCodes[JSONErrorCodes["YouDoNotHavePermissionToSendThisSticker"] = 50600] = "YouDoNotHavePermissionToSendThisSticker";
1035
+ JSONErrorCodes[JSONErrorCodes["TwoFactorAuthenticationIsRequired"] = 60003] = "TwoFactorAuthenticationIsRequired";
1036
+ JSONErrorCodes[JSONErrorCodes["NoUsersWithDiscordTagExist"] = 80004] = "NoUsersWithDiscordTagExist";
1037
+ JSONErrorCodes[JSONErrorCodes["ReactionWasBlocked"] = 90001] = "ReactionWasBlocked";
1038
+ JSONErrorCodes[JSONErrorCodes["ApplicationNotYetAvailable"] = 110001] = "ApplicationNotYetAvailable";
1039
+ JSONErrorCodes[JSONErrorCodes["APIResourceOverloaded"] = 130000] = "APIResourceOverloaded";
1040
+ JSONErrorCodes[JSONErrorCodes["TheStageIsAlreadyOpen"] = 150006] = "TheStageIsAlreadyOpen";
1041
+ JSONErrorCodes[JSONErrorCodes["CannotReplyWithoutPermissionToReadMessageHistory"] = 160002] = "CannotReplyWithoutPermissionToReadMessageHistory";
1042
+ JSONErrorCodes[JSONErrorCodes["ThreadAlreadyCreatedForMessage"] = 160004] = "ThreadAlreadyCreatedForMessage";
1043
+ JSONErrorCodes[JSONErrorCodes["ThreadLocked"] = 160005] = "ThreadLocked";
1044
+ JSONErrorCodes[JSONErrorCodes["MaximumActiveThreads"] = 160006] = "MaximumActiveThreads";
1045
+ JSONErrorCodes[JSONErrorCodes["MaximumActiveAnnouncementThreads"] = 160007] = "MaximumActiveAnnouncementThreads";
1046
+ JSONErrorCodes[JSONErrorCodes["InvalidJSONForUploadedLottieFile"] = 170001] = "InvalidJSONForUploadedLottieFile";
1047
+ JSONErrorCodes[JSONErrorCodes["UploadedLottiesCannotContainRasterizedImages"] = 170002] = "UploadedLottiesCannotContainRasterizedImages";
1048
+ JSONErrorCodes[JSONErrorCodes["StickerMaximumFramerateExceeded"] = 170003] = "StickerMaximumFramerateExceeded";
1049
+ JSONErrorCodes[JSONErrorCodes["StickerFrameCountExceedsMaximumOf1000Frames"] = 170004] = "StickerFrameCountExceedsMaximumOf1000Frames";
1050
+ JSONErrorCodes[JSONErrorCodes["LottieAnimationMaximumDimensionsExceeded"] = 170005] = "LottieAnimationMaximumDimensionsExceeded";
1051
+ JSONErrorCodes[JSONErrorCodes["StickerFramerateIsTooSmallOrTooLarge"] = 170006] = "StickerFramerateIsTooSmallOrTooLarge";
1052
+ JSONErrorCodes[JSONErrorCodes["StickerAnimationDurationExceedsMaximumOf5Seconds"] = 170007] = "StickerAnimationDurationExceedsMaximumOf5Seconds";
1053
+ JSONErrorCodes[JSONErrorCodes["CannotUpdateAFinishedEvent"] = 180000] = "CannotUpdateAFinishedEvent";
1054
+ JSONErrorCodes[JSONErrorCodes["FailedToCreateStageNeededForStageEvent"] = 180002] = "FailedToCreateStageNeededForStageEvent";
1055
+ JSONErrorCodes[JSONErrorCodes["MessageWasBlockedByAutomaticModeration"] = 200000] = "MessageWasBlockedByAutomaticModeration";
1056
+ JSONErrorCodes[JSONErrorCodes["TitleWasBlockedByAutomaticModeration"] = 200001] = "TitleWasBlockedByAutomaticModeration";
1057
+ JSONErrorCodes[JSONErrorCodes["WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId"] = 220001] = "WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId";
1058
+ JSONErrorCodes[JSONErrorCodes["WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId"] = 220002] = "WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId";
1059
+ JSONErrorCodes[JSONErrorCodes["WebhooksCanOnlyCreateThreadsInForumChannels"] = 220003] = "WebhooksCanOnlyCreateThreadsInForumChannels";
1060
+ JSONErrorCodes[JSONErrorCodes["WebhookServicesCannotBeUsedInForumChannels"] = 220004] = "WebhookServicesCannotBeUsedInForumChannels";
1061
+ JSONErrorCodes[JSONErrorCodes["MessageBlockedByHarmfulLinksFilter"] = 240000] = "MessageBlockedByHarmfulLinksFilter";
1062
+ JSONErrorCodes[JSONErrorCodes["CannotEnableOnboardingRequirementsAreNotMet"] = 350000] = "CannotEnableOnboardingRequirementsAreNotMet";
1063
+ JSONErrorCodes[JSONErrorCodes["CannotUpdateOnboardingWhileBelowRequirements"] = 350001] = "CannotUpdateOnboardingWhileBelowRequirements";
1064
+ JSONErrorCodes[JSONErrorCodes["FailedToBanUsers"] = 500000] = "FailedToBanUsers";
1065
+ JSONErrorCodes[JSONErrorCodes["PollVotingBlocked"] = 520000] = "PollVotingBlocked";
1066
+ JSONErrorCodes[JSONErrorCodes["PollExpired"] = 520001] = "PollExpired";
1067
+ JSONErrorCodes[JSONErrorCodes["InvalidChannelTypeForPollCreation"] = 520002] = "InvalidChannelTypeForPollCreation";
1068
+ JSONErrorCodes[JSONErrorCodes["CannotEditAPollMessage"] = 520003] = "CannotEditAPollMessage";
1069
+ JSONErrorCodes[JSONErrorCodes["CannotUseAnEmojiIncludedWithThePoll"] = 520004] = "CannotUseAnEmojiIncludedWithThePoll";
1070
+ JSONErrorCodes[JSONErrorCodes["CannotExpireANonPollMessage"] = 520006] = "CannotExpireANonPollMessage";
1071
+ JSONErrorCodes[JSONErrorCodes["PollIsAlreadyExpired"] = 520007] = "PollIsAlreadyExpired";
1072
+ })(JSONErrorCodes || (exports.JSONErrorCodes = JSONErrorCodes = {}));
1046
1073
  /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-error-codes */
1047
1074
  var RPCErrorCodes;
1048
1075
  (function (RPCErrorCodes) {
@@ -1160,4 +1187,3 @@ var EntitlementTypes;
1160
1187
  (function (EntitlementTypes) {
1161
1188
  EntitlementTypes[EntitlementTypes["ApplicationSubscription"] = 8] = "ApplicationSubscription";
1162
1189
  })(EntitlementTypes || (exports.EntitlementTypes = EntitlementTypes = {}));
1163
- //# sourceMappingURL=constants.js.map
@@ -311,6 +311,12 @@ class Shard {
311
311
  case "WEBHOOKS_UPDATE":
312
312
  this.client.emit(constants_1.GatewayEvents.WebhooksUpdate, packet.d.channel_id, packet.d.guild_id);
313
313
  break;
314
+ case "MESSAGE_POLL_VOTE_ADD":
315
+ this.client.emit(constants_1.GatewayEvents.MessagePollVoteAdd, this.client.util.toCamelCase(packet.d));
316
+ break;
317
+ case "MESSAGE_POLL_VOTE_REMOVE":
318
+ this.client.emit(constants_1.GatewayEvents.MessagePollVoteRemove, this.client.util.toCamelCase(packet.d));
319
+ break;
314
320
  }
315
321
  }
316
322
  onWebSocketError(err) {
@@ -323,4 +329,3 @@ class Shard {
323
329
  }
324
330
  }
325
331
  exports.Shard = Shard;
326
- //# sourceMappingURL=Shard.js.map
@@ -10,4 +10,3 @@ class ShardManager extends Map {
10
10
  }
11
11
  }
12
12
  exports.ShardManager = ShardManager;
13
- //# sourceMappingURL=ShardManager.js.map
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Shard"), exports);
18
18
  __exportStar(require("./ShardManager"), exports);
19
- //# sourceMappingURL=index.js.map
package/dist/lib/index.js CHANGED
@@ -20,4 +20,3 @@ __exportStar(require("./types"), exports);
20
20
  __exportStar(require("./utils"), exports);
21
21
  __exportStar(require("./Client"), exports);
22
22
  __exportStar(require("./constants"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -43,4 +43,3 @@ const userAvatarDecoration = (userId, avatarDecoration) => `https://cdn.discorda
43
43
  exports.userAvatarDecoration = userAvatarDecoration;
44
44
  const userBanner = (userId, banner) => `https://cdn.discordapp.com/banners/${userId}/${banner}.png`;
45
45
  exports.userBanner = userBanner;
46
- //# sourceMappingURL=CDN.js.map