disgroove 1.3.2 → 1.3.3-dev.2

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 (277) hide show
  1. package/dist/lib/Client.d.ts +234 -0
  2. package/dist/lib/Client.js +256 -0
  3. package/dist/lib/Client.js.map +1 -0
  4. package/dist/lib/constants.d.ts +1084 -0
  5. package/dist/lib/constants.js +1163 -0
  6. package/dist/lib/constants.js.map +1 -0
  7. package/dist/lib/gateway/Shard.d.ts +25 -0
  8. package/dist/lib/gateway/Shard.js +522 -0
  9. package/dist/lib/gateway/Shard.js.map +1 -0
  10. package/dist/lib/gateway/ShardsManager.d.ts +5 -0
  11. package/dist/lib/gateway/ShardsManager.js +13 -0
  12. package/dist/lib/gateway/ShardsManager.js.map +1 -0
  13. package/dist/lib/gateway/index.d.ts +2 -0
  14. package/dist/lib/gateway/index.js +19 -0
  15. package/dist/lib/gateway/index.js.map +1 -0
  16. package/dist/lib/index.d.ts +7 -0
  17. package/dist/lib/index.js +24 -0
  18. package/dist/lib/index.js.map +1 -0
  19. package/dist/lib/rest/CDN.d.ts +21 -0
  20. package/dist/lib/rest/CDN.js +46 -0
  21. package/dist/lib/rest/CDN.js.map +1 -0
  22. package/dist/lib/rest/Endpoints.d.ts +94 -0
  23. package/dist/lib/rest/Endpoints.js +211 -0
  24. package/dist/lib/rest/Endpoints.js.map +1 -0
  25. package/dist/lib/rest/REST.d.ts +22 -0
  26. package/dist/lib/rest/REST.js +35 -0
  27. package/dist/lib/rest/REST.js.map +1 -0
  28. package/dist/lib/rest/RequestsManager.d.ts +17 -0
  29. package/dist/lib/rest/RequestsManager.js +124 -0
  30. package/dist/lib/rest/RequestsManager.js.map +1 -0
  31. package/dist/lib/rest/index.d.ts +4 -0
  32. package/dist/lib/rest/index.js +34 -0
  33. package/dist/lib/rest/index.js.map +1 -0
  34. package/dist/lib/structures/Application.d.ts +174 -0
  35. package/dist/lib/structures/Application.js +328 -0
  36. package/dist/lib/structures/Application.js.map +1 -0
  37. package/dist/lib/structures/ApplicationCommand.d.ts +45 -0
  38. package/dist/lib/structures/ApplicationCommand.js +127 -0
  39. package/dist/lib/structures/ApplicationCommand.js.map +1 -0
  40. package/dist/lib/structures/AuditLog.d.ts +20 -0
  41. package/dist/lib/structures/AuditLog.js +76 -0
  42. package/dist/lib/structures/AuditLog.js.map +1 -0
  43. package/dist/lib/structures/AutoModerationRule.d.ts +34 -0
  44. package/dist/lib/structures/AutoModerationRule.js +96 -0
  45. package/dist/lib/structures/AutoModerationRule.js.map +1 -0
  46. package/dist/lib/structures/Base.d.ts +17 -0
  47. package/dist/lib/structures/Base.js +31 -0
  48. package/dist/lib/structures/Base.js.map +1 -0
  49. package/dist/lib/structures/Channel.d.ts +253 -0
  50. package/dist/lib/structures/Channel.js +591 -0
  51. package/dist/lib/structures/Channel.js.map +1 -0
  52. package/dist/lib/structures/ClientApplication.d.ts +150 -0
  53. package/dist/lib/structures/ClientApplication.js +241 -0
  54. package/dist/lib/structures/ClientApplication.js.map +1 -0
  55. package/dist/lib/structures/Emoji.d.ts +28 -0
  56. package/dist/lib/structures/Emoji.js +79 -0
  57. package/dist/lib/structures/Emoji.js.map +1 -0
  58. package/dist/lib/structures/Entitlement.d.ts +24 -0
  59. package/dist/lib/structures/Entitlement.js +68 -0
  60. package/dist/lib/structures/Entitlement.js.map +1 -0
  61. package/dist/lib/structures/Guild.d.ts +462 -0
  62. package/dist/lib/structures/Guild.js +1095 -0
  63. package/dist/lib/structures/Guild.js.map +1 -0
  64. package/dist/lib/structures/GuildMember.d.ts +50 -0
  65. package/dist/lib/structures/GuildMember.js +149 -0
  66. package/dist/lib/structures/GuildMember.js.map +1 -0
  67. package/dist/lib/structures/GuildScheduledEvent.d.ts +49 -0
  68. package/dist/lib/structures/GuildScheduledEvent.js +118 -0
  69. package/dist/lib/structures/GuildScheduledEvent.js.map +1 -0
  70. package/dist/lib/structures/GuildTemplate.d.ts +32 -0
  71. package/dist/lib/structures/GuildTemplate.js +76 -0
  72. package/dist/lib/structures/GuildTemplate.js.map +1 -0
  73. package/dist/lib/structures/Integration.d.ts +30 -0
  74. package/dist/lib/structures/Integration.js +102 -0
  75. package/dist/lib/structures/Integration.js.map +1 -0
  76. package/dist/lib/structures/Interaction.d.ts +76 -0
  77. package/dist/lib/structures/Interaction.js +345 -0
  78. package/dist/lib/structures/Interaction.js.map +1 -0
  79. package/dist/lib/structures/Invite.d.ts +28 -0
  80. package/dist/lib/structures/Invite.js +86 -0
  81. package/dist/lib/structures/Invite.js.map +1 -0
  82. package/dist/lib/structures/Message.d.ts +84 -0
  83. package/dist/lib/structures/Message.js +300 -0
  84. package/dist/lib/structures/Message.js.map +1 -0
  85. package/dist/lib/structures/Role.d.ts +37 -0
  86. package/dist/lib/structures/Role.js +90 -0
  87. package/dist/lib/structures/Role.js.map +1 -0
  88. package/dist/lib/structures/SKU.d.ts +23 -0
  89. package/dist/lib/structures/SKU.js +63 -0
  90. package/dist/lib/structures/SKU.js.map +1 -0
  91. package/dist/lib/structures/StageInstance.d.ts +24 -0
  92. package/dist/lib/structures/StageInstance.js +57 -0
  93. package/dist/lib/structures/StageInstance.js.map +1 -0
  94. package/dist/lib/structures/Sticker.d.ts +31 -0
  95. package/dist/lib/structures/Sticker.js +86 -0
  96. package/dist/lib/structures/Sticker.js.map +1 -0
  97. package/dist/lib/structures/Team.d.ts +14 -0
  98. package/dist/lib/structures/Team.js +39 -0
  99. package/dist/lib/structures/Team.js.map +1 -0
  100. package/dist/lib/structures/TestEntitlement.d.ts +23 -0
  101. package/dist/lib/structures/TestEntitlement.js +61 -0
  102. package/dist/lib/structures/TestEntitlement.js.map +1 -0
  103. package/dist/lib/structures/UnavailableGuild.d.ts +11 -0
  104. package/dist/lib/structures/UnavailableGuild.js +25 -0
  105. package/dist/lib/structures/UnavailableGuild.js.map +1 -0
  106. package/dist/lib/structures/User.d.ts +63 -0
  107. package/dist/lib/structures/User.js +177 -0
  108. package/dist/lib/structures/User.js.map +1 -0
  109. package/dist/lib/structures/VoiceState.d.ts +26 -0
  110. package/dist/lib/structures/VoiceState.js +70 -0
  111. package/dist/lib/structures/VoiceState.js.map +1 -0
  112. package/dist/lib/structures/Webhook.d.ts +84 -0
  113. package/dist/lib/structures/Webhook.js +239 -0
  114. package/dist/lib/structures/Webhook.js.map +1 -0
  115. package/dist/lib/structures/index.d.ts +27 -0
  116. package/dist/lib/structures/index.js +44 -0
  117. package/dist/lib/structures/index.js.map +1 -0
  118. package/dist/lib/types/application-command.d.ts +102 -0
  119. package/dist/lib/types/application-command.js +3 -0
  120. package/dist/lib/types/application-command.js.map +1 -0
  121. package/dist/lib/types/application-role-connection-metadata.d.ts +18 -0
  122. package/dist/lib/types/application-role-connection-metadata.js +3 -0
  123. package/dist/lib/types/application-role-connection-metadata.js.map +1 -0
  124. package/dist/lib/types/application.d.ts +66 -0
  125. package/dist/lib/types/application.js +3 -0
  126. package/dist/lib/types/application.js.map +1 -0
  127. package/dist/lib/types/audit-log.d.ts +82 -0
  128. package/dist/lib/types/audit-log.js +3 -0
  129. package/dist/lib/types/audit-log.js.map +1 -0
  130. package/dist/lib/types/auto-moderation.d.ts +65 -0
  131. package/dist/lib/types/auto-moderation.js +3 -0
  132. package/dist/lib/types/auto-moderation.js.map +1 -0
  133. package/dist/lib/types/channel.d.ts +456 -0
  134. package/dist/lib/types/channel.js +3 -0
  135. package/dist/lib/types/channel.js.map +1 -0
  136. package/dist/lib/types/emoji.d.ts +22 -0
  137. package/dist/lib/types/emoji.js +3 -0
  138. package/dist/lib/types/emoji.js.map +1 -0
  139. package/dist/lib/types/entitlements.d.ts +32 -0
  140. package/dist/lib/types/entitlements.js +3 -0
  141. package/dist/lib/types/entitlements.js.map +1 -0
  142. package/dist/lib/types/gateway-events.d.ts +805 -0
  143. package/dist/lib/types/gateway-events.js +3 -0
  144. package/dist/lib/types/gateway-events.js.map +1 -0
  145. package/dist/lib/types/guild-scheduled-event.d.ts +57 -0
  146. package/dist/lib/types/guild-scheduled-event.js +3 -0
  147. package/dist/lib/types/guild-scheduled-event.js.map +1 -0
  148. package/dist/lib/types/guild-template.d.ts +28 -0
  149. package/dist/lib/types/guild-template.js +3 -0
  150. package/dist/lib/types/guild-template.js.map +1 -0
  151. package/dist/lib/types/guild.d.ts +333 -0
  152. package/dist/lib/types/guild.js +3 -0
  153. package/dist/lib/types/guild.js.map +1 -0
  154. package/dist/lib/types/index.d.ts +23 -0
  155. package/dist/lib/types/index.js +40 -0
  156. package/dist/lib/types/index.js.map +1 -0
  157. package/dist/lib/types/interaction.d.ts +170 -0
  158. package/dist/lib/types/interaction.js +3 -0
  159. package/dist/lib/types/interaction.js.map +1 -0
  160. package/dist/lib/types/invite.d.ts +59 -0
  161. package/dist/lib/types/invite.js +3 -0
  162. package/dist/lib/types/invite.js.map +1 -0
  163. package/dist/lib/types/message-components.d.ts +100 -0
  164. package/dist/lib/types/message-components.js +3 -0
  165. package/dist/lib/types/message-components.js.map +1 -0
  166. package/dist/lib/types/role.d.ts +47 -0
  167. package/dist/lib/types/role.js +3 -0
  168. package/dist/lib/types/role.js.map +1 -0
  169. package/dist/lib/types/sku.d.ts +30 -0
  170. package/dist/lib/types/sku.js +3 -0
  171. package/dist/lib/types/sku.js.map +1 -0
  172. package/dist/lib/types/stage-instance.d.ts +20 -0
  173. package/dist/lib/types/stage-instance.js +3 -0
  174. package/dist/lib/types/stage-instance.js.map +1 -0
  175. package/dist/lib/types/sticker.d.ts +61 -0
  176. package/dist/lib/types/sticker.js +3 -0
  177. package/dist/lib/types/sticker.js.map +1 -0
  178. package/dist/lib/types/team.d.ts +30 -0
  179. package/dist/lib/types/team.js +3 -0
  180. package/dist/lib/types/team.js.map +1 -0
  181. package/dist/lib/types/user.d.ts +77 -0
  182. package/dist/lib/types/user.js +3 -0
  183. package/dist/lib/types/user.js.map +1 -0
  184. package/dist/lib/types/voice.d.ts +47 -0
  185. package/dist/lib/types/voice.js +3 -0
  186. package/dist/lib/types/voice.js.map +1 -0
  187. package/dist/lib/types/webhook.d.ts +31 -0
  188. package/dist/lib/types/webhook.js +3 -0
  189. package/dist/lib/types/webhook.js.map +1 -0
  190. package/dist/lib/utils/Util.d.ts +15 -0
  191. package/dist/lib/utils/Util.js +543 -0
  192. package/dist/lib/utils/Util.js.map +1 -0
  193. package/dist/lib/utils/errors.d.ts +12 -0
  194. package/dist/lib/utils/errors.js +25 -0
  195. package/dist/lib/utils/errors.js.map +1 -0
  196. package/dist/lib/utils/index.d.ts +2 -0
  197. package/dist/lib/utils/index.js +19 -0
  198. package/dist/lib/utils/index.js.map +1 -0
  199. package/dist/package.json +1 -1
  200. package/examples/applicationCommands.js +43 -0
  201. package/examples/buttons.js +70 -0
  202. package/examples/embeds.js +36 -0
  203. package/examples/ephemeralMessages.js +32 -0
  204. package/examples/files.js +36 -0
  205. package/examples/modalSubmit.js +62 -0
  206. package/examples/permissions.js +41 -0
  207. package/examples/selectMenus.js +160 -0
  208. package/examples/text.txt +1 -0
  209. package/lib/Client.ts +616 -0
  210. package/lib/constants.ts +1173 -0
  211. package/lib/gateway/Shard.ts +704 -0
  212. package/lib/gateway/ShardsManager.ts +11 -0
  213. package/lib/gateway/index.ts +2 -0
  214. package/lib/index.ts +7 -0
  215. package/lib/rest/CDN.ts +56 -0
  216. package/lib/rest/Endpoints.ts +241 -0
  217. package/lib/rest/REST.ts +45 -0
  218. package/lib/rest/RequestsManager.ts +134 -0
  219. package/lib/rest/index.ts +4 -0
  220. package/lib/structures/Application.ts +599 -0
  221. package/lib/structures/ApplicationCommand.ts +187 -0
  222. package/lib/structures/AuditLog.ts +112 -0
  223. package/lib/structures/AutoModerationRule.ts +127 -0
  224. package/lib/structures/Base.ts +39 -0
  225. package/lib/structures/Channel.ts +921 -0
  226. package/lib/structures/ClientApplication.ts +515 -0
  227. package/lib/structures/Emoji.ts +95 -0
  228. package/lib/structures/Entitlement.ts +65 -0
  229. package/lib/structures/Guild.ts +1842 -0
  230. package/lib/structures/GuildMember.ts +193 -0
  231. package/lib/structures/GuildScheduledEvent.ts +164 -0
  232. package/lib/structures/GuildTemplate.ts +103 -0
  233. package/lib/structures/Integration.ts +136 -0
  234. package/lib/structures/Interaction.ts +506 -0
  235. package/lib/structures/Invite.ts +108 -0
  236. package/lib/structures/Message.ts +421 -0
  237. package/lib/structures/Role.ts +116 -0
  238. package/lib/structures/SKU.ts +63 -0
  239. package/lib/structures/StageInstance.ts +74 -0
  240. package/lib/structures/Sticker.ts +100 -0
  241. package/lib/structures/Team.ts +41 -0
  242. package/lib/structures/TestEntitlement.ts +78 -0
  243. package/lib/structures/UnavailableGuild.ts +27 -0
  244. package/lib/structures/User.ts +233 -0
  245. package/lib/structures/VoiceState.ts +72 -0
  246. package/lib/structures/Webhook.ts +341 -0
  247. package/lib/structures/index.ts +27 -0
  248. package/lib/types/application-command.ts +118 -0
  249. package/lib/types/application-role-connection-metadata.ts +23 -0
  250. package/lib/types/application.ts +77 -0
  251. package/lib/types/audit-log.ts +105 -0
  252. package/lib/types/auto-moderation.ts +78 -0
  253. package/lib/types/channel.ts +534 -0
  254. package/lib/types/emoji.ts +24 -0
  255. package/lib/types/entitlements.ts +34 -0
  256. package/lib/types/gateway-events.ts +970 -0
  257. package/lib/types/guild-scheduled-event.ts +67 -0
  258. package/lib/types/guild-template.ts +30 -0
  259. package/lib/types/guild.ts +388 -0
  260. package/lib/types/index.ts +23 -0
  261. package/lib/types/interaction.ts +224 -0
  262. package/lib/types/invite.ts +78 -0
  263. package/lib/types/message-components.ts +127 -0
  264. package/lib/types/role.ts +51 -0
  265. package/lib/types/sku.ts +32 -0
  266. package/lib/types/stage-instance.ts +22 -0
  267. package/lib/types/sticker.ts +67 -0
  268. package/lib/types/team.ts +34 -0
  269. package/lib/types/user.ts +93 -0
  270. package/lib/types/voice.ts +51 -0
  271. package/lib/types/webhook.ts +40 -0
  272. package/lib/utils/Util.ts +600 -0
  273. package/lib/utils/errors.ts +23 -0
  274. package/lib/utils/index.ts +2 -0
  275. package/package.json +1 -1
  276. package/test/basic.js +8 -0
  277. package/tsconfig.json +107 -0
@@ -0,0 +1,1163 @@
1
+ "use strict";
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.Locale = 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;
5
+ /** https://discord.com/developers/docs/reference#image-formatting-image-formats */
6
+ var ImageFormats;
7
+ (function (ImageFormats) {
8
+ ImageFormats["JPG"] = "JPG";
9
+ ImageFormats["JPEG"] = "jpeg";
10
+ ImageFormats["PNG"] = "png";
11
+ ImageFormats["WebP"] = "webp";
12
+ ImageFormats["GIF"] = "gif";
13
+ ImageFormats["Lottie"] = "json";
14
+ })(ImageFormats || (exports.ImageFormats = ImageFormats = {}));
15
+ /** https://discord.com/developers/docs/reference#locales */
16
+ var Locale;
17
+ (function (Locale) {
18
+ Locale["Indonesian"] = "id";
19
+ Locale["Danish"] = "da";
20
+ Locale["German"] = "de";
21
+ Locale["EnglishGB"] = "en-GB";
22
+ Locale["EnglishUS"] = "en-US";
23
+ Locale["SpanishES"] = "es-ES";
24
+ Locale["SpanishLatam"] = "es-419";
25
+ Locale["French"] = "fr";
26
+ Locale["Croatian"] = "hr";
27
+ Locale["Italian"] = "it";
28
+ Locale["Lithuanian"] = "lt";
29
+ Locale["Hungarian"] = "hu";
30
+ Locale["Dutch"] = "nl";
31
+ Locale["Norwegian"] = "no";
32
+ Locale["Polish"] = "pl";
33
+ Locale["PortugueseBR"] = "pt-BR";
34
+ Locale["Romanian"] = "ro";
35
+ Locale["Finnish"] = "fi";
36
+ Locale["Swedish"] = "sv-SE";
37
+ Locale["Vietnamese"] = "vi";
38
+ Locale["Turkish"] = "tr";
39
+ Locale["Czech"] = "cs";
40
+ Locale["Greek"] = "el";
41
+ Locale["Bulgarian"] = "bg";
42
+ Locale["Russian"] = "ru";
43
+ Locale["Ukrainian"] = "uk";
44
+ Locale["Hindi"] = "hi";
45
+ Locale["Thai"] = "th";
46
+ Locale["ChineseCN"] = "zh-CN";
47
+ Locale["Japanese"] = "ja";
48
+ Locale["ChineseTW"] = "zh-TW";
49
+ Locale["Korean"] = "ko";
50
+ })(Locale || (exports.Locale = Locale = {}));
51
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types */
52
+ var ApplicationCommandTypes;
53
+ (function (ApplicationCommandTypes) {
54
+ ApplicationCommandTypes[ApplicationCommandTypes["ChatInput"] = 1] = "ChatInput";
55
+ ApplicationCommandTypes[ApplicationCommandTypes["User"] = 2] = "User";
56
+ ApplicationCommandTypes[ApplicationCommandTypes["Message"] = 3] = "Message";
57
+ })(ApplicationCommandTypes || (exports.ApplicationCommandTypes = ApplicationCommandTypes = {}));
58
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type */
59
+ var ApplicationCommandOptionType;
60
+ (function (ApplicationCommandOptionType) {
61
+ ApplicationCommandOptionType[ApplicationCommandOptionType["SubCommand"] = 1] = "SubCommand";
62
+ ApplicationCommandOptionType[ApplicationCommandOptionType["SubCommandGroup"] = 2] = "SubCommandGroup";
63
+ ApplicationCommandOptionType[ApplicationCommandOptionType["String"] = 3] = "String";
64
+ ApplicationCommandOptionType[ApplicationCommandOptionType["Integer"] = 4] = "Integer";
65
+ ApplicationCommandOptionType[ApplicationCommandOptionType["Boolean"] = 5] = "Boolean";
66
+ ApplicationCommandOptionType[ApplicationCommandOptionType["User"] = 6] = "User";
67
+ ApplicationCommandOptionType[ApplicationCommandOptionType["Channel"] = 7] = "Channel";
68
+ ApplicationCommandOptionType[ApplicationCommandOptionType["Role"] = 8] = "Role";
69
+ ApplicationCommandOptionType[ApplicationCommandOptionType["Mentionable"] = 9] = "Mentionable";
70
+ ApplicationCommandOptionType[ApplicationCommandOptionType["Number"] = 10] = "Number";
71
+ ApplicationCommandOptionType[ApplicationCommandOptionType["Attachment"] = 11] = "Attachment";
72
+ })(ApplicationCommandOptionType || (exports.ApplicationCommandOptionType = ApplicationCommandOptionType = {}));
73
+ /** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permission-type */
74
+ var ApplicationCommandPermissionType;
75
+ (function (ApplicationCommandPermissionType) {
76
+ ApplicationCommandPermissionType[ApplicationCommandPermissionType["Role"] = 1] = "Role";
77
+ ApplicationCommandPermissionType[ApplicationCommandPermissionType["User"] = 2] = "User";
78
+ ApplicationCommandPermissionType[ApplicationCommandPermissionType["Channel"] = 3] = "Channel";
79
+ })(ApplicationCommandPermissionType || (exports.ApplicationCommandPermissionType = ApplicationCommandPermissionType = {}));
80
+ /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-type */
81
+ var InteractionType;
82
+ (function (InteractionType) {
83
+ InteractionType[InteractionType["Ping"] = 1] = "Ping";
84
+ InteractionType[InteractionType["ApplicationCommand"] = 2] = "ApplicationCommand";
85
+ InteractionType[InteractionType["MessageComponent"] = 3] = "MessageComponent";
86
+ InteractionType[InteractionType["ApplicationCommandAutocomplete"] = 4] = "ApplicationCommandAutocomplete";
87
+ InteractionType[InteractionType["ModalSubmit"] = 5] = "ModalSubmit";
88
+ })(InteractionType || (exports.InteractionType = InteractionType = {}));
89
+ /** https://discord.com/developers/docs/interactions/message-components#component-object-component-types */
90
+ var ComponentTypes;
91
+ (function (ComponentTypes) {
92
+ ComponentTypes[ComponentTypes["ActionRow"] = 1] = "ActionRow";
93
+ ComponentTypes[ComponentTypes["Button"] = 2] = "Button";
94
+ ComponentTypes[ComponentTypes["StringSelect"] = 3] = "StringSelect";
95
+ ComponentTypes[ComponentTypes["TextInput"] = 4] = "TextInput";
96
+ ComponentTypes[ComponentTypes["UserSelect"] = 5] = "UserSelect";
97
+ ComponentTypes[ComponentTypes["RoleSelect"] = 6] = "RoleSelect";
98
+ ComponentTypes[ComponentTypes["MentionableSelect"] = 7] = "MentionableSelect";
99
+ ComponentTypes[ComponentTypes["ChannelSelect"] = 8] = "ChannelSelect";
100
+ })(ComponentTypes || (exports.ComponentTypes = ComponentTypes = {}));
101
+ /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-type */
102
+ var InteractionCallbackType;
103
+ (function (InteractionCallbackType) {
104
+ InteractionCallbackType[InteractionCallbackType["Pong"] = 1] = "Pong";
105
+ InteractionCallbackType[InteractionCallbackType["ChannelMessageWithSource"] = 4] = "ChannelMessageWithSource";
106
+ InteractionCallbackType[InteractionCallbackType["DeferredChannelMessageWithSource"] = 5] = "DeferredChannelMessageWithSource";
107
+ InteractionCallbackType[InteractionCallbackType["DeferredUpdateMessage"] = 6] = "DeferredUpdateMessage";
108
+ InteractionCallbackType[InteractionCallbackType["UpdateMessage"] = 7] = "UpdateMessage";
109
+ InteractionCallbackType[InteractionCallbackType["ApplicationCommandAutocompleteResult"] = 8] = "ApplicationCommandAutocompleteResult";
110
+ InteractionCallbackType[InteractionCallbackType["Modal"] = 9] = "Modal";
111
+ InteractionCallbackType[InteractionCallbackType["PremiumRequired"] = 10] = "PremiumRequired";
112
+ })(InteractionCallbackType || (exports.InteractionCallbackType = InteractionCallbackType = {}));
113
+ /** https://discord.com/developers/docs/interactions/message-components#button-object-button-styles */
114
+ var ButtonStyles;
115
+ (function (ButtonStyles) {
116
+ ButtonStyles[ButtonStyles["Primary"] = 1] = "Primary";
117
+ ButtonStyles[ButtonStyles["Secondary"] = 2] = "Secondary";
118
+ ButtonStyles[ButtonStyles["Success"] = 3] = "Success";
119
+ ButtonStyles[ButtonStyles["Danger"] = 4] = "Danger";
120
+ ButtonStyles[ButtonStyles["Link"] = 5] = "Link";
121
+ })(ButtonStyles || (exports.ButtonStyles = ButtonStyles = {}));
122
+ /** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-styles */
123
+ var TextInputStyles;
124
+ (function (TextInputStyles) {
125
+ TextInputStyles[TextInputStyles["Short"] = 1] = "Short";
126
+ TextInputStyles[TextInputStyles["Paragraph"] = 2] = "Paragraph";
127
+ })(TextInputStyles || (exports.TextInputStyles = TextInputStyles = {}));
128
+ /** https://discord.com/developers/docs/resources/application#application-object-application-flags */
129
+ var ApplicationFlags;
130
+ (function (ApplicationFlags) {
131
+ ApplicationFlags[ApplicationFlags["ApplicationAutoModerationRuleCreateBadge"] = 64] = "ApplicationAutoModerationRuleCreateBadge";
132
+ ApplicationFlags[ApplicationFlags["GatewayPresence"] = 4096] = "GatewayPresence";
133
+ ApplicationFlags[ApplicationFlags["GatewayPresenceLimited"] = 8192] = "GatewayPresenceLimited";
134
+ ApplicationFlags[ApplicationFlags["GatewayGuildMembers"] = 16384] = "GatewayGuildMembers";
135
+ ApplicationFlags[ApplicationFlags["GatewayGuildMembersLimited"] = 32768] = "GatewayGuildMembersLimited";
136
+ ApplicationFlags[ApplicationFlags["VerificationPendingGuildLimit"] = 65536] = "VerificationPendingGuildLimit";
137
+ ApplicationFlags[ApplicationFlags["Embedded"] = 131072] = "Embedded";
138
+ ApplicationFlags[ApplicationFlags["GatewayMessageContent"] = 262144] = "GatewayMessageContent";
139
+ ApplicationFlags[ApplicationFlags["GatewayMessageContentLimited"] = 524288] = "GatewayMessageContentLimited";
140
+ ApplicationFlags[ApplicationFlags["ApplicationCommandBadge"] = 8388608] = "ApplicationCommandBadge";
141
+ })(ApplicationFlags || (exports.ApplicationFlags = ApplicationFlags = {}));
142
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type */
143
+ var ApplicationRoleConnectionMetadataType;
144
+ (function (ApplicationRoleConnectionMetadataType) {
145
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerLessThanOrEqual"] = 1] = "IntegerLessThanOrEqual";
146
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerGreaterThanOrEqual"] = 2] = "IntegerGreaterThanOrEqual";
147
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerEqual"] = 3] = "IntegerEqual";
148
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerNotEqual"] = 4] = "IntegerNotEqual";
149
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DatetimeLessThanOrEqual"] = 5] = "DatetimeLessThanOrEqual";
150
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DatetimeGreaterThanOrEqual"] = 6] = "DatetimeGreaterThanOrEqual";
151
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BooleanEqual"] = 7] = "BooleanEqual";
152
+ ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BooleanNotEqual"] = 8] = "BooleanNotEqual";
153
+ })(ApplicationRoleConnectionMetadataType || (exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType = {}));
154
+ /** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-events */
155
+ var AuditLogEvents;
156
+ (function (AuditLogEvents) {
157
+ AuditLogEvents[AuditLogEvents["GuildUpdate"] = 1] = "GuildUpdate";
158
+ AuditLogEvents[AuditLogEvents["ChannelCreate"] = 10] = "ChannelCreate";
159
+ AuditLogEvents[AuditLogEvents["ChannelUpdate"] = 11] = "ChannelUpdate";
160
+ AuditLogEvents[AuditLogEvents["ChannelDelete"] = 12] = "ChannelDelete";
161
+ AuditLogEvents[AuditLogEvents["ChannelOverwriteCreate"] = 13] = "ChannelOverwriteCreate";
162
+ AuditLogEvents[AuditLogEvents["ChannelOverwriteUpdate"] = 14] = "ChannelOverwriteUpdate";
163
+ AuditLogEvents[AuditLogEvents["ChannelOverwriteDelete"] = 15] = "ChannelOverwriteDelete";
164
+ AuditLogEvents[AuditLogEvents["MemberKick"] = 20] = "MemberKick";
165
+ AuditLogEvents[AuditLogEvents["MemberPrune"] = 21] = "MemberPrune";
166
+ AuditLogEvents[AuditLogEvents["MemberBanAdd"] = 22] = "MemberBanAdd";
167
+ AuditLogEvents[AuditLogEvents["MemberBanRemove"] = 23] = "MemberBanRemove";
168
+ AuditLogEvents[AuditLogEvents["MemberUpdate"] = 24] = "MemberUpdate";
169
+ AuditLogEvents[AuditLogEvents["MemberRoleUpdate"] = 25] = "MemberRoleUpdate";
170
+ AuditLogEvents[AuditLogEvents["MemberMove"] = 26] = "MemberMove";
171
+ AuditLogEvents[AuditLogEvents["MemberDisconnect"] = 27] = "MemberDisconnect";
172
+ AuditLogEvents[AuditLogEvents["BotAdd"] = 28] = "BotAdd";
173
+ AuditLogEvents[AuditLogEvents["RoleCreate"] = 30] = "RoleCreate";
174
+ AuditLogEvents[AuditLogEvents["RoleUpdate"] = 31] = "RoleUpdate";
175
+ AuditLogEvents[AuditLogEvents["RoleDelete"] = 32] = "RoleDelete";
176
+ AuditLogEvents[AuditLogEvents["InviteCreate"] = 40] = "InviteCreate";
177
+ AuditLogEvents[AuditLogEvents["InviteUpdate"] = 41] = "InviteUpdate";
178
+ AuditLogEvents[AuditLogEvents["InviteDelete"] = 42] = "InviteDelete";
179
+ AuditLogEvents[AuditLogEvents["WebhookCreate"] = 50] = "WebhookCreate";
180
+ AuditLogEvents[AuditLogEvents["WebhookUpdate"] = 51] = "WebhookUpdate";
181
+ AuditLogEvents[AuditLogEvents["WebhookDelete"] = 52] = "WebhookDelete";
182
+ AuditLogEvents[AuditLogEvents["EmojiCreate"] = 60] = "EmojiCreate";
183
+ AuditLogEvents[AuditLogEvents["EmojiUpdate"] = 61] = "EmojiUpdate";
184
+ AuditLogEvents[AuditLogEvents["EmojiDelete"] = 62] = "EmojiDelete";
185
+ AuditLogEvents[AuditLogEvents["MessageDelete"] = 72] = "MessageDelete";
186
+ AuditLogEvents[AuditLogEvents["MessageBulkDelete"] = 73] = "MessageBulkDelete";
187
+ AuditLogEvents[AuditLogEvents["MessagePin"] = 74] = "MessagePin";
188
+ AuditLogEvents[AuditLogEvents["MessageUnpin"] = 75] = "MessageUnpin";
189
+ AuditLogEvents[AuditLogEvents["IntegrationCreate"] = 80] = "IntegrationCreate";
190
+ AuditLogEvents[AuditLogEvents["IntegrationUpdate"] = 81] = "IntegrationUpdate";
191
+ AuditLogEvents[AuditLogEvents["IntegrationDelete"] = 82] = "IntegrationDelete";
192
+ AuditLogEvents[AuditLogEvents["StageInstanceCreate"] = 83] = "StageInstanceCreate";
193
+ AuditLogEvents[AuditLogEvents["StageInstanceUpdate"] = 84] = "StageInstanceUpdate";
194
+ AuditLogEvents[AuditLogEvents["StageInstanceDelete"] = 85] = "StageInstanceDelete";
195
+ AuditLogEvents[AuditLogEvents["StickerCreate"] = 90] = "StickerCreate";
196
+ AuditLogEvents[AuditLogEvents["StickerUpdate"] = 91] = "StickerUpdate";
197
+ AuditLogEvents[AuditLogEvents["StickerDelete"] = 92] = "StickerDelete";
198
+ AuditLogEvents[AuditLogEvents["GuildScheduledEventCreate"] = 100] = "GuildScheduledEventCreate";
199
+ AuditLogEvents[AuditLogEvents["GuildScheduledEventUpdate"] = 101] = "GuildScheduledEventUpdate";
200
+ AuditLogEvents[AuditLogEvents["GuildScheduledEventDelete"] = 102] = "GuildScheduledEventDelete";
201
+ AuditLogEvents[AuditLogEvents["ThreadCreate"] = 110] = "ThreadCreate";
202
+ AuditLogEvents[AuditLogEvents["ThreadUpdate"] = 111] = "ThreadUpdate";
203
+ AuditLogEvents[AuditLogEvents["ThreadDelete"] = 112] = "ThreadDelete";
204
+ AuditLogEvents[AuditLogEvents["ApplicationCommandPermissionUpdate"] = 121] = "ApplicationCommandPermissionUpdate";
205
+ AuditLogEvents[AuditLogEvents["AutoModerationRuleCreate"] = 140] = "AutoModerationRuleCreate";
206
+ AuditLogEvents[AuditLogEvents["AutoModerationRuleUpdate"] = 141] = "AutoModerationRuleUpdate";
207
+ AuditLogEvents[AuditLogEvents["AutoModerationRuleDelete"] = 142] = "AutoModerationRuleDelete";
208
+ AuditLogEvents[AuditLogEvents["AutoModerationBlockMessage"] = 143] = "AutoModerationBlockMessage";
209
+ AuditLogEvents[AuditLogEvents["AutoModerationFlagToChannel"] = 144] = "AutoModerationFlagToChannel";
210
+ AuditLogEvents[AuditLogEvents["AutoModerationUserCommunicationDisabled"] = 145] = "AutoModerationUserCommunicationDisabled";
211
+ AuditLogEvents[AuditLogEvents["CreatorMonetizationRequestCreated"] = 150] = "CreatorMonetizationRequestCreated";
212
+ AuditLogEvents[AuditLogEvents["CreatorMonetizationTermsAccepted"] = 151] = "CreatorMonetizationTermsAccepted";
213
+ })(AuditLogEvents || (exports.AuditLogEvents = AuditLogEvents = {}));
214
+ /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types */
215
+ var TriggerTypes;
216
+ (function (TriggerTypes) {
217
+ TriggerTypes[TriggerTypes["Keyword"] = 1] = "Keyword";
218
+ TriggerTypes[TriggerTypes["Spam"] = 3] = "Spam";
219
+ TriggerTypes[TriggerTypes["KeywordPreset"] = 4] = "KeywordPreset";
220
+ TriggerTypes[TriggerTypes["MentionSpam"] = 5] = "MentionSpam";
221
+ })(TriggerTypes || (exports.TriggerTypes = TriggerTypes = {}));
222
+ /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types */
223
+ var KeywordPresetTypes;
224
+ (function (KeywordPresetTypes) {
225
+ KeywordPresetTypes[KeywordPresetTypes["Profanity"] = 1] = "Profanity";
226
+ KeywordPresetTypes[KeywordPresetTypes["SexualContent"] = 2] = "SexualContent";
227
+ KeywordPresetTypes[KeywordPresetTypes["Slurs"] = 3] = "Slurs";
228
+ })(KeywordPresetTypes || (exports.KeywordPresetTypes = KeywordPresetTypes = {}));
229
+ /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-event-types */
230
+ var EventTypes;
231
+ (function (EventTypes) {
232
+ EventTypes[EventTypes["MessageSend"] = 1] = "MessageSend";
233
+ })(EventTypes || (exports.EventTypes = EventTypes = {}));
234
+ /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-types */
235
+ var ActionTypes;
236
+ (function (ActionTypes) {
237
+ ActionTypes[ActionTypes["BlockMessage"] = 1] = "BlockMessage";
238
+ ActionTypes[ActionTypes["SendAlertMessage"] = 2] = "SendAlertMessage";
239
+ ActionTypes[ActionTypes["Timeout"] = 3] = "Timeout";
240
+ })(ActionTypes || (exports.ActionTypes = ActionTypes = {}));
241
+ /** https://discord.com/developers/docs/resources/channel#channel-object-channel-types */
242
+ var ChannelTypes;
243
+ (function (ChannelTypes) {
244
+ ChannelTypes[ChannelTypes["GuildText"] = 0] = "GuildText";
245
+ ChannelTypes[ChannelTypes["DM"] = 1] = "DM";
246
+ ChannelTypes[ChannelTypes["GuildVoice"] = 2] = "GuildVoice";
247
+ ChannelTypes[ChannelTypes["GroupDM"] = 3] = "GroupDM";
248
+ ChannelTypes[ChannelTypes["GuildCategory"] = 4] = "GuildCategory";
249
+ ChannelTypes[ChannelTypes["GuildAnnouncement"] = 5] = "GuildAnnouncement";
250
+ ChannelTypes[ChannelTypes["AnnouncementThread"] = 10] = "AnnouncementThread";
251
+ ChannelTypes[ChannelTypes["PublicThread"] = 11] = "PublicThread";
252
+ ChannelTypes[ChannelTypes["PrivateThread"] = 12] = "PrivateThread";
253
+ ChannelTypes[ChannelTypes["GuildStageVoice"] = 13] = "GuildStageVoice";
254
+ ChannelTypes[ChannelTypes["GuildDirectory"] = 14] = "GuildDirectory";
255
+ ChannelTypes[ChannelTypes["GuildForum"] = 15] = "GuildForum";
256
+ ChannelTypes[ChannelTypes["GuildMedia"] = 16] = "GuildMedia";
257
+ })(ChannelTypes || (exports.ChannelTypes = ChannelTypes = {}));
258
+ /** https://discord.com/developers/docs/resources/channel#channel-object-video-quality-modes */
259
+ var VideoQualityModes;
260
+ (function (VideoQualityModes) {
261
+ VideoQualityModes[VideoQualityModes["Auto"] = 1] = "Auto";
262
+ VideoQualityModes[VideoQualityModes["Full"] = 2] = "Full";
263
+ })(VideoQualityModes || (exports.VideoQualityModes = VideoQualityModes = {}));
264
+ /** https://discord.com/developers/docs/resources/channel#channel-object-channel-flags */
265
+ var ChannelFlags;
266
+ (function (ChannelFlags) {
267
+ ChannelFlags[ChannelFlags["Pinned"] = 2] = "Pinned";
268
+ ChannelFlags[ChannelFlags["RequiredTag"] = 16] = "RequiredTag";
269
+ ChannelFlags[ChannelFlags["HideMediaDownloadOptions"] = 32768] = "HideMediaDownloadOptions";
270
+ })(ChannelFlags || (exports.ChannelFlags = ChannelFlags = {}));
271
+ /** https://discord.com/developers/docs/resources/channel#channel-object-sort-order-types */
272
+ var SortOrderTypes;
273
+ (function (SortOrderTypes) {
274
+ SortOrderTypes[SortOrderTypes["LatestActivity"] = 0] = "LatestActivity";
275
+ SortOrderTypes[SortOrderTypes["CreationDate"] = 1] = "CreationDate";
276
+ })(SortOrderTypes || (exports.SortOrderTypes = SortOrderTypes = {}));
277
+ /** https://discord.com/developers/docs/resources/channel#channel-object-forum-layout-types */
278
+ var ForumLayoutTypes;
279
+ (function (ForumLayoutTypes) {
280
+ ForumLayoutTypes[ForumLayoutTypes["NotSet"] = 0] = "NotSet";
281
+ ForumLayoutTypes[ForumLayoutTypes["ListView"] = 1] = "ListView";
282
+ ForumLayoutTypes[ForumLayoutTypes["GalleryView"] = 2] = "GalleryView";
283
+ })(ForumLayoutTypes || (exports.ForumLayoutTypes = ForumLayoutTypes = {}));
284
+ /** https://discord.com/developers/docs/resources/channel#message-object-message-types */
285
+ var MessageTypes;
286
+ (function (MessageTypes) {
287
+ MessageTypes[MessageTypes["Default"] = 0] = "Default";
288
+ MessageTypes[MessageTypes["RecipientAdd"] = 1] = "RecipientAdd";
289
+ MessageTypes[MessageTypes["RecipientRemove"] = 2] = "RecipientRemove";
290
+ MessageTypes[MessageTypes["Call"] = 3] = "Call";
291
+ MessageTypes[MessageTypes["ChannelNameChange"] = 4] = "ChannelNameChange";
292
+ MessageTypes[MessageTypes["ChannelIconChange"] = 5] = "ChannelIconChange";
293
+ MessageTypes[MessageTypes["ChannelPinnedMessage"] = 6] = "ChannelPinnedMessage";
294
+ MessageTypes[MessageTypes["UserJoin"] = 7] = "UserJoin";
295
+ MessageTypes[MessageTypes["GuildBoost"] = 8] = "GuildBoost";
296
+ MessageTypes[MessageTypes["GuildBoostTier1"] = 9] = "GuildBoostTier1";
297
+ MessageTypes[MessageTypes["GuildBoostTier2"] = 10] = "GuildBoostTier2";
298
+ MessageTypes[MessageTypes["GuildBoostTier3"] = 11] = "GuildBoostTier3";
299
+ MessageTypes[MessageTypes["ChannelFollowAdd"] = 12] = "ChannelFollowAdd";
300
+ MessageTypes[MessageTypes["GuildDiscoveryDisqualified"] = 14] = "GuildDiscoveryDisqualified";
301
+ MessageTypes[MessageTypes["GuildDiscoveryRequalified"] = 15] = "GuildDiscoveryRequalified";
302
+ MessageTypes[MessageTypes["GuildDiscoveryGracePeriodInitialWarning"] = 16] = "GuildDiscoveryGracePeriodInitialWarning";
303
+ MessageTypes[MessageTypes["GuildDiscoveryGracePeriodFinalWarning"] = 17] = "GuildDiscoveryGracePeriodFinalWarning";
304
+ MessageTypes[MessageTypes["ThreadCreated"] = 18] = "ThreadCreated";
305
+ MessageTypes[MessageTypes["Reply"] = 19] = "Reply";
306
+ MessageTypes[MessageTypes["ChatInputCommand"] = 20] = "ChatInputCommand";
307
+ MessageTypes[MessageTypes["ThreadStarterMessage"] = 21] = "ThreadStarterMessage";
308
+ MessageTypes[MessageTypes["GuildInviteReminder"] = 22] = "GuildInviteReminder";
309
+ MessageTypes[MessageTypes["ContextMenuCommand"] = 23] = "ContextMenuCommand";
310
+ MessageTypes[MessageTypes["AutoModerationAction"] = 24] = "AutoModerationAction";
311
+ MessageTypes[MessageTypes["RoleSubscriptionPurchase"] = 25] = "RoleSubscriptionPurchase";
312
+ MessageTypes[MessageTypes["InteractionPremiumUpsell"] = 26] = "InteractionPremiumUpsell";
313
+ MessageTypes[MessageTypes["StageStart"] = 27] = "StageStart";
314
+ MessageTypes[MessageTypes["StageEnd"] = 28] = "StageEnd";
315
+ MessageTypes[MessageTypes["StageSpeaker"] = 29] = "StageSpeaker";
316
+ MessageTypes[MessageTypes["StageTopic"] = 31] = "StageTopic";
317
+ MessageTypes[MessageTypes["GuildApplicationPremiumSubscription"] = 32] = "GuildApplicationPremiumSubscription";
318
+ })(MessageTypes || (exports.MessageTypes = MessageTypes = {}));
319
+ /** https://discord.com/developers/docs/resources/channel#message-object-message-activity-types */
320
+ var MessageActivityTypes;
321
+ (function (MessageActivityTypes) {
322
+ MessageActivityTypes[MessageActivityTypes["Join"] = 1] = "Join";
323
+ MessageActivityTypes[MessageActivityTypes["Spectate"] = 2] = "Spectate";
324
+ MessageActivityTypes[MessageActivityTypes["Listen"] = 3] = "Listen";
325
+ MessageActivityTypes[MessageActivityTypes["JoinRequest"] = 5] = "JoinRequest";
326
+ })(MessageActivityTypes || (exports.MessageActivityTypes = MessageActivityTypes = {}));
327
+ /** https://discord.com/developers/docs/resources/channel#message-object-message-flags */
328
+ var MessageFlags;
329
+ (function (MessageFlags) {
330
+ MessageFlags[MessageFlags["Crossposted"] = 1] = "Crossposted";
331
+ MessageFlags[MessageFlags["IsCrosspost"] = 2] = "IsCrosspost";
332
+ MessageFlags[MessageFlags["SuppressEmbeds"] = 4] = "SuppressEmbeds";
333
+ MessageFlags[MessageFlags["SourceMessageDeleted"] = 8] = "SourceMessageDeleted";
334
+ MessageFlags[MessageFlags["Urgent"] = 16] = "Urgent";
335
+ MessageFlags[MessageFlags["HasThread"] = 32] = "HasThread";
336
+ MessageFlags[MessageFlags["Ephemeral"] = 64] = "Ephemeral";
337
+ MessageFlags[MessageFlags["Loading"] = 128] = "Loading";
338
+ MessageFlags[MessageFlags["FailedToMentionSomeRolesInThread"] = 256] = "FailedToMentionSomeRolesInThread";
339
+ MessageFlags[MessageFlags["SuppressNotifications"] = 4096] = "SuppressNotifications";
340
+ MessageFlags[MessageFlags["IsVoiceMessage"] = 8192] = "IsVoiceMessage";
341
+ })(MessageFlags || (exports.MessageFlags = MessageFlags = {}));
342
+ /** https://discord.com/developers/docs/resources/channel#attachment-object-attachment-flags */
343
+ var AttachmentFlags;
344
+ (function (AttachmentFlags) {
345
+ AttachmentFlags[AttachmentFlags["IsRemix"] = 4] = "IsRemix";
346
+ })(AttachmentFlags || (exports.AttachmentFlags = AttachmentFlags = {}));
347
+ /** https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mention-types */
348
+ var AllowedMentionTypes;
349
+ (function (AllowedMentionTypes) {
350
+ AllowedMentionTypes["RoleMentions"] = "roles";
351
+ AllowedMentionTypes["UserMentions"] = "users";
352
+ AllowedMentionTypes["EveryoneMentions"] = "everyone";
353
+ })(AllowedMentionTypes || (exports.AllowedMentionTypes = AllowedMentionTypes = {}));
354
+ /** https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level */
355
+ var DefaultMessageNotificationLevel;
356
+ (function (DefaultMessageNotificationLevel) {
357
+ DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["AllMessages"] = 0] = "AllMessages";
358
+ DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["OnlyMentions"] = 1] = "OnlyMentions";
359
+ })(DefaultMessageNotificationLevel || (exports.DefaultMessageNotificationLevel = DefaultMessageNotificationLevel = {}));
360
+ /** https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level */
361
+ var ExplicitContentFilterLevel;
362
+ (function (ExplicitContentFilterLevel) {
363
+ ExplicitContentFilterLevel[ExplicitContentFilterLevel["Disabled"] = 0] = "Disabled";
364
+ ExplicitContentFilterLevel[ExplicitContentFilterLevel["MembersWithoutRoles"] = 1] = "MembersWithoutRoles";
365
+ ExplicitContentFilterLevel[ExplicitContentFilterLevel["AllMembers"] = 2] = "AllMembers";
366
+ })(ExplicitContentFilterLevel || (exports.ExplicitContentFilterLevel = ExplicitContentFilterLevel = {}));
367
+ /** https://discord.com/developers/docs/resources/guild#guild-object-mfa-level */
368
+ var MFALevel;
369
+ (function (MFALevel) {
370
+ MFALevel[MFALevel["None"] = 0] = "None";
371
+ MFALevel[MFALevel["Elevated"] = 1] = "Elevated";
372
+ })(MFALevel || (exports.MFALevel = MFALevel = {}));
373
+ /** https://discord.com/developers/docs/resources/guild#guild-object-verification-level */
374
+ var VerificationLevel;
375
+ (function (VerificationLevel) {
376
+ VerificationLevel[VerificationLevel["None"] = 0] = "None";
377
+ VerificationLevel[VerificationLevel["Low"] = 1] = "Low";
378
+ VerificationLevel[VerificationLevel["Medium"] = 2] = "Medium";
379
+ VerificationLevel[VerificationLevel["High"] = 3] = "High";
380
+ VerificationLevel[VerificationLevel["VeryHigh"] = 4] = "VeryHigh";
381
+ })(VerificationLevel || (exports.VerificationLevel = VerificationLevel = {}));
382
+ /** https://discord.com/developers/docs/resources/guild#guild-object-guild-nsfw-level */
383
+ var GuildNSFWLevel;
384
+ (function (GuildNSFWLevel) {
385
+ GuildNSFWLevel[GuildNSFWLevel["Default"] = 0] = "Default";
386
+ GuildNSFWLevel[GuildNSFWLevel["Explicit"] = 1] = "Explicit";
387
+ GuildNSFWLevel[GuildNSFWLevel["Safe"] = 2] = "Safe";
388
+ GuildNSFWLevel[GuildNSFWLevel["AgeRestricted"] = 3] = "AgeRestricted";
389
+ })(GuildNSFWLevel || (exports.GuildNSFWLevel = GuildNSFWLevel = {}));
390
+ /** https://discord.com/developers/docs/resources/guild#guild-object-premium-tier */
391
+ var PremiumTier;
392
+ (function (PremiumTier) {
393
+ PremiumTier[PremiumTier["None"] = 0] = "None";
394
+ PremiumTier[PremiumTier["Tier1"] = 1] = "Tier1";
395
+ PremiumTier[PremiumTier["Tier2"] = 2] = "Tier2";
396
+ PremiumTier[PremiumTier["Tier3"] = 3] = "Tier3";
397
+ })(PremiumTier || (exports.PremiumTier = PremiumTier = {}));
398
+ /** https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */
399
+ var SystemChannelFlags;
400
+ (function (SystemChannelFlags) {
401
+ SystemChannelFlags[SystemChannelFlags["SuppressJoinNotifications"] = 1] = "SuppressJoinNotifications";
402
+ SystemChannelFlags[SystemChannelFlags["SuppressPremiumSubscriptions"] = 2] = "SuppressPremiumSubscriptions";
403
+ SystemChannelFlags[SystemChannelFlags["SuppressGuildReminderNotifications"] = 4] = "SuppressGuildReminderNotifications";
404
+ SystemChannelFlags[SystemChannelFlags["SuppressJoinNotificationReplies"] = 8] = "SuppressJoinNotificationReplies";
405
+ SystemChannelFlags[SystemChannelFlags["SuppressRoleSubscriptionPurchaseNotifications"] = 16] = "SuppressRoleSubscriptionPurchaseNotifications";
406
+ SystemChannelFlags[SystemChannelFlags["SuppressRoleSubscriptionPurchaseNotificationReplies"] = 32] = "SuppressRoleSubscriptionPurchaseNotificationReplies";
407
+ })(SystemChannelFlags || (exports.SystemChannelFlags = SystemChannelFlags = {}));
408
+ /** https://discord.com/developers/docs/resources/guild#guild-object-guild-features */
409
+ var GuildFeatures;
410
+ (function (GuildFeatures) {
411
+ GuildFeatures["AnimatedBanner"] = "ANIMATED_BANNER";
412
+ GuildFeatures["AnimatedIcon"] = "ANIMATED_ICON";
413
+ GuildFeatures["ApplicationCommandPermissionsV2"] = "APPLICATION_COMMAND_PERMISSIONS_V2";
414
+ GuildFeatures["AutoModeration"] = "AUTO_MODERATION";
415
+ GuildFeatures["Banner"] = "BANNER";
416
+ GuildFeatures["Community"] = "COMMUNITY";
417
+ GuildFeatures["CreatorMonetizableProvisional"] = "CREATOR_MONETIZABLE_PROVISIONAL";
418
+ GuildFeatures["CreatorStorePage"] = "CREATOR_STORE_PAGE";
419
+ GuildFeatures["DeveloperSupportServer"] = "DEVELOPER_SUPPORT_SERVER";
420
+ GuildFeatures["Discoverable"] = "DISCOVERABLE";
421
+ GuildFeatures["Featurable"] = "FEATURABLE";
422
+ GuildFeatures["InvitesDisabled"] = "INVITES_DISABLED";
423
+ GuildFeatures["InviteSplash"] = "INVITE_SPLASH";
424
+ GuildFeatures["MemberVerificationGateEnabled"] = "MEMBER_VERIFICATION_GATE_ENABLED";
425
+ GuildFeatures["MoreStickers"] = "MORE_STICKERS";
426
+ GuildFeatures["News"] = "NEWS";
427
+ GuildFeatures["Partnered"] = "PARTNERED";
428
+ GuildFeatures["PreviewEnabled"] = "PREVIEW_ENABLED";
429
+ GuildFeatures["RaidAlertsDisabled"] = "RAID_ALERTS_DISABLED";
430
+ GuildFeatures["RoleIcons"] = "ROLE_ICONS";
431
+ GuildFeatures["RoleSubscriptionsAvailableForPurchase"] = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE";
432
+ GuildFeatures["RoleSubscriptionsEnabled"] = "ROLE_SUBSCRIPTIONS_ENABLED";
433
+ GuildFeatures["TicketedEventsEnabled"] = "TICKETED_EVENTS_ENABLED";
434
+ GuildFeatures["VanityURL"] = "VANITY_URL";
435
+ GuildFeatures["Verified"] = "VERIFIED";
436
+ GuildFeatures["VipRegions"] = "VIP_REGIONS";
437
+ GuildFeatures["WelcomeScreenEnabled"] = "WELCOME_SCREEN_ENABLED";
438
+ })(GuildFeatures || (exports.GuildFeatures = GuildFeatures = {}));
439
+ /** https://discord.com/developers/docs/resources/guild#guild-object-mutable-guild-features */
440
+ var MutableGuildFeatures;
441
+ (function (MutableGuildFeatures) {
442
+ MutableGuildFeatures["Community"] = "COMMUNITY";
443
+ MutableGuildFeatures["InvitesDisabled"] = "INVITES_DISABLED";
444
+ MutableGuildFeatures["Discoverable"] = "DISCOVERABLE";
445
+ MutableGuildFeatures["RaidAlertsDisabled"] = "RAID_ALERTS_DISABLED";
446
+ })(MutableGuildFeatures || (exports.MutableGuildFeatures = MutableGuildFeatures = {}));
447
+ /** https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags */
448
+ var GuildMemberFlags;
449
+ (function (GuildMemberFlags) {
450
+ GuildMemberFlags[GuildMemberFlags["DidRejoin"] = 1] = "DidRejoin";
451
+ GuildMemberFlags[GuildMemberFlags["CompletedOnboarding"] = 2] = "CompletedOnboarding";
452
+ GuildMemberFlags[GuildMemberFlags["BypassesVerification"] = 4] = "BypassesVerification";
453
+ GuildMemberFlags[GuildMemberFlags["StartedOnboarding"] = 8] = "StartedOnboarding";
454
+ })(GuildMemberFlags || (exports.GuildMemberFlags = GuildMemberFlags = {}));
455
+ /** https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors */
456
+ var IntegrationExpireBehaviors;
457
+ (function (IntegrationExpireBehaviors) {
458
+ IntegrationExpireBehaviors[IntegrationExpireBehaviors["RemoveRole"] = 0] = "RemoveRole";
459
+ IntegrationExpireBehaviors[IntegrationExpireBehaviors["Kick"] = 1] = "Kick";
460
+ })(IntegrationExpireBehaviors || (exports.IntegrationExpireBehaviors = IntegrationExpireBehaviors = {}));
461
+ /** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-onboarding-mode */
462
+ var OnboardingMode;
463
+ (function (OnboardingMode) {
464
+ OnboardingMode[OnboardingMode["OnboardingDefault"] = 0] = "OnboardingDefault";
465
+ OnboardingMode[OnboardingMode["OnboardingAdvanced"] = 1] = "OnboardingAdvanced";
466
+ })(OnboardingMode || (exports.OnboardingMode = OnboardingMode = {}));
467
+ /** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-prompt-types */
468
+ var PromptTypes;
469
+ (function (PromptTypes) {
470
+ PromptTypes[PromptTypes["MultipleChoice"] = 0] = "MultipleChoice";
471
+ PromptTypes[PromptTypes["Dropdown"] = 1] = "Dropdown";
472
+ })(PromptTypes || (exports.PromptTypes = PromptTypes = {}));
473
+ /** https://discord.com/developers/docs/resources/guild#get-guild-widget-image-widget-style-options */
474
+ var ImageWidgetStyleOptions;
475
+ (function (ImageWidgetStyleOptions) {
476
+ ImageWidgetStyleOptions["Shield"] = "shield";
477
+ ImageWidgetStyleOptions["Banner1"] = "banner1";
478
+ ImageWidgetStyleOptions["Banner2"] = "banner2";
479
+ ImageWidgetStyleOptions["Banner3"] = "banner3";
480
+ ImageWidgetStyleOptions["Banner4"] = "banner4";
481
+ })(ImageWidgetStyleOptions || (exports.ImageWidgetStyleOptions = ImageWidgetStyleOptions = {}));
482
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-privacy-level */
483
+ var GuildScheduledEventPrivacyLevel;
484
+ (function (GuildScheduledEventPrivacyLevel) {
485
+ GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GuildOnly"] = 2] = "GuildOnly";
486
+ })(GuildScheduledEventPrivacyLevel || (exports.GuildScheduledEventPrivacyLevel = GuildScheduledEventPrivacyLevel = {}));
487
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-entity-types */
488
+ var GuildScheduledEventEntityTypes;
489
+ (function (GuildScheduledEventEntityTypes) {
490
+ GuildScheduledEventEntityTypes[GuildScheduledEventEntityTypes["StageIstance"] = 1] = "StageIstance";
491
+ GuildScheduledEventEntityTypes[GuildScheduledEventEntityTypes["Voice"] = 2] = "Voice";
492
+ GuildScheduledEventEntityTypes[GuildScheduledEventEntityTypes["External"] = 3] = "External";
493
+ })(GuildScheduledEventEntityTypes || (exports.GuildScheduledEventEntityTypes = GuildScheduledEventEntityTypes = {}));
494
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-status */
495
+ var GuildScheduledEventStatus;
496
+ (function (GuildScheduledEventStatus) {
497
+ GuildScheduledEventStatus[GuildScheduledEventStatus["Scheduled"] = 1] = "Scheduled";
498
+ GuildScheduledEventStatus[GuildScheduledEventStatus["Active"] = 2] = "Active";
499
+ GuildScheduledEventStatus[GuildScheduledEventStatus["Completed"] = 3] = "Completed";
500
+ GuildScheduledEventStatus[GuildScheduledEventStatus["Canceled"] = 4] = "Canceled";
501
+ })(GuildScheduledEventStatus || (exports.GuildScheduledEventStatus = GuildScheduledEventStatus = {}));
502
+ /** https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */
503
+ var InviteTargetTypes;
504
+ (function (InviteTargetTypes) {
505
+ InviteTargetTypes[InviteTargetTypes["Stream"] = 1] = "Stream";
506
+ InviteTargetTypes[InviteTargetTypes["EmbeddedApplication"] = 2] = "EmbeddedApplication";
507
+ })(InviteTargetTypes || (exports.InviteTargetTypes = InviteTargetTypes = {}));
508
+ /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */
509
+ var PrivacyLevel;
510
+ (function (PrivacyLevel) {
511
+ PrivacyLevel[PrivacyLevel["Public"] = 1] = "Public";
512
+ PrivacyLevel[PrivacyLevel["GuildOnly"] = 2] = "GuildOnly";
513
+ })(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
514
+ /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-types */
515
+ var StickerTypes;
516
+ (function (StickerTypes) {
517
+ StickerTypes[StickerTypes["Standard"] = 1] = "Standard";
518
+ StickerTypes[StickerTypes["Guild"] = 2] = "Guild";
519
+ })(StickerTypes || (exports.StickerTypes = StickerTypes = {}));
520
+ /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-format-types */
521
+ var StickerFormatTypes;
522
+ (function (StickerFormatTypes) {
523
+ StickerFormatTypes[StickerFormatTypes["PNG"] = 1] = "PNG";
524
+ StickerFormatTypes[StickerFormatTypes["APNG"] = 2] = "APNG";
525
+ StickerFormatTypes[StickerFormatTypes["LOTTIE"] = 3] = "LOTTIE";
526
+ StickerFormatTypes[StickerFormatTypes["GIF"] = 4] = "GIF";
527
+ })(StickerFormatTypes || (exports.StickerFormatTypes = StickerFormatTypes = {}));
528
+ /** https://discord.com/developers/docs/resources/user#user-object-user-flags */
529
+ var UserFlags;
530
+ (function (UserFlags) {
531
+ UserFlags[UserFlags["Staff"] = 1] = "Staff";
532
+ UserFlags[UserFlags["Partner"] = 2] = "Partner";
533
+ UserFlags[UserFlags["Hypesquad"] = 4] = "Hypesquad";
534
+ UserFlags[UserFlags["BugHunterLevel1"] = 8] = "BugHunterLevel1";
535
+ UserFlags[UserFlags["HypesquadOnlineHouse1"] = 64] = "HypesquadOnlineHouse1";
536
+ UserFlags[UserFlags["HypesquadOnlineHouse2"] = 128] = "HypesquadOnlineHouse2";
537
+ UserFlags[UserFlags["HypesquadOnlineHouse3"] = 256] = "HypesquadOnlineHouse3";
538
+ UserFlags[UserFlags["PremiumEarlySupporter"] = 512] = "PremiumEarlySupporter";
539
+ UserFlags[UserFlags["TeamPseudoUser"] = 1024] = "TeamPseudoUser";
540
+ UserFlags[UserFlags["BugHunterLevel2"] = 16384] = "BugHunterLevel2";
541
+ UserFlags[UserFlags["VerifiedBot"] = 65536] = "VerifiedBot";
542
+ UserFlags[UserFlags["VerifiedDeveloper"] = 131072] = "VerifiedDeveloper";
543
+ UserFlags[UserFlags["CertifiedModerator"] = 262144] = "CertifiedModerator";
544
+ UserFlags[UserFlags["BotHTTPInteractions"] = 524288] = "BotHTTPInteractions";
545
+ UserFlags[UserFlags["ActiveDeveloper"] = 4194304] = "ActiveDeveloper";
546
+ })(UserFlags || (exports.UserFlags = UserFlags = {}));
547
+ /** https://discord.com/developers/docs/resources/user#user-object-premium-types */
548
+ var PremiumTypes;
549
+ (function (PremiumTypes) {
550
+ PremiumTypes[PremiumTypes["None"] = 0] = "None";
551
+ PremiumTypes[PremiumTypes["NitroClassic"] = 1] = "NitroClassic";
552
+ PremiumTypes[PremiumTypes["Nitro"] = 2] = "Nitro";
553
+ PremiumTypes[PremiumTypes["NitroBasic"] = 3] = "NitroBasic";
554
+ })(PremiumTypes || (exports.PremiumTypes = PremiumTypes = {}));
555
+ /** https://discord.com/developers/docs/resources/user#connection-object-services */
556
+ var Services;
557
+ (function (Services) {
558
+ Services["BattleNet"] = "battlenet";
559
+ Services["Ebay"] = "ebay";
560
+ Services["EpicGames"] = "epicgames";
561
+ Services["Facebook"] = "facebook";
562
+ Services["GitHub"] = "github";
563
+ Services["Instagram"] = "instagram";
564
+ Services["LeagueOfLegends"] = "leagueoflegends";
565
+ Services["PayPal"] = "paypal";
566
+ Services["Playstation"] = "playstation";
567
+ Services["Reddit"] = "reddit";
568
+ Services["RiotGames"] = "riotgames";
569
+ Services["Spotify"] = "spotify";
570
+ Services["Skype"] = "skype";
571
+ Services["Steam"] = "steam";
572
+ Services["TikTok"] = "tiktok";
573
+ Services["Twitch"] = "twitch";
574
+ Services["Twitter"] = "twitter";
575
+ Services["Xbox"] = "xbox";
576
+ Services["YouTube"] = "youtube";
577
+ })(Services || (exports.Services = Services = {}));
578
+ /** https://discord.com/developers/docs/resources/user#connection-object-visibility-types */
579
+ var VisibilityTypes;
580
+ (function (VisibilityTypes) {
581
+ VisibilityTypes[VisibilityTypes["None"] = 0] = "None";
582
+ VisibilityTypes[VisibilityTypes["Everyone"] = 1] = "Everyone";
583
+ })(VisibilityTypes || (exports.VisibilityTypes = VisibilityTypes = {}));
584
+ /** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types */
585
+ var WebhookTypes;
586
+ (function (WebhookTypes) {
587
+ WebhookTypes[WebhookTypes["Incoming"] = 1] = "Incoming";
588
+ WebhookTypes[WebhookTypes["ChannelFollower"] = 2] = "ChannelFollower";
589
+ WebhookTypes[WebhookTypes["Application"] = 3] = "Application";
590
+ })(WebhookTypes || (exports.WebhookTypes = WebhookTypes = {}));
591
+ /** https://discord.com/developers/docs/topics/certified-devices#models-device-type */
592
+ var DeviceType;
593
+ (function (DeviceType) {
594
+ DeviceType["AudioInput"] = "audioinput";
595
+ DeviceType["AudioOutput"] = "audiooutput";
596
+ DeviceType["VideoInput"] = "videoinput";
597
+ })(DeviceType || (exports.DeviceType = DeviceType = {}));
598
+ /** https://discord.com/developers/docs/topics/gateway#list-of-intents */
599
+ var GatewayIntents;
600
+ (function (GatewayIntents) {
601
+ GatewayIntents[GatewayIntents["Guilds"] = 1] = "Guilds";
602
+ GatewayIntents[GatewayIntents["GuildMembers"] = 2] = "GuildMembers";
603
+ GatewayIntents[GatewayIntents["GuildModeration"] = 4] = "GuildModeration";
604
+ GatewayIntents[GatewayIntents["GuildEmojisAndStickers"] = 8] = "GuildEmojisAndStickers";
605
+ GatewayIntents[GatewayIntents["GuildIntegrations"] = 16] = "GuildIntegrations";
606
+ GatewayIntents[GatewayIntents["GuildWebhooks"] = 32] = "GuildWebhooks";
607
+ GatewayIntents[GatewayIntents["GuildInvites"] = 64] = "GuildInvites";
608
+ GatewayIntents[GatewayIntents["GuildVoiceStates"] = 128] = "GuildVoiceStates";
609
+ GatewayIntents[GatewayIntents["GuildPresences"] = 256] = "GuildPresences";
610
+ GatewayIntents[GatewayIntents["GuildMessages"] = 512] = "GuildMessages";
611
+ GatewayIntents[GatewayIntents["GuildMessageReactions"] = 1024] = "GuildMessageReactions";
612
+ GatewayIntents[GatewayIntents["GuildMessageTyping"] = 2048] = "GuildMessageTyping";
613
+ GatewayIntents[GatewayIntents["DirectMessages"] = 4096] = "DirectMessages";
614
+ GatewayIntents[GatewayIntents["DirectMessageReactions"] = 8192] = "DirectMessageReactions";
615
+ GatewayIntents[GatewayIntents["DirectMessageTyping"] = 16384] = "DirectMessageTyping";
616
+ GatewayIntents[GatewayIntents["MessageContent"] = 32768] = "MessageContent";
617
+ GatewayIntents[GatewayIntents["GuildScheduledEvents"] = 65536] = "GuildScheduledEvents";
618
+ GatewayIntents[GatewayIntents["AutoModerationConfiguration"] = 1048576] = "AutoModerationConfiguration";
619
+ GatewayIntents[GatewayIntents["AutoModerationActionExecution"] = 2097152] = "AutoModerationActionExecution";
620
+ GatewayIntents[GatewayIntents["AllNonPrivileged"] = 3243773] = "AllNonPrivileged";
621
+ GatewayIntents[GatewayIntents["AllPrivileged"] = 33026] = "AllPrivileged";
622
+ GatewayIntents[GatewayIntents["All"] = 3276799] = "All";
623
+ })(GatewayIntents || (exports.GatewayIntents = GatewayIntents = {}));
624
+ /** https://discord.com/developers/docs/topics/gateway-events#update-presence-status-types */
625
+ var StatusTypes;
626
+ (function (StatusTypes) {
627
+ StatusTypes["Online"] = "online";
628
+ StatusTypes["DoNotDisturb"] = "dnd";
629
+ StatusTypes["Idle"] = "idle";
630
+ StatusTypes["Invisible"] = "invisible";
631
+ StatusTypes["Offline"] = "offline";
632
+ })(StatusTypes || (exports.StatusTypes = StatusTypes = {}));
633
+ /** https://discord.com/developers/docs/topics/gateway-events#receive-events */
634
+ var GatewayEvents;
635
+ (function (GatewayEvents) {
636
+ GatewayEvents["Hello"] = "hello";
637
+ GatewayEvents["Ready"] = "ready";
638
+ GatewayEvents["Resumed"] = "resumed";
639
+ GatewayEvents["Reconnect"] = "reconnect";
640
+ GatewayEvents["InvalidSession"] = "invalidSession";
641
+ GatewayEvents["ApplicationCommandPermissionsUpdate"] = "applicationCommandPermissionsUpdate";
642
+ GatewayEvents["AutoModerationRuleCreate"] = "autoModerationRuleCreate";
643
+ GatewayEvents["AutoModerationRuleUpdate"] = "autoModerationRuleUpdate";
644
+ GatewayEvents["AutoModerationRuleDelete"] = "autoModerationRuleDelete";
645
+ GatewayEvents["AutoModerationActionExecution"] = "autoModerationActionExecution";
646
+ GatewayEvents["ChannelCreate"] = "channelCreate";
647
+ GatewayEvents["ChannelUpdate"] = "channelUpdate";
648
+ GatewayEvents["ChannelDelete"] = "channelDelete";
649
+ GatewayEvents["ChannelPinsUpdate"] = "channelPinsUpdate";
650
+ GatewayEvents["ThreadCreate"] = "threadCreate";
651
+ GatewayEvents["ThreadUpdate"] = "threadUpdate";
652
+ GatewayEvents["ThreadDelete"] = "threadDelete";
653
+ GatewayEvents["ThreadListSync"] = "threadListSync";
654
+ GatewayEvents["ThreadMemberUpdate"] = "threadMemberUpdate";
655
+ GatewayEvents["ThreadMembersUpdate"] = "threadMembersUpdate";
656
+ GatewayEvents["EntitlementCreate"] = "entitlementCreate";
657
+ GatewayEvents["EntitlementUpdate"] = "entitlementUpdate";
658
+ GatewayEvents["EntitlementDelete"] = "entitlementDelete";
659
+ GatewayEvents["GuildCreate"] = "guildCreate";
660
+ GatewayEvents["GuildUpdate"] = "guildUpdate";
661
+ GatewayEvents["GuildDelete"] = "guildDelete";
662
+ GatewayEvents["GuildAuditLogEntryCreate"] = "guildAuditLogEntryCreate";
663
+ GatewayEvents["GuildBanAdd"] = "guildBanAdd";
664
+ GatewayEvents["GuildBanRemove"] = "guildBanRemove";
665
+ GatewayEvents["GuildEmojisUpdate"] = "guildEmojisUpdate";
666
+ GatewayEvents["GuildStickersUpdate"] = "guildStickersUpdate";
667
+ GatewayEvents["GuildIntegrationsUpdate"] = "guildIntegrationsUpdate";
668
+ GatewayEvents["GuildMemberAdd"] = "guildMemberAdd";
669
+ GatewayEvents["GuildMemberRemove"] = "guildMemberRemove";
670
+ GatewayEvents["GuildMemberUpdate"] = "guildMemberUpdate";
671
+ GatewayEvents["GuildMembersChunk"] = "guildMembersChunk";
672
+ GatewayEvents["GuildRoleCreate"] = "guildRoleCreate";
673
+ GatewayEvents["GuildRoleUpdate"] = "guildRoleUpdate";
674
+ GatewayEvents["GuildRoleDelete"] = "guildRoleDelete";
675
+ GatewayEvents["GuildScheduledEventCreate"] = "guildScheduledEventCreate";
676
+ GatewayEvents["GuildScheduledEventUpdate"] = "guildScheduledEventUpdate";
677
+ GatewayEvents["GuildScheduledEventDelete"] = "guildScheduledEventDelete";
678
+ GatewayEvents["GuildScheduledEventUserAdd"] = "guildScheduledEventUserAdd";
679
+ GatewayEvents["GuildScheduledEventUserRemove"] = "guildScheduledEventUserRemove";
680
+ GatewayEvents["IntegrationCreate"] = "integrationCreate";
681
+ GatewayEvents["IntegrationUpdate"] = "integrationUpdate";
682
+ GatewayEvents["IntegrationDelete"] = "integrationDelete";
683
+ GatewayEvents["InteractionCreate"] = "interactionCreate";
684
+ GatewayEvents["InviteCreate"] = "inviteCreate";
685
+ GatewayEvents["InviteDelete"] = "inviteDelete";
686
+ GatewayEvents["MessageCreate"] = "messageCreate";
687
+ GatewayEvents["MessageUpdate"] = "messageUpdate";
688
+ GatewayEvents["MessageDelete"] = "messageDelete";
689
+ GatewayEvents["MessageDeleteBulk"] = "messageDeleteBulk";
690
+ GatewayEvents["MessageReactionAdd"] = "messageReactionAdd";
691
+ GatewayEvents["MessageReactionRemove"] = "messageReactionRemove";
692
+ GatewayEvents["MessageReactionRemoveAll"] = "messageReactionRemoveAll";
693
+ GatewayEvents["MessageReactionRemoveEmoji"] = "messageReactionRemoveEmoji";
694
+ GatewayEvents["PresenceUpdate"] = "presenceUpdate";
695
+ GatewayEvents["StageInstanceCreate"] = "stageInstanceCreate";
696
+ GatewayEvents["StageInstanceUpdate"] = "stageInstanceUpdate";
697
+ GatewayEvents["StageInstanceDelete"] = "stageInstanceDelete";
698
+ GatewayEvents["TypingStart"] = "typingStart";
699
+ GatewayEvents["UserUpdate"] = "userUpdate";
700
+ GatewayEvents["VoiceStateUpdate"] = "voiceStateUpdate";
701
+ GatewayEvents["VoiceServerUpdate"] = "voiceServerUpdate";
702
+ GatewayEvents["WebhooksUpdate"] = "webhooksUpdate";
703
+ })(GatewayEvents || (exports.GatewayEvents = GatewayEvents = {}));
704
+ /** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types */
705
+ var ActivityType;
706
+ (function (ActivityType) {
707
+ ActivityType[ActivityType["Game"] = 0] = "Game";
708
+ ActivityType[ActivityType["Streaming"] = 1] = "Streaming";
709
+ ActivityType[ActivityType["Listening"] = 2] = "Listening";
710
+ ActivityType[ActivityType["Watching"] = 3] = "Watching";
711
+ ActivityType[ActivityType["Custom"] = 4] = "Custom";
712
+ ActivityType[ActivityType["Competing"] = 5] = "Competing";
713
+ })(ActivityType || (exports.ActivityType = ActivityType = {}));
714
+ /** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-flags */
715
+ var ActivityFlags;
716
+ (function (ActivityFlags) {
717
+ ActivityFlags[ActivityFlags["Instance"] = 1] = "Instance";
718
+ ActivityFlags[ActivityFlags["Join"] = 2] = "Join";
719
+ ActivityFlags[ActivityFlags["Spectate"] = 4] = "Spectate";
720
+ ActivityFlags[ActivityFlags["JoinRequest"] = 8] = "JoinRequest";
721
+ ActivityFlags[ActivityFlags["Sync"] = 16] = "Sync";
722
+ ActivityFlags[ActivityFlags["Play"] = 32] = "Play";
723
+ ActivityFlags[ActivityFlags["PartyPrivacyFriends"] = 64] = "PartyPrivacyFriends";
724
+ ActivityFlags[ActivityFlags["PartyPrivacyVoiceChannel"] = 128] = "PartyPrivacyVoiceChannel";
725
+ ActivityFlags[ActivityFlags["Embedded"] = 256] = "Embedded";
726
+ })(ActivityFlags || (exports.ActivityFlags = ActivityFlags = {}));
727
+ /** https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes */
728
+ var OAuth2Scopes;
729
+ (function (OAuth2Scopes) {
730
+ OAuth2Scopes["ActivitiesRead"] = "activities.read";
731
+ OAuth2Scopes["ActivitiesWrite"] = "activities.write";
732
+ OAuth2Scopes["ApplicationsBuildsRead"] = "applications.builds.read";
733
+ OAuth2Scopes["ApplicationsBuildsUpload"] = "applications.builds.upload";
734
+ OAuth2Scopes["ApplicationsCommands"] = "applications.commands";
735
+ OAuth2Scopes["ApplicationsCommandsUpdate"] = "applications.commands.update";
736
+ OAuth2Scopes["ApplicationsCommandsPermissionsUpdate"] = "applications.commands.permissions.update";
737
+ OAuth2Scopes["ApplicationsEntitlements"] = "applications.entitlements";
738
+ OAuth2Scopes["ApplicationsStoreUpdate"] = "applications.store.update";
739
+ OAuth2Scopes["Bot"] = "bot";
740
+ OAuth2Scopes["Connections"] = "connections";
741
+ OAuth2Scopes["DMChannelsRead"] = "dm_channels.read";
742
+ OAuth2Scopes["Email"] = "email";
743
+ OAuth2Scopes["GDMJoin"] = "gdm.join";
744
+ OAuth2Scopes["Guilds"] = "guilds";
745
+ OAuth2Scopes["GuildsJoin"] = "guilds.join";
746
+ OAuth2Scopes["GuildsMembersRead"] = "guilds.members.read";
747
+ OAuth2Scopes["Identify"] = "identify";
748
+ OAuth2Scopes["MessagesRead"] = "messages.read";
749
+ OAuth2Scopes["RelationShipsRead"] = "relationships.read";
750
+ OAuth2Scopes["RoleConnectionsWrite"] = "role_connections.write";
751
+ OAuth2Scopes["RPC"] = "rpc";
752
+ OAuth2Scopes["RPCActivitiesWrite"] = "rpc.activities.write";
753
+ OAuth2Scopes["RPCNotificationsRead"] = "rpc.notifications.read";
754
+ OAuth2Scopes["RPCVoiceRead"] = "rpc.voice.read";
755
+ OAuth2Scopes["RPCVoiceWrite"] = "rpc.voice.write";
756
+ OAuth2Scopes["Voice"] = "voice";
757
+ OAuth2Scopes["WebhookIncoming"] = "webhook.incoming";
758
+ })(OAuth2Scopes || (exports.OAuth2Scopes = OAuth2Scopes = {}));
759
+ /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes */
760
+ var GatewayOPCodes;
761
+ (function (GatewayOPCodes) {
762
+ GatewayOPCodes[GatewayOPCodes["Dispatch"] = 0] = "Dispatch";
763
+ GatewayOPCodes[GatewayOPCodes["Heartbeat"] = 1] = "Heartbeat";
764
+ GatewayOPCodes[GatewayOPCodes["Identify"] = 2] = "Identify";
765
+ GatewayOPCodes[GatewayOPCodes["PresenceUpdate"] = 3] = "PresenceUpdate";
766
+ GatewayOPCodes[GatewayOPCodes["VoiceStateUpdate"] = 4] = "VoiceStateUpdate";
767
+ GatewayOPCodes[GatewayOPCodes["Resume"] = 6] = "Resume";
768
+ GatewayOPCodes[GatewayOPCodes["Reconnect"] = 7] = "Reconnect";
769
+ GatewayOPCodes[GatewayOPCodes["RequestGuildMembers"] = 8] = "RequestGuildMembers";
770
+ GatewayOPCodes[GatewayOPCodes["InvalidSession"] = 9] = "InvalidSession";
771
+ GatewayOPCodes[GatewayOPCodes["Hello"] = 10] = "Hello";
772
+ GatewayOPCodes[GatewayOPCodes["HeartbeatACK"] = 11] = "HeartbeatACK";
773
+ })(GatewayOPCodes || (exports.GatewayOPCodes = GatewayOPCodes = {}));
774
+ /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes */
775
+ var GatewayCloseEventCodes;
776
+ (function (GatewayCloseEventCodes) {
777
+ GatewayCloseEventCodes[GatewayCloseEventCodes["UnknownError"] = 4000] = "UnknownError";
778
+ GatewayCloseEventCodes[GatewayCloseEventCodes["UnknownOPCode"] = 4001] = "UnknownOPCode";
779
+ GatewayCloseEventCodes[GatewayCloseEventCodes["DecodeError"] = 4002] = "DecodeError";
780
+ GatewayCloseEventCodes[GatewayCloseEventCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
781
+ GatewayCloseEventCodes[GatewayCloseEventCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
782
+ GatewayCloseEventCodes[GatewayCloseEventCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
783
+ GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidSequence"] = 4007] = "InvalidSequence";
784
+ GatewayCloseEventCodes[GatewayCloseEventCodes["RateLimited"] = 4008] = "RateLimited";
785
+ GatewayCloseEventCodes[GatewayCloseEventCodes["SessionTimedOut"] = 4009] = "SessionTimedOut";
786
+ GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidShard"] = 4010] = "InvalidShard";
787
+ GatewayCloseEventCodes[GatewayCloseEventCodes["ShardingRequired"] = 4011] = "ShardingRequired";
788
+ GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidAPIVersion"] = 4012] = "InvalidAPIVersion";
789
+ GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidIntents"] = 4013] = "InvalidIntents";
790
+ GatewayCloseEventCodes[GatewayCloseEventCodes["DisallowedIntents"] = 4014] = "DisallowedIntents";
791
+ })(GatewayCloseEventCodes || (exports.GatewayCloseEventCodes = GatewayCloseEventCodes = {}));
792
+ /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-opcodes */
793
+ var VoiceOPCodes;
794
+ (function (VoiceOPCodes) {
795
+ VoiceOPCodes[VoiceOPCodes["Identify"] = 0] = "Identify";
796
+ VoiceOPCodes[VoiceOPCodes["SelectProtocol"] = 1] = "SelectProtocol";
797
+ VoiceOPCodes[VoiceOPCodes["Ready"] = 2] = "Ready";
798
+ VoiceOPCodes[VoiceOPCodes["Heartbeat"] = 3] = "Heartbeat";
799
+ VoiceOPCodes[VoiceOPCodes["SessionDescription"] = 4] = "SessionDescription";
800
+ VoiceOPCodes[VoiceOPCodes["Speaking"] = 5] = "Speaking";
801
+ VoiceOPCodes[VoiceOPCodes["HeartbeatACK"] = 6] = "HeartbeatACK";
802
+ VoiceOPCodes[VoiceOPCodes["Resume"] = 7] = "Resume";
803
+ VoiceOPCodes[VoiceOPCodes["Hello"] = 8] = "Hello";
804
+ VoiceOPCodes[VoiceOPCodes["Resumed"] = 9] = "Resumed";
805
+ VoiceOPCodes[VoiceOPCodes["ClientDisconnect"] = 13] = "ClientDisconnect";
806
+ })(VoiceOPCodes || (exports.VoiceOPCodes = VoiceOPCodes = {}));
807
+ /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes */
808
+ var VoiceCloseEventCodes;
809
+ (function (VoiceCloseEventCodes) {
810
+ VoiceCloseEventCodes[VoiceCloseEventCodes["UnknownOPCode"] = 4001] = "UnknownOPCode";
811
+ VoiceCloseEventCodes[VoiceCloseEventCodes["FailedToDecodePayload"] = 4002] = "FailedToDecodePayload";
812
+ VoiceCloseEventCodes[VoiceCloseEventCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
813
+ VoiceCloseEventCodes[VoiceCloseEventCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
814
+ VoiceCloseEventCodes[VoiceCloseEventCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
815
+ VoiceCloseEventCodes[VoiceCloseEventCodes["SessionNoLongerValid"] = 4006] = "SessionNoLongerValid";
816
+ VoiceCloseEventCodes[VoiceCloseEventCodes["SessionTimeout"] = 4009] = "SessionTimeout";
817
+ VoiceCloseEventCodes[VoiceCloseEventCodes["ServerNotFound"] = 4011] = "ServerNotFound";
818
+ VoiceCloseEventCodes[VoiceCloseEventCodes["UnknownProtocol"] = 4012] = "UnknownProtocol";
819
+ VoiceCloseEventCodes[VoiceCloseEventCodes["Disconnect"] = 4014] = "Disconnect";
820
+ VoiceCloseEventCodes[VoiceCloseEventCodes["VoiceServerCrashed"] = 4015] = "VoiceServerCrashed";
821
+ VoiceCloseEventCodes[VoiceCloseEventCodes["UnknownEncryptionMode"] = 4016] = "UnknownEncryptionMode";
822
+ })(VoiceCloseEventCodes || (exports.VoiceCloseEventCodes = VoiceCloseEventCodes = {}));
823
+ /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#http-http-response-codes */
824
+ var HTTPResponseCodes;
825
+ (function (HTTPResponseCodes) {
826
+ HTTPResponseCodes[HTTPResponseCodes["Ok"] = 200] = "Ok";
827
+ HTTPResponseCodes[HTTPResponseCodes["Created"] = 201] = "Created";
828
+ HTTPResponseCodes[HTTPResponseCodes["NoContent"] = 204] = "NoContent";
829
+ HTTPResponseCodes[HTTPResponseCodes["NotModified"] = 304] = "NotModified";
830
+ HTTPResponseCodes[HTTPResponseCodes["BadRequest"] = 400] = "BadRequest";
831
+ HTTPResponseCodes[HTTPResponseCodes["Unathorized"] = 401] = "Unathorized";
832
+ HTTPResponseCodes[HTTPResponseCodes["Forbidden"] = 403] = "Forbidden";
833
+ HTTPResponseCodes[HTTPResponseCodes["NotFound"] = 404] = "NotFound";
834
+ HTTPResponseCodes[HTTPResponseCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
835
+ HTTPResponseCodes[HTTPResponseCodes["TooManyRequests"] = 429] = "TooManyRequests";
836
+ HTTPResponseCodes[HTTPResponseCodes["GatewayUnavailable"] = 502] = "GatewayUnavailable";
837
+ HTTPResponseCodes["ServerError"] = "5xx";
838
+ })(HTTPResponseCodes || (exports.HTTPResponseCodes = HTTPResponseCodes = {}));
839
+ /** 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 = {}));
1046
+ /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-error-codes */
1047
+ var RPCErrorCodes;
1048
+ (function (RPCErrorCodes) {
1049
+ RPCErrorCodes[RPCErrorCodes["UnknownError"] = 1000] = "UnknownError";
1050
+ RPCErrorCodes[RPCErrorCodes["InvalidPayload"] = 4000] = "InvalidPayload";
1051
+ RPCErrorCodes[RPCErrorCodes["InvalidCommand"] = 4002] = "InvalidCommand";
1052
+ RPCErrorCodes[RPCErrorCodes["InvalidGuild"] = 4003] = "InvalidGuild";
1053
+ RPCErrorCodes[RPCErrorCodes["InvalidEvent"] = 4004] = "InvalidEvent";
1054
+ RPCErrorCodes[RPCErrorCodes["InvalidChannel"] = 4005] = "InvalidChannel";
1055
+ RPCErrorCodes[RPCErrorCodes["InvalidPermissions"] = 4006] = "InvalidPermissions";
1056
+ RPCErrorCodes[RPCErrorCodes["InvalidClientId"] = 4007] = "InvalidClientId";
1057
+ RPCErrorCodes[RPCErrorCodes["InvalidOrigin"] = 4008] = "InvalidOrigin";
1058
+ RPCErrorCodes[RPCErrorCodes["InvalidToken"] = 4009] = "InvalidToken";
1059
+ RPCErrorCodes[RPCErrorCodes["InvalidUser"] = 4010] = "InvalidUser";
1060
+ RPCErrorCodes[RPCErrorCodes["OAuth2Error"] = 5000] = "OAuth2Error";
1061
+ RPCErrorCodes[RPCErrorCodes["SelectChannelTimedOut"] = 5001] = "SelectChannelTimedOut";
1062
+ RPCErrorCodes[RPCErrorCodes["GetGuildTimedOut"] = 5002] = "GetGuildTimedOut";
1063
+ RPCErrorCodes[RPCErrorCodes["SelectVoiceForceRequired"] = 5003] = "SelectVoiceForceRequired";
1064
+ RPCErrorCodes[RPCErrorCodes["CaptureShortcutAlreadyListening"] = 5004] = "CaptureShortcutAlreadyListening";
1065
+ })(RPCErrorCodes || (exports.RPCErrorCodes = RPCErrorCodes = {}));
1066
+ /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-close-event-codes */
1067
+ var RPCCloseEventCodes;
1068
+ (function (RPCCloseEventCodes) {
1069
+ RPCCloseEventCodes[RPCCloseEventCodes["InvalidClientId"] = 4000] = "InvalidClientId";
1070
+ RPCCloseEventCodes[RPCCloseEventCodes["InvalidOrigin"] = 4001] = "InvalidOrigin";
1071
+ RPCCloseEventCodes[RPCCloseEventCodes["RateLimited"] = 4002] = "RateLimited";
1072
+ RPCCloseEventCodes[RPCCloseEventCodes["TokenRevoked"] = 4003] = "TokenRevoked";
1073
+ RPCCloseEventCodes[RPCCloseEventCodes["InvalidVersion"] = 4004] = "InvalidVersion";
1074
+ RPCCloseEventCodes[RPCCloseEventCodes["InvalidEncoding"] = 4005] = "InvalidEncoding";
1075
+ })(RPCCloseEventCodes || (exports.RPCCloseEventCodes = RPCCloseEventCodes = {}));
1076
+ /** https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags */
1077
+ exports.BitwisePermissionFlags = {
1078
+ CreateInstantInvite: 1n << 0n,
1079
+ KickMembers: 1n << 1n,
1080
+ BanMembers: 1n << 2n,
1081
+ Administrator: 1n << 3n,
1082
+ ManageChannels: 1n << 4n,
1083
+ ManageGuild: 1n << 5n,
1084
+ AddReactions: 1n << 6n,
1085
+ ViewAuditLog: 1n << 7n,
1086
+ PrioritySpeaker: 1n << 8n,
1087
+ Stream: 1n << 9n,
1088
+ ViewChannel: 1n << 10n,
1089
+ SendMessages: 1n << 11n,
1090
+ SendTTSMessages: 1n << 12n,
1091
+ ManageMessages: 1n << 13n,
1092
+ EmbedLinks: 1n << 14n,
1093
+ AttachFiles: 1n << 15n,
1094
+ ReadMessageHistory: 1n << 16n,
1095
+ MentionEveryone: 1n << 17n,
1096
+ UseExternalEmojis: 1n << 18n,
1097
+ ViewGuildInsights: 1n << 19n,
1098
+ Connect: 1n << 20n,
1099
+ Speak: 1n << 21n,
1100
+ MuteMembers: 1n << 22n,
1101
+ DeafenMembers: 1n << 23n,
1102
+ MoveMembers: 1n << 24n,
1103
+ UseVAD: 1n << 25n,
1104
+ ChangeNickname: 1n << 26n,
1105
+ ManageNicknames: 1n << 27n,
1106
+ ManageRoles: 1n << 28n,
1107
+ ManageWebhooks: 1n << 29n,
1108
+ ManageGuildExpressions: 1n << 30n,
1109
+ UseApplicationCommands: 1n << 31n,
1110
+ RequestToSpeak: 1n << 32n,
1111
+ ManageEvents: 1n << 33n,
1112
+ ManageThreads: 1n << 34n,
1113
+ CreatePublicThreads: 1n << 35n,
1114
+ CreatePrivateThreads: 1n << 36n,
1115
+ UseExternalStickers: 1n << 37n,
1116
+ SendMessagesInThreads: 1n << 38n,
1117
+ UseEmbeddedActivities: 1n << 39n,
1118
+ ModerateMembers: 1n << 40n,
1119
+ ViewCreatorMonetizationAnalytics: 1n << 41n,
1120
+ UseSoundboard: 1n << 42n,
1121
+ CreateGuildExpressions: 1n << 43n,
1122
+ CreateEvents: 1n << 44n,
1123
+ UseExternalSounds: 1n << 45n,
1124
+ SendVoiceMessages: 1n << 46n,
1125
+ };
1126
+ /** https://discord.com/developers/docs/topics/permissions#role-object-role-flags */
1127
+ var RoleFlags;
1128
+ (function (RoleFlags) {
1129
+ RoleFlags[RoleFlags["InPrompt"] = 1] = "InPrompt";
1130
+ })(RoleFlags || (exports.RoleFlags = RoleFlags = {}));
1131
+ /** https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types */
1132
+ var TeamMemberRoleTypes;
1133
+ (function (TeamMemberRoleTypes) {
1134
+ TeamMemberRoleTypes["Owner"] = "";
1135
+ TeamMemberRoleTypes["Admin"] = "admin";
1136
+ TeamMemberRoleTypes["Developer"] = "developer";
1137
+ TeamMemberRoleTypes["ReadOnly"] = "read_only";
1138
+ })(TeamMemberRoleTypes || (exports.TeamMemberRoleTypes = TeamMemberRoleTypes = {}));
1139
+ /** https://discord.com/developers/docs/topics/teams#data-models-membership-state-enum */
1140
+ var MembershipState;
1141
+ (function (MembershipState) {
1142
+ MembershipState[MembershipState["Invited"] = 1] = "Invited";
1143
+ MembershipState[MembershipState["Accepted"] = 2] = "Accepted";
1144
+ })(MembershipState || (exports.MembershipState = MembershipState = {}));
1145
+ /** https://discord.com/developers/docs/monetization/skus#sku-object-sku-types */
1146
+ var SKUTypes;
1147
+ (function (SKUTypes) {
1148
+ SKUTypes[SKUTypes["Subscription"] = 5] = "Subscription";
1149
+ SKUTypes[SKUTypes["SubscriptionGroup"] = 6] = "SubscriptionGroup";
1150
+ })(SKUTypes || (exports.SKUTypes = SKUTypes = {}));
1151
+ /** https://discord.com/developers/docs/monetization/skus#sku-object-sku-flags */
1152
+ var SKUFlags;
1153
+ (function (SKUFlags) {
1154
+ SKUFlags[SKUFlags["Available"] = 4] = "Available";
1155
+ SKUFlags[SKUFlags["GuildSubscription"] = 128] = "GuildSubscription";
1156
+ SKUFlags[SKUFlags["UserSubscription"] = 256] = "UserSubscription";
1157
+ })(SKUFlags || (exports.SKUFlags = SKUFlags = {}));
1158
+ /** https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-types */
1159
+ var EntitlementTypes;
1160
+ (function (EntitlementTypes) {
1161
+ EntitlementTypes[EntitlementTypes["ApplicationSubscription"] = 8] = "ApplicationSubscription";
1162
+ })(EntitlementTypes || (exports.EntitlementTypes = EntitlementTypes = {}));
1163
+ //# sourceMappingURL=constants.js.map