disgroove 1.3.1-dev.8cd17af → 1.3.1-dev.99aa77b

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 (203) hide show
  1. package/dist/package.json +30 -0
  2. package/package.json +30 -30
  3. package/dist/Client.d.ts +0 -229
  4. package/dist/Client.js +0 -251
  5. package/dist/Client.js.map +0 -1
  6. package/dist/constants.d.ts +0 -1083
  7. package/dist/constants.js +0 -1162
  8. package/dist/constants.js.map +0 -1
  9. package/dist/gateway/Shard.d.ts +0 -25
  10. package/dist/gateway/Shard.js +0 -557
  11. package/dist/gateway/Shard.js.map +0 -1
  12. package/dist/gateway/ShardsManager.d.ts +0 -5
  13. package/dist/gateway/ShardsManager.js +0 -13
  14. package/dist/gateway/ShardsManager.js.map +0 -1
  15. package/dist/gateway/index.d.ts +0 -2
  16. package/dist/gateway/index.js +0 -19
  17. package/dist/gateway/index.js.map +0 -1
  18. package/dist/index.d.ts +0 -7
  19. package/dist/index.js +0 -24
  20. package/dist/index.js.map +0 -1
  21. package/dist/rest/CDN.d.ts +0 -21
  22. package/dist/rest/CDN.js +0 -46
  23. package/dist/rest/CDN.js.map +0 -1
  24. package/dist/rest/Endpoints.d.ts +0 -94
  25. package/dist/rest/Endpoints.js +0 -211
  26. package/dist/rest/Endpoints.js.map +0 -1
  27. package/dist/rest/REST.d.ts +0 -22
  28. package/dist/rest/REST.js +0 -35
  29. package/dist/rest/REST.js.map +0 -1
  30. package/dist/rest/RequestsManager.d.ts +0 -17
  31. package/dist/rest/RequestsManager.js +0 -101
  32. package/dist/rest/RequestsManager.js.map +0 -1
  33. package/dist/rest/index.d.ts +0 -4
  34. package/dist/rest/index.js +0 -34
  35. package/dist/rest/index.js.map +0 -1
  36. package/dist/structures/Application.d.ts +0 -348
  37. package/dist/structures/Application.js +0 -328
  38. package/dist/structures/Application.js.map +0 -1
  39. package/dist/structures/ApplicationCommand.d.ts +0 -74
  40. package/dist/structures/ApplicationCommand.js +0 -127
  41. package/dist/structures/ApplicationCommand.js.map +0 -1
  42. package/dist/structures/AuditLog.d.ts +0 -20
  43. package/dist/structures/AuditLog.js +0 -76
  44. package/dist/structures/AuditLog.js.map +0 -1
  45. package/dist/structures/AutoModerationRule.d.ts +0 -34
  46. package/dist/structures/AutoModerationRule.js +0 -96
  47. package/dist/structures/AutoModerationRule.js.map +0 -1
  48. package/dist/structures/Base.d.ts +0 -17
  49. package/dist/structures/Base.js +0 -31
  50. package/dist/structures/Base.js.map +0 -1
  51. package/dist/structures/Channel.d.ts +0 -252
  52. package/dist/structures/Channel.js +0 -590
  53. package/dist/structures/Channel.js.map +0 -1
  54. package/dist/structures/ClientApplication.d.ts +0 -324
  55. package/dist/structures/ClientApplication.js +0 -241
  56. package/dist/structures/ClientApplication.js.map +0 -1
  57. package/dist/structures/Emoji.d.ts +0 -28
  58. package/dist/structures/Emoji.js +0 -79
  59. package/dist/structures/Emoji.js.map +0 -1
  60. package/dist/structures/Entitlement.d.ts +0 -24
  61. package/dist/structures/Entitlement.js +0 -68
  62. package/dist/structures/Entitlement.js.map +0 -1
  63. package/dist/structures/Guild.d.ts +0 -549
  64. package/dist/structures/Guild.js +0 -1121
  65. package/dist/structures/Guild.js.map +0 -1
  66. package/dist/structures/GuildMember.d.ts +0 -50
  67. package/dist/structures/GuildMember.js +0 -149
  68. package/dist/structures/GuildMember.js.map +0 -1
  69. package/dist/structures/GuildScheduledEvent.d.ts +0 -49
  70. package/dist/structures/GuildScheduledEvent.js +0 -118
  71. package/dist/structures/GuildScheduledEvent.js.map +0 -1
  72. package/dist/structures/GuildTemplate.d.ts +0 -32
  73. package/dist/structures/GuildTemplate.js +0 -76
  74. package/dist/structures/GuildTemplate.js.map +0 -1
  75. package/dist/structures/Integration.d.ts +0 -30
  76. package/dist/structures/Integration.js +0 -102
  77. package/dist/structures/Integration.js.map +0 -1
  78. package/dist/structures/Interaction.d.ts +0 -76
  79. package/dist/structures/Interaction.js +0 -345
  80. package/dist/structures/Interaction.js.map +0 -1
  81. package/dist/structures/Invite.d.ts +0 -28
  82. package/dist/structures/Invite.js +0 -86
  83. package/dist/structures/Invite.js.map +0 -1
  84. package/dist/structures/Message.d.ts +0 -84
  85. package/dist/structures/Message.js +0 -300
  86. package/dist/structures/Message.js.map +0 -1
  87. package/dist/structures/PartialApplication.d.ts +0 -324
  88. package/dist/structures/PartialApplication.js +0 -241
  89. package/dist/structures/PartialApplication.js.map +0 -1
  90. package/dist/structures/Role.d.ts +0 -37
  91. package/dist/structures/Role.js +0 -90
  92. package/dist/structures/Role.js.map +0 -1
  93. package/dist/structures/SKU.d.ts +0 -23
  94. package/dist/structures/SKU.js +0 -63
  95. package/dist/structures/SKU.js.map +0 -1
  96. package/dist/structures/StageInstance.d.ts +0 -24
  97. package/dist/structures/StageInstance.js +0 -57
  98. package/dist/structures/StageInstance.js.map +0 -1
  99. package/dist/structures/Sticker.d.ts +0 -31
  100. package/dist/structures/Sticker.js +0 -86
  101. package/dist/structures/Sticker.js.map +0 -1
  102. package/dist/structures/Team.d.ts +0 -14
  103. package/dist/structures/Team.js +0 -39
  104. package/dist/structures/Team.js.map +0 -1
  105. package/dist/structures/TestEntitlement.d.ts +0 -23
  106. package/dist/structures/TestEntitlement.js +0 -61
  107. package/dist/structures/TestEntitlement.js.map +0 -1
  108. package/dist/structures/UnavailableGuild.d.ts +0 -11
  109. package/dist/structures/UnavailableGuild.js +0 -25
  110. package/dist/structures/UnavailableGuild.js.map +0 -1
  111. package/dist/structures/User.d.ts +0 -63
  112. package/dist/structures/User.js +0 -177
  113. package/dist/structures/User.js.map +0 -1
  114. package/dist/structures/VoiceState.d.ts +0 -26
  115. package/dist/structures/VoiceState.js +0 -70
  116. package/dist/structures/VoiceState.js.map +0 -1
  117. package/dist/structures/Webhook.d.ts +0 -84
  118. package/dist/structures/Webhook.js +0 -239
  119. package/dist/structures/Webhook.js.map +0 -1
  120. package/dist/structures/index.d.ts +0 -27
  121. package/dist/structures/index.js +0 -44
  122. package/dist/structures/index.js.map +0 -1
  123. package/dist/types/application-command.d.ts +0 -102
  124. package/dist/types/application-command.js +0 -3
  125. package/dist/types/application-command.js.map +0 -1
  126. package/dist/types/application-role-connection-metadata.d.ts +0 -18
  127. package/dist/types/application-role-connection-metadata.js +0 -3
  128. package/dist/types/application-role-connection-metadata.js.map +0 -1
  129. package/dist/types/application.d.ts +0 -66
  130. package/dist/types/application.js +0 -3
  131. package/dist/types/application.js.map +0 -1
  132. package/dist/types/audit-log.d.ts +0 -82
  133. package/dist/types/audit-log.js +0 -3
  134. package/dist/types/audit-log.js.map +0 -1
  135. package/dist/types/auto-moderation.d.ts +0 -65
  136. package/dist/types/auto-moderation.js +0 -3
  137. package/dist/types/auto-moderation.js.map +0 -1
  138. package/dist/types/channel.d.ts +0 -456
  139. package/dist/types/channel.js +0 -3
  140. package/dist/types/channel.js.map +0 -1
  141. package/dist/types/emoji.d.ts +0 -22
  142. package/dist/types/emoji.js +0 -3
  143. package/dist/types/emoji.js.map +0 -1
  144. package/dist/types/entitlements.d.ts +0 -32
  145. package/dist/types/entitlements.js +0 -3
  146. package/dist/types/entitlements.js.map +0 -1
  147. package/dist/types/gateway-events.d.ts +0 -805
  148. package/dist/types/gateway-events.js +0 -3
  149. package/dist/types/gateway-events.js.map +0 -1
  150. package/dist/types/guild-scheduled-event.d.ts +0 -57
  151. package/dist/types/guild-scheduled-event.js +0 -3
  152. package/dist/types/guild-scheduled-event.js.map +0 -1
  153. package/dist/types/guild-template.d.ts +0 -28
  154. package/dist/types/guild-template.js +0 -3
  155. package/dist/types/guild-template.js.map +0 -1
  156. package/dist/types/guild.d.ts +0 -333
  157. package/dist/types/guild.js +0 -3
  158. package/dist/types/guild.js.map +0 -1
  159. package/dist/types/index.d.ts +0 -23
  160. package/dist/types/index.js +0 -40
  161. package/dist/types/index.js.map +0 -1
  162. package/dist/types/interaction.d.ts +0 -170
  163. package/dist/types/interaction.js +0 -3
  164. package/dist/types/interaction.js.map +0 -1
  165. package/dist/types/invite.d.ts +0 -59
  166. package/dist/types/invite.js +0 -3
  167. package/dist/types/invite.js.map +0 -1
  168. package/dist/types/message-components.d.ts +0 -100
  169. package/dist/types/message-components.js +0 -3
  170. package/dist/types/message-components.js.map +0 -1
  171. package/dist/types/role.d.ts +0 -47
  172. package/dist/types/role.js +0 -3
  173. package/dist/types/role.js.map +0 -1
  174. package/dist/types/sku.d.ts +0 -30
  175. package/dist/types/sku.js +0 -3
  176. package/dist/types/sku.js.map +0 -1
  177. package/dist/types/stage-instance.d.ts +0 -20
  178. package/dist/types/stage-instance.js +0 -3
  179. package/dist/types/stage-instance.js.map +0 -1
  180. package/dist/types/sticker.d.ts +0 -61
  181. package/dist/types/sticker.js +0 -3
  182. package/dist/types/sticker.js.map +0 -1
  183. package/dist/types/team.d.ts +0 -30
  184. package/dist/types/team.js +0 -3
  185. package/dist/types/team.js.map +0 -1
  186. package/dist/types/user.d.ts +0 -77
  187. package/dist/types/user.js +0 -3
  188. package/dist/types/user.js.map +0 -1
  189. package/dist/types/voice.d.ts +0 -47
  190. package/dist/types/voice.js +0 -3
  191. package/dist/types/voice.js.map +0 -1
  192. package/dist/types/webhook.d.ts +0 -31
  193. package/dist/types/webhook.js +0 -3
  194. package/dist/types/webhook.js.map +0 -1
  195. package/dist/utils/Util.d.ts +0 -13
  196. package/dist/utils/Util.js +0 -513
  197. package/dist/utils/Util.js.map +0 -1
  198. package/dist/utils/errors.d.ts +0 -12
  199. package/dist/utils/errors.js +0 -25
  200. package/dist/utils/errors.js.map +0 -1
  201. package/dist/utils/index.d.ts +0 -2
  202. package/dist/utils/index.js +0 -19
  203. package/dist/utils/index.js.map +0 -1
package/dist/constants.js DELETED
@@ -1,1162 +0,0 @@
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["French"] = "fr";
25
- Locale["Croatian"] = "hr";
26
- Locale["Italian"] = "it";
27
- Locale["Lithuanian"] = "lt";
28
- Locale["Hungarian"] = "hu";
29
- Locale["Dutch"] = "nl";
30
- Locale["Norwegian"] = "no";
31
- Locale["Polish"] = "pl";
32
- Locale["PortugueseBR"] = "pt-BR";
33
- Locale["Romanian"] = "ro";
34
- Locale["Finnish"] = "fi";
35
- Locale["Swedish"] = "sv-SE";
36
- Locale["Vietnamese"] = "vi";
37
- Locale["Turkish"] = "tr";
38
- Locale["Czech"] = "cs";
39
- Locale["Greek"] = "el";
40
- Locale["Bulgarian"] = "bg";
41
- Locale["Russian"] = "ru";
42
- Locale["Ukrainian"] = "uk";
43
- Locale["Hindi"] = "hi";
44
- Locale["Thai"] = "th";
45
- Locale["ChineseCN"] = "zh-CN";
46
- Locale["Japanese"] = "ja";
47
- Locale["ChineseTW"] = "zh-TW";
48
- Locale["Korean"] = "ko";
49
- })(Locale || (exports.Locale = Locale = {}));
50
- /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types */
51
- var ApplicationCommandTypes;
52
- (function (ApplicationCommandTypes) {
53
- ApplicationCommandTypes[ApplicationCommandTypes["ChatInput"] = 1] = "ChatInput";
54
- ApplicationCommandTypes[ApplicationCommandTypes["User"] = 2] = "User";
55
- ApplicationCommandTypes[ApplicationCommandTypes["Message"] = 3] = "Message";
56
- })(ApplicationCommandTypes || (exports.ApplicationCommandTypes = ApplicationCommandTypes = {}));
57
- /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type */
58
- var ApplicationCommandOptionType;
59
- (function (ApplicationCommandOptionType) {
60
- ApplicationCommandOptionType[ApplicationCommandOptionType["SubCommand"] = 1] = "SubCommand";
61
- ApplicationCommandOptionType[ApplicationCommandOptionType["SubCommandGroup"] = 2] = "SubCommandGroup";
62
- ApplicationCommandOptionType[ApplicationCommandOptionType["String"] = 3] = "String";
63
- ApplicationCommandOptionType[ApplicationCommandOptionType["Integer"] = 4] = "Integer";
64
- ApplicationCommandOptionType[ApplicationCommandOptionType["Boolean"] = 5] = "Boolean";
65
- ApplicationCommandOptionType[ApplicationCommandOptionType["User"] = 6] = "User";
66
- ApplicationCommandOptionType[ApplicationCommandOptionType["Channel"] = 7] = "Channel";
67
- ApplicationCommandOptionType[ApplicationCommandOptionType["Role"] = 8] = "Role";
68
- ApplicationCommandOptionType[ApplicationCommandOptionType["Mentionable"] = 9] = "Mentionable";
69
- ApplicationCommandOptionType[ApplicationCommandOptionType["Number"] = 10] = "Number";
70
- ApplicationCommandOptionType[ApplicationCommandOptionType["Attachment"] = 11] = "Attachment";
71
- })(ApplicationCommandOptionType || (exports.ApplicationCommandOptionType = ApplicationCommandOptionType = {}));
72
- /** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permission-type */
73
- var ApplicationCommandPermissionType;
74
- (function (ApplicationCommandPermissionType) {
75
- ApplicationCommandPermissionType[ApplicationCommandPermissionType["Role"] = 1] = "Role";
76
- ApplicationCommandPermissionType[ApplicationCommandPermissionType["User"] = 2] = "User";
77
- ApplicationCommandPermissionType[ApplicationCommandPermissionType["Channel"] = 3] = "Channel";
78
- })(ApplicationCommandPermissionType || (exports.ApplicationCommandPermissionType = ApplicationCommandPermissionType = {}));
79
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-type */
80
- var InteractionType;
81
- (function (InteractionType) {
82
- InteractionType[InteractionType["Ping"] = 1] = "Ping";
83
- InteractionType[InteractionType["ApplicationCommand"] = 2] = "ApplicationCommand";
84
- InteractionType[InteractionType["MessageComponent"] = 3] = "MessageComponent";
85
- InteractionType[InteractionType["ApplicationCommandAutocomplete"] = 4] = "ApplicationCommandAutocomplete";
86
- InteractionType[InteractionType["ModalSubmit"] = 5] = "ModalSubmit";
87
- })(InteractionType || (exports.InteractionType = InteractionType = {}));
88
- /** https://discord.com/developers/docs/interactions/message-components#component-object-component-types */
89
- var ComponentTypes;
90
- (function (ComponentTypes) {
91
- ComponentTypes[ComponentTypes["ActionRow"] = 1] = "ActionRow";
92
- ComponentTypes[ComponentTypes["Button"] = 2] = "Button";
93
- ComponentTypes[ComponentTypes["StringSelect"] = 3] = "StringSelect";
94
- ComponentTypes[ComponentTypes["TextInput"] = 4] = "TextInput";
95
- ComponentTypes[ComponentTypes["UserSelect"] = 5] = "UserSelect";
96
- ComponentTypes[ComponentTypes["RoleSelect"] = 6] = "RoleSelect";
97
- ComponentTypes[ComponentTypes["MentionableSelect"] = 7] = "MentionableSelect";
98
- ComponentTypes[ComponentTypes["ChannelSelect"] = 8] = "ChannelSelect";
99
- })(ComponentTypes || (exports.ComponentTypes = ComponentTypes = {}));
100
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-type */
101
- var InteractionCallbackType;
102
- (function (InteractionCallbackType) {
103
- InteractionCallbackType[InteractionCallbackType["Pong"] = 1] = "Pong";
104
- InteractionCallbackType[InteractionCallbackType["ChannelMessageWithSource"] = 4] = "ChannelMessageWithSource";
105
- InteractionCallbackType[InteractionCallbackType["DeferredChannelMessageWithSource"] = 5] = "DeferredChannelMessageWithSource";
106
- InteractionCallbackType[InteractionCallbackType["DeferredUpdateMessage"] = 6] = "DeferredUpdateMessage";
107
- InteractionCallbackType[InteractionCallbackType["UpdateMessage"] = 7] = "UpdateMessage";
108
- InteractionCallbackType[InteractionCallbackType["ApplicationCommandAutocompleteResult"] = 8] = "ApplicationCommandAutocompleteResult";
109
- InteractionCallbackType[InteractionCallbackType["Modal"] = 9] = "Modal";
110
- InteractionCallbackType[InteractionCallbackType["PremiumRequired"] = 10] = "PremiumRequired";
111
- })(InteractionCallbackType || (exports.InteractionCallbackType = InteractionCallbackType = {}));
112
- /** https://discord.com/developers/docs/interactions/message-components#button-object-button-styles */
113
- var ButtonStyles;
114
- (function (ButtonStyles) {
115
- ButtonStyles[ButtonStyles["Primary"] = 1] = "Primary";
116
- ButtonStyles[ButtonStyles["Secondary"] = 2] = "Secondary";
117
- ButtonStyles[ButtonStyles["Success"] = 3] = "Success";
118
- ButtonStyles[ButtonStyles["Danger"] = 4] = "Danger";
119
- ButtonStyles[ButtonStyles["Link"] = 5] = "Link";
120
- })(ButtonStyles || (exports.ButtonStyles = ButtonStyles = {}));
121
- /** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-styles */
122
- var TextInputStyles;
123
- (function (TextInputStyles) {
124
- TextInputStyles[TextInputStyles["Short"] = 1] = "Short";
125
- TextInputStyles[TextInputStyles["Paragraph"] = 2] = "Paragraph";
126
- })(TextInputStyles || (exports.TextInputStyles = TextInputStyles = {}));
127
- /** https://discord.com/developers/docs/resources/application#application-object-application-flags */
128
- var ApplicationFlags;
129
- (function (ApplicationFlags) {
130
- ApplicationFlags[ApplicationFlags["ApplicationAutoModerationRuleCreateBadge"] = 64] = "ApplicationAutoModerationRuleCreateBadge";
131
- ApplicationFlags[ApplicationFlags["GatewayPresence"] = 4096] = "GatewayPresence";
132
- ApplicationFlags[ApplicationFlags["GatewayPresenceLimited"] = 8192] = "GatewayPresenceLimited";
133
- ApplicationFlags[ApplicationFlags["GatewayGuildMembers"] = 16384] = "GatewayGuildMembers";
134
- ApplicationFlags[ApplicationFlags["GatewayGuildMembersLimited"] = 32768] = "GatewayGuildMembersLimited";
135
- ApplicationFlags[ApplicationFlags["VerificationPendingGuildLimit"] = 65536] = "VerificationPendingGuildLimit";
136
- ApplicationFlags[ApplicationFlags["Embedded"] = 131072] = "Embedded";
137
- ApplicationFlags[ApplicationFlags["GatewayMessageContent"] = 262144] = "GatewayMessageContent";
138
- ApplicationFlags[ApplicationFlags["GatewayMessageContentLimited"] = 524288] = "GatewayMessageContentLimited";
139
- ApplicationFlags[ApplicationFlags["ApplicationCommandBadge"] = 8388608] = "ApplicationCommandBadge";
140
- })(ApplicationFlags || (exports.ApplicationFlags = ApplicationFlags = {}));
141
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type */
142
- var ApplicationRoleConnectionMetadataType;
143
- (function (ApplicationRoleConnectionMetadataType) {
144
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerLessThanOrEqual"] = 1] = "IntegerLessThanOrEqual";
145
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerGreaterThanOrEqual"] = 2] = "IntegerGreaterThanOrEqual";
146
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerEqual"] = 3] = "IntegerEqual";
147
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["IntegerNotEqual"] = 4] = "IntegerNotEqual";
148
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DatetimeLessThanOrEqual"] = 5] = "DatetimeLessThanOrEqual";
149
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DatetimeGreaterThanOrEqual"] = 6] = "DatetimeGreaterThanOrEqual";
150
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BooleanEqual"] = 7] = "BooleanEqual";
151
- ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BooleanNotEqual"] = 8] = "BooleanNotEqual";
152
- })(ApplicationRoleConnectionMetadataType || (exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType = {}));
153
- /** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-events */
154
- var AuditLogEvents;
155
- (function (AuditLogEvents) {
156
- AuditLogEvents[AuditLogEvents["GuildUpdate"] = 1] = "GuildUpdate";
157
- AuditLogEvents[AuditLogEvents["ChannelCreate"] = 10] = "ChannelCreate";
158
- AuditLogEvents[AuditLogEvents["ChannelUpdate"] = 11] = "ChannelUpdate";
159
- AuditLogEvents[AuditLogEvents["ChannelDelete"] = 12] = "ChannelDelete";
160
- AuditLogEvents[AuditLogEvents["ChannelOverwriteCreate"] = 13] = "ChannelOverwriteCreate";
161
- AuditLogEvents[AuditLogEvents["ChannelOverwriteUpdate"] = 14] = "ChannelOverwriteUpdate";
162
- AuditLogEvents[AuditLogEvents["ChannelOverwriteDelete"] = 15] = "ChannelOverwriteDelete";
163
- AuditLogEvents[AuditLogEvents["MemberKick"] = 20] = "MemberKick";
164
- AuditLogEvents[AuditLogEvents["MemberPrune"] = 21] = "MemberPrune";
165
- AuditLogEvents[AuditLogEvents["MemberBanAdd"] = 22] = "MemberBanAdd";
166
- AuditLogEvents[AuditLogEvents["MemberBanRemove"] = 23] = "MemberBanRemove";
167
- AuditLogEvents[AuditLogEvents["MemberUpdate"] = 24] = "MemberUpdate";
168
- AuditLogEvents[AuditLogEvents["MemberRoleUpdate"] = 25] = "MemberRoleUpdate";
169
- AuditLogEvents[AuditLogEvents["MemberMove"] = 26] = "MemberMove";
170
- AuditLogEvents[AuditLogEvents["MemberDisconnect"] = 27] = "MemberDisconnect";
171
- AuditLogEvents[AuditLogEvents["BotAdd"] = 28] = "BotAdd";
172
- AuditLogEvents[AuditLogEvents["RoleCreate"] = 30] = "RoleCreate";
173
- AuditLogEvents[AuditLogEvents["RoleUpdate"] = 31] = "RoleUpdate";
174
- AuditLogEvents[AuditLogEvents["RoleDelete"] = 32] = "RoleDelete";
175
- AuditLogEvents[AuditLogEvents["InviteCreate"] = 40] = "InviteCreate";
176
- AuditLogEvents[AuditLogEvents["InviteUpdate"] = 41] = "InviteUpdate";
177
- AuditLogEvents[AuditLogEvents["InviteDelete"] = 42] = "InviteDelete";
178
- AuditLogEvents[AuditLogEvents["WebhookCreate"] = 50] = "WebhookCreate";
179
- AuditLogEvents[AuditLogEvents["WebhookUpdate"] = 51] = "WebhookUpdate";
180
- AuditLogEvents[AuditLogEvents["WebhookDelete"] = 52] = "WebhookDelete";
181
- AuditLogEvents[AuditLogEvents["EmojiCreate"] = 60] = "EmojiCreate";
182
- AuditLogEvents[AuditLogEvents["EmojiUpdate"] = 61] = "EmojiUpdate";
183
- AuditLogEvents[AuditLogEvents["EmojiDelete"] = 62] = "EmojiDelete";
184
- AuditLogEvents[AuditLogEvents["MessageDelete"] = 72] = "MessageDelete";
185
- AuditLogEvents[AuditLogEvents["MessageBulkDelete"] = 73] = "MessageBulkDelete";
186
- AuditLogEvents[AuditLogEvents["MessagePin"] = 74] = "MessagePin";
187
- AuditLogEvents[AuditLogEvents["MessageUnpin"] = 75] = "MessageUnpin";
188
- AuditLogEvents[AuditLogEvents["IntegrationCreate"] = 80] = "IntegrationCreate";
189
- AuditLogEvents[AuditLogEvents["IntegrationUpdate"] = 81] = "IntegrationUpdate";
190
- AuditLogEvents[AuditLogEvents["IntegrationDelete"] = 82] = "IntegrationDelete";
191
- AuditLogEvents[AuditLogEvents["StageInstanceCreate"] = 83] = "StageInstanceCreate";
192
- AuditLogEvents[AuditLogEvents["StageInstanceUpdate"] = 84] = "StageInstanceUpdate";
193
- AuditLogEvents[AuditLogEvents["StageInstanceDelete"] = 85] = "StageInstanceDelete";
194
- AuditLogEvents[AuditLogEvents["StickerCreate"] = 90] = "StickerCreate";
195
- AuditLogEvents[AuditLogEvents["StickerUpdate"] = 91] = "StickerUpdate";
196
- AuditLogEvents[AuditLogEvents["StickerDelete"] = 92] = "StickerDelete";
197
- AuditLogEvents[AuditLogEvents["GuildScheduledEventCreate"] = 100] = "GuildScheduledEventCreate";
198
- AuditLogEvents[AuditLogEvents["GuildScheduledEventUpdate"] = 101] = "GuildScheduledEventUpdate";
199
- AuditLogEvents[AuditLogEvents["GuildScheduledEventDelete"] = 102] = "GuildScheduledEventDelete";
200
- AuditLogEvents[AuditLogEvents["ThreadCreate"] = 110] = "ThreadCreate";
201
- AuditLogEvents[AuditLogEvents["ThreadUpdate"] = 111] = "ThreadUpdate";
202
- AuditLogEvents[AuditLogEvents["ThreadDelete"] = 112] = "ThreadDelete";
203
- AuditLogEvents[AuditLogEvents["ApplicationCommandPermissionUpdate"] = 121] = "ApplicationCommandPermissionUpdate";
204
- AuditLogEvents[AuditLogEvents["AutoModerationRuleCreate"] = 140] = "AutoModerationRuleCreate";
205
- AuditLogEvents[AuditLogEvents["AutoModerationRuleUpdate"] = 141] = "AutoModerationRuleUpdate";
206
- AuditLogEvents[AuditLogEvents["AutoModerationRuleDelete"] = 142] = "AutoModerationRuleDelete";
207
- AuditLogEvents[AuditLogEvents["AutoModerationBlockMessage"] = 143] = "AutoModerationBlockMessage";
208
- AuditLogEvents[AuditLogEvents["AutoModerationFlagToChannel"] = 144] = "AutoModerationFlagToChannel";
209
- AuditLogEvents[AuditLogEvents["AutoModerationUserCommunicationDisabled"] = 145] = "AutoModerationUserCommunicationDisabled";
210
- AuditLogEvents[AuditLogEvents["CreatorMonetizationRequestCreated"] = 150] = "CreatorMonetizationRequestCreated";
211
- AuditLogEvents[AuditLogEvents["CreatorMonetizationTermsAccepted"] = 151] = "CreatorMonetizationTermsAccepted";
212
- })(AuditLogEvents || (exports.AuditLogEvents = AuditLogEvents = {}));
213
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types */
214
- var TriggerTypes;
215
- (function (TriggerTypes) {
216
- TriggerTypes[TriggerTypes["Keyword"] = 1] = "Keyword";
217
- TriggerTypes[TriggerTypes["Spam"] = 3] = "Spam";
218
- TriggerTypes[TriggerTypes["KeywordPreset"] = 4] = "KeywordPreset";
219
- TriggerTypes[TriggerTypes["MentionSpam"] = 5] = "MentionSpam";
220
- })(TriggerTypes || (exports.TriggerTypes = TriggerTypes = {}));
221
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types */
222
- var KeywordPresetTypes;
223
- (function (KeywordPresetTypes) {
224
- KeywordPresetTypes[KeywordPresetTypes["Profanity"] = 1] = "Profanity";
225
- KeywordPresetTypes[KeywordPresetTypes["SexualContent"] = 2] = "SexualContent";
226
- KeywordPresetTypes[KeywordPresetTypes["Slurs"] = 3] = "Slurs";
227
- })(KeywordPresetTypes || (exports.KeywordPresetTypes = KeywordPresetTypes = {}));
228
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-event-types */
229
- var EventTypes;
230
- (function (EventTypes) {
231
- EventTypes[EventTypes["MessageSend"] = 1] = "MessageSend";
232
- })(EventTypes || (exports.EventTypes = EventTypes = {}));
233
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-types */
234
- var ActionTypes;
235
- (function (ActionTypes) {
236
- ActionTypes[ActionTypes["BlockMessage"] = 1] = "BlockMessage";
237
- ActionTypes[ActionTypes["SendAlertMessage"] = 2] = "SendAlertMessage";
238
- ActionTypes[ActionTypes["Timeout"] = 3] = "Timeout";
239
- })(ActionTypes || (exports.ActionTypes = ActionTypes = {}));
240
- /** https://discord.com/developers/docs/resources/channel#channel-object-channel-types */
241
- var ChannelTypes;
242
- (function (ChannelTypes) {
243
- ChannelTypes[ChannelTypes["GuildText"] = 0] = "GuildText";
244
- ChannelTypes[ChannelTypes["DM"] = 1] = "DM";
245
- ChannelTypes[ChannelTypes["GuildVoice"] = 2] = "GuildVoice";
246
- ChannelTypes[ChannelTypes["GroupDM"] = 3] = "GroupDM";
247
- ChannelTypes[ChannelTypes["GuildCategory"] = 4] = "GuildCategory";
248
- ChannelTypes[ChannelTypes["GuildAnnouncement"] = 5] = "GuildAnnouncement";
249
- ChannelTypes[ChannelTypes["AnnouncementThread"] = 10] = "AnnouncementThread";
250
- ChannelTypes[ChannelTypes["PublicThread"] = 11] = "PublicThread";
251
- ChannelTypes[ChannelTypes["PrivateThread"] = 12] = "PrivateThread";
252
- ChannelTypes[ChannelTypes["GuildStageVoice"] = 13] = "GuildStageVoice";
253
- ChannelTypes[ChannelTypes["GuildDirectory"] = 14] = "GuildDirectory";
254
- ChannelTypes[ChannelTypes["GuildForum"] = 15] = "GuildForum";
255
- ChannelTypes[ChannelTypes["GuildMedia"] = 16] = "GuildMedia";
256
- })(ChannelTypes || (exports.ChannelTypes = ChannelTypes = {}));
257
- /** https://discord.com/developers/docs/resources/channel#channel-object-video-quality-modes */
258
- var VideoQualityModes;
259
- (function (VideoQualityModes) {
260
- VideoQualityModes[VideoQualityModes["Auto"] = 1] = "Auto";
261
- VideoQualityModes[VideoQualityModes["Full"] = 2] = "Full";
262
- })(VideoQualityModes || (exports.VideoQualityModes = VideoQualityModes = {}));
263
- /** https://discord.com/developers/docs/resources/channel#channel-object-channel-flags */
264
- var ChannelFlags;
265
- (function (ChannelFlags) {
266
- ChannelFlags[ChannelFlags["Pinned"] = 2] = "Pinned";
267
- ChannelFlags[ChannelFlags["RequiredTag"] = 16] = "RequiredTag";
268
- ChannelFlags[ChannelFlags["HideMediaDownloadOptions"] = 32768] = "HideMediaDownloadOptions";
269
- })(ChannelFlags || (exports.ChannelFlags = ChannelFlags = {}));
270
- /** https://discord.com/developers/docs/resources/channel#channel-object-sort-order-types */
271
- var SortOrderTypes;
272
- (function (SortOrderTypes) {
273
- SortOrderTypes[SortOrderTypes["LatestActivity"] = 0] = "LatestActivity";
274
- SortOrderTypes[SortOrderTypes["CreationDate"] = 1] = "CreationDate";
275
- })(SortOrderTypes || (exports.SortOrderTypes = SortOrderTypes = {}));
276
- /** https://discord.com/developers/docs/resources/channel#channel-object-forum-layout-types */
277
- var ForumLayoutTypes;
278
- (function (ForumLayoutTypes) {
279
- ForumLayoutTypes[ForumLayoutTypes["NotSet"] = 0] = "NotSet";
280
- ForumLayoutTypes[ForumLayoutTypes["ListView"] = 1] = "ListView";
281
- ForumLayoutTypes[ForumLayoutTypes["GalleryView"] = 2] = "GalleryView";
282
- })(ForumLayoutTypes || (exports.ForumLayoutTypes = ForumLayoutTypes = {}));
283
- /** https://discord.com/developers/docs/resources/channel#message-object-message-types */
284
- var MessageTypes;
285
- (function (MessageTypes) {
286
- MessageTypes[MessageTypes["Default"] = 0] = "Default";
287
- MessageTypes[MessageTypes["RecipientAdd"] = 1] = "RecipientAdd";
288
- MessageTypes[MessageTypes["RecipientRemove"] = 2] = "RecipientRemove";
289
- MessageTypes[MessageTypes["Call"] = 3] = "Call";
290
- MessageTypes[MessageTypes["ChannelNameChange"] = 4] = "ChannelNameChange";
291
- MessageTypes[MessageTypes["ChannelIconChange"] = 5] = "ChannelIconChange";
292
- MessageTypes[MessageTypes["ChannelPinnedMessage"] = 6] = "ChannelPinnedMessage";
293
- MessageTypes[MessageTypes["UserJoin"] = 7] = "UserJoin";
294
- MessageTypes[MessageTypes["GuildBoost"] = 8] = "GuildBoost";
295
- MessageTypes[MessageTypes["GuildBoostTier1"] = 9] = "GuildBoostTier1";
296
- MessageTypes[MessageTypes["GuildBoostTier2"] = 10] = "GuildBoostTier2";
297
- MessageTypes[MessageTypes["GuildBoostTier3"] = 11] = "GuildBoostTier3";
298
- MessageTypes[MessageTypes["ChannelFollowAdd"] = 12] = "ChannelFollowAdd";
299
- MessageTypes[MessageTypes["GuildDiscoveryDisqualified"] = 14] = "GuildDiscoveryDisqualified";
300
- MessageTypes[MessageTypes["GuildDiscoveryRequalified"] = 15] = "GuildDiscoveryRequalified";
301
- MessageTypes[MessageTypes["GuildDiscoveryGracePeriodInitialWarning"] = 16] = "GuildDiscoveryGracePeriodInitialWarning";
302
- MessageTypes[MessageTypes["GuildDiscoveryGracePeriodFinalWarning"] = 17] = "GuildDiscoveryGracePeriodFinalWarning";
303
- MessageTypes[MessageTypes["ThreadCreated"] = 18] = "ThreadCreated";
304
- MessageTypes[MessageTypes["Reply"] = 19] = "Reply";
305
- MessageTypes[MessageTypes["ChatInputCommand"] = 20] = "ChatInputCommand";
306
- MessageTypes[MessageTypes["ThreadStarterMessage"] = 21] = "ThreadStarterMessage";
307
- MessageTypes[MessageTypes["GuildInviteReminder"] = 22] = "GuildInviteReminder";
308
- MessageTypes[MessageTypes["ContextMenuCommand"] = 23] = "ContextMenuCommand";
309
- MessageTypes[MessageTypes["AutoModerationAction"] = 24] = "AutoModerationAction";
310
- MessageTypes[MessageTypes["RoleSubscriptionPurchase"] = 25] = "RoleSubscriptionPurchase";
311
- MessageTypes[MessageTypes["InteractionPremiumUpsell"] = 26] = "InteractionPremiumUpsell";
312
- MessageTypes[MessageTypes["StageStart"] = 27] = "StageStart";
313
- MessageTypes[MessageTypes["StageEnd"] = 28] = "StageEnd";
314
- MessageTypes[MessageTypes["StageSpeaker"] = 29] = "StageSpeaker";
315
- MessageTypes[MessageTypes["StageTopic"] = 31] = "StageTopic";
316
- MessageTypes[MessageTypes["GuildApplicationPremiumSubscription"] = 32] = "GuildApplicationPremiumSubscription";
317
- })(MessageTypes || (exports.MessageTypes = MessageTypes = {}));
318
- /** https://discord.com/developers/docs/resources/channel#message-object-message-activity-types */
319
- var MessageActivityTypes;
320
- (function (MessageActivityTypes) {
321
- MessageActivityTypes[MessageActivityTypes["Join"] = 1] = "Join";
322
- MessageActivityTypes[MessageActivityTypes["Spectate"] = 2] = "Spectate";
323
- MessageActivityTypes[MessageActivityTypes["Listen"] = 3] = "Listen";
324
- MessageActivityTypes[MessageActivityTypes["JoinRequest"] = 5] = "JoinRequest";
325
- })(MessageActivityTypes || (exports.MessageActivityTypes = MessageActivityTypes = {}));
326
- /** https://discord.com/developers/docs/resources/channel#message-object-message-flags */
327
- var MessageFlags;
328
- (function (MessageFlags) {
329
- MessageFlags[MessageFlags["Crossposted"] = 1] = "Crossposted";
330
- MessageFlags[MessageFlags["IsCrosspost"] = 2] = "IsCrosspost";
331
- MessageFlags[MessageFlags["SuppressEmbeds"] = 4] = "SuppressEmbeds";
332
- MessageFlags[MessageFlags["SourceMessageDeleted"] = 8] = "SourceMessageDeleted";
333
- MessageFlags[MessageFlags["Urgent"] = 16] = "Urgent";
334
- MessageFlags[MessageFlags["HasThread"] = 32] = "HasThread";
335
- MessageFlags[MessageFlags["Ephemeral"] = 64] = "Ephemeral";
336
- MessageFlags[MessageFlags["Loading"] = 128] = "Loading";
337
- MessageFlags[MessageFlags["FailedToMentionSomeRolesInThread"] = 256] = "FailedToMentionSomeRolesInThread";
338
- MessageFlags[MessageFlags["SuppressNotifications"] = 4096] = "SuppressNotifications";
339
- MessageFlags[MessageFlags["IsVoiceMessage"] = 8192] = "IsVoiceMessage";
340
- })(MessageFlags || (exports.MessageFlags = MessageFlags = {}));
341
- /** https://discord.com/developers/docs/resources/channel#attachment-object-attachment-flags */
342
- var AttachmentFlags;
343
- (function (AttachmentFlags) {
344
- AttachmentFlags[AttachmentFlags["IsRemix"] = 4] = "IsRemix";
345
- })(AttachmentFlags || (exports.AttachmentFlags = AttachmentFlags = {}));
346
- /** https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mention-types */
347
- var AllowedMentionTypes;
348
- (function (AllowedMentionTypes) {
349
- AllowedMentionTypes["RoleMentions"] = "roles";
350
- AllowedMentionTypes["UserMentions"] = "users";
351
- AllowedMentionTypes["EveryoneMentions"] = "everyone";
352
- })(AllowedMentionTypes || (exports.AllowedMentionTypes = AllowedMentionTypes = {}));
353
- /** https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level */
354
- var DefaultMessageNotificationLevel;
355
- (function (DefaultMessageNotificationLevel) {
356
- DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["AllMessages"] = 0] = "AllMessages";
357
- DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["OnlyMentions"] = 1] = "OnlyMentions";
358
- })(DefaultMessageNotificationLevel || (exports.DefaultMessageNotificationLevel = DefaultMessageNotificationLevel = {}));
359
- /** https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level */
360
- var ExplicitContentFilterLevel;
361
- (function (ExplicitContentFilterLevel) {
362
- ExplicitContentFilterLevel[ExplicitContentFilterLevel["Disabled"] = 0] = "Disabled";
363
- ExplicitContentFilterLevel[ExplicitContentFilterLevel["MembersWithoutRoles"] = 1] = "MembersWithoutRoles";
364
- ExplicitContentFilterLevel[ExplicitContentFilterLevel["AllMembers"] = 2] = "AllMembers";
365
- })(ExplicitContentFilterLevel || (exports.ExplicitContentFilterLevel = ExplicitContentFilterLevel = {}));
366
- /** https://discord.com/developers/docs/resources/guild#guild-object-mfa-level */
367
- var MFALevel;
368
- (function (MFALevel) {
369
- MFALevel[MFALevel["None"] = 0] = "None";
370
- MFALevel[MFALevel["Elevated"] = 1] = "Elevated";
371
- })(MFALevel || (exports.MFALevel = MFALevel = {}));
372
- /** https://discord.com/developers/docs/resources/guild#guild-object-verification-level */
373
- var VerificationLevel;
374
- (function (VerificationLevel) {
375
- VerificationLevel[VerificationLevel["None"] = 0] = "None";
376
- VerificationLevel[VerificationLevel["Low"] = 1] = "Low";
377
- VerificationLevel[VerificationLevel["Medium"] = 2] = "Medium";
378
- VerificationLevel[VerificationLevel["High"] = 3] = "High";
379
- VerificationLevel[VerificationLevel["VeryHigh"] = 4] = "VeryHigh";
380
- })(VerificationLevel || (exports.VerificationLevel = VerificationLevel = {}));
381
- /** https://discord.com/developers/docs/resources/guild#guild-object-guild-nsfw-level */
382
- var GuildNSFWLevel;
383
- (function (GuildNSFWLevel) {
384
- GuildNSFWLevel[GuildNSFWLevel["Default"] = 0] = "Default";
385
- GuildNSFWLevel[GuildNSFWLevel["Explicit"] = 1] = "Explicit";
386
- GuildNSFWLevel[GuildNSFWLevel["Safe"] = 2] = "Safe";
387
- GuildNSFWLevel[GuildNSFWLevel["AgeRestricted"] = 3] = "AgeRestricted";
388
- })(GuildNSFWLevel || (exports.GuildNSFWLevel = GuildNSFWLevel = {}));
389
- /** https://discord.com/developers/docs/resources/guild#guild-object-premium-tier */
390
- var PremiumTier;
391
- (function (PremiumTier) {
392
- PremiumTier[PremiumTier["None"] = 0] = "None";
393
- PremiumTier[PremiumTier["Tier1"] = 1] = "Tier1";
394
- PremiumTier[PremiumTier["Tier2"] = 2] = "Tier2";
395
- PremiumTier[PremiumTier["Tier3"] = 3] = "Tier3";
396
- })(PremiumTier || (exports.PremiumTier = PremiumTier = {}));
397
- /** https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */
398
- var SystemChannelFlags;
399
- (function (SystemChannelFlags) {
400
- SystemChannelFlags[SystemChannelFlags["SuppressJoinNotifications"] = 1] = "SuppressJoinNotifications";
401
- SystemChannelFlags[SystemChannelFlags["SuppressPremiumSubscriptions"] = 2] = "SuppressPremiumSubscriptions";
402
- SystemChannelFlags[SystemChannelFlags["SuppressGuildReminderNotifications"] = 4] = "SuppressGuildReminderNotifications";
403
- SystemChannelFlags[SystemChannelFlags["SuppressJoinNotificationReplies"] = 8] = "SuppressJoinNotificationReplies";
404
- SystemChannelFlags[SystemChannelFlags["SuppressRoleSubscriptionPurchaseNotifications"] = 16] = "SuppressRoleSubscriptionPurchaseNotifications";
405
- SystemChannelFlags[SystemChannelFlags["SuppressRoleSubscriptionPurchaseNotificationReplies"] = 32] = "SuppressRoleSubscriptionPurchaseNotificationReplies";
406
- })(SystemChannelFlags || (exports.SystemChannelFlags = SystemChannelFlags = {}));
407
- /** https://discord.com/developers/docs/resources/guild#guild-object-guild-features */
408
- var GuildFeatures;
409
- (function (GuildFeatures) {
410
- GuildFeatures["AnimatedBanner"] = "ANIMATED_BANNER";
411
- GuildFeatures["AnimatedIcon"] = "ANIMATED_ICON";
412
- GuildFeatures["ApplicationCommandPermissionsV2"] = "APPLICATION_COMMAND_PERMISSIONS_V2";
413
- GuildFeatures["AutoModeration"] = "AUTO_MODERATION";
414
- GuildFeatures["Banner"] = "BANNER";
415
- GuildFeatures["Community"] = "COMMUNITY";
416
- GuildFeatures["CreatorMonetizableProvisional"] = "CREATOR_MONETIZABLE_PROVISIONAL";
417
- GuildFeatures["CreatorStorePage"] = "CREATOR_STORE_PAGE";
418
- GuildFeatures["DeveloperSupportServer"] = "DEVELOPER_SUPPORT_SERVER";
419
- GuildFeatures["Discoverable"] = "DISCOVERABLE";
420
- GuildFeatures["Featurable"] = "FEATURABLE";
421
- GuildFeatures["InvitesDisabled"] = "INVITES_DISABLED";
422
- GuildFeatures["InviteSplash"] = "INVITE_SPLASH";
423
- GuildFeatures["MemberVerificationGateEnabled"] = "MEMBER_VERIFICATION_GATE_ENABLED";
424
- GuildFeatures["MoreStickers"] = "MORE_STICKERS";
425
- GuildFeatures["News"] = "NEWS";
426
- GuildFeatures["Partnered"] = "PARTNERED";
427
- GuildFeatures["PreviewEnabled"] = "PREVIEW_ENABLED";
428
- GuildFeatures["RaidAlertsDisabled"] = "RAID_ALERTS_DISABLED";
429
- GuildFeatures["RoleIcons"] = "ROLE_ICONS";
430
- GuildFeatures["RoleSubscriptionsAvailableForPurchase"] = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE";
431
- GuildFeatures["RoleSubscriptionsEnabled"] = "ROLE_SUBSCRIPTIONS_ENABLED";
432
- GuildFeatures["TicketedEventsEnabled"] = "TICKETED_EVENTS_ENABLED";
433
- GuildFeatures["VanityURL"] = "VANITY_URL";
434
- GuildFeatures["Verified"] = "VERIFIED";
435
- GuildFeatures["VipRegions"] = "VIP_REGIONS";
436
- GuildFeatures["WelcomeScreenEnabled"] = "WELCOME_SCREEN_ENABLED";
437
- })(GuildFeatures || (exports.GuildFeatures = GuildFeatures = {}));
438
- /** https://discord.com/developers/docs/resources/guild#guild-object-mutable-guild-features */
439
- var MutableGuildFeatures;
440
- (function (MutableGuildFeatures) {
441
- MutableGuildFeatures["Community"] = "COMMUNITY";
442
- MutableGuildFeatures["InvitesDisabled"] = "INVITES_DISABLED";
443
- MutableGuildFeatures["Discoverable"] = "DISCOVERABLE";
444
- MutableGuildFeatures["RaidAlertsDisabled"] = "RAID_ALERTS_DISABLED";
445
- })(MutableGuildFeatures || (exports.MutableGuildFeatures = MutableGuildFeatures = {}));
446
- /** https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags */
447
- var GuildMemberFlags;
448
- (function (GuildMemberFlags) {
449
- GuildMemberFlags[GuildMemberFlags["DidRejoin"] = 1] = "DidRejoin";
450
- GuildMemberFlags[GuildMemberFlags["CompletedOnboarding"] = 2] = "CompletedOnboarding";
451
- GuildMemberFlags[GuildMemberFlags["BypassesVerification"] = 4] = "BypassesVerification";
452
- GuildMemberFlags[GuildMemberFlags["StartedOnboarding"] = 8] = "StartedOnboarding";
453
- })(GuildMemberFlags || (exports.GuildMemberFlags = GuildMemberFlags = {}));
454
- /** https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors */
455
- var IntegrationExpireBehaviors;
456
- (function (IntegrationExpireBehaviors) {
457
- IntegrationExpireBehaviors[IntegrationExpireBehaviors["RemoveRole"] = 0] = "RemoveRole";
458
- IntegrationExpireBehaviors[IntegrationExpireBehaviors["Kick"] = 1] = "Kick";
459
- })(IntegrationExpireBehaviors || (exports.IntegrationExpireBehaviors = IntegrationExpireBehaviors = {}));
460
- /** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-onboarding-mode */
461
- var OnboardingMode;
462
- (function (OnboardingMode) {
463
- OnboardingMode[OnboardingMode["OnboardingDefault"] = 0] = "OnboardingDefault";
464
- OnboardingMode[OnboardingMode["OnboardingAdvanced"] = 1] = "OnboardingAdvanced";
465
- })(OnboardingMode || (exports.OnboardingMode = OnboardingMode = {}));
466
- /** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-prompt-types */
467
- var PromptTypes;
468
- (function (PromptTypes) {
469
- PromptTypes[PromptTypes["MultipleChoice"] = 0] = "MultipleChoice";
470
- PromptTypes[PromptTypes["Dropdown"] = 1] = "Dropdown";
471
- })(PromptTypes || (exports.PromptTypes = PromptTypes = {}));
472
- /** https://discord.com/developers/docs/resources/guild#get-guild-widget-image-widget-style-options */
473
- var ImageWidgetStyleOptions;
474
- (function (ImageWidgetStyleOptions) {
475
- ImageWidgetStyleOptions["Shield"] = "shield";
476
- ImageWidgetStyleOptions["Banner1"] = "banner1";
477
- ImageWidgetStyleOptions["Banner2"] = "banner2";
478
- ImageWidgetStyleOptions["Banner3"] = "banner3";
479
- ImageWidgetStyleOptions["Banner4"] = "banner4";
480
- })(ImageWidgetStyleOptions || (exports.ImageWidgetStyleOptions = ImageWidgetStyleOptions = {}));
481
- /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-privacy-level */
482
- var GuildScheduledEventPrivacyLevel;
483
- (function (GuildScheduledEventPrivacyLevel) {
484
- GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GuildOnly"] = 2] = "GuildOnly";
485
- })(GuildScheduledEventPrivacyLevel || (exports.GuildScheduledEventPrivacyLevel = GuildScheduledEventPrivacyLevel = {}));
486
- /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-entity-types */
487
- var GuildScheduledEventEntityTypes;
488
- (function (GuildScheduledEventEntityTypes) {
489
- GuildScheduledEventEntityTypes[GuildScheduledEventEntityTypes["StageIstance"] = 1] = "StageIstance";
490
- GuildScheduledEventEntityTypes[GuildScheduledEventEntityTypes["Voice"] = 2] = "Voice";
491
- GuildScheduledEventEntityTypes[GuildScheduledEventEntityTypes["External"] = 3] = "External";
492
- })(GuildScheduledEventEntityTypes || (exports.GuildScheduledEventEntityTypes = GuildScheduledEventEntityTypes = {}));
493
- /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-status */
494
- var GuildScheduledEventStatus;
495
- (function (GuildScheduledEventStatus) {
496
- GuildScheduledEventStatus[GuildScheduledEventStatus["Scheduled"] = 1] = "Scheduled";
497
- GuildScheduledEventStatus[GuildScheduledEventStatus["Active"] = 2] = "Active";
498
- GuildScheduledEventStatus[GuildScheduledEventStatus["Completed"] = 3] = "Completed";
499
- GuildScheduledEventStatus[GuildScheduledEventStatus["Canceled"] = 4] = "Canceled";
500
- })(GuildScheduledEventStatus || (exports.GuildScheduledEventStatus = GuildScheduledEventStatus = {}));
501
- /** https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */
502
- var InviteTargetTypes;
503
- (function (InviteTargetTypes) {
504
- InviteTargetTypes[InviteTargetTypes["Stream"] = 1] = "Stream";
505
- InviteTargetTypes[InviteTargetTypes["EmbeddedApplication"] = 2] = "EmbeddedApplication";
506
- })(InviteTargetTypes || (exports.InviteTargetTypes = InviteTargetTypes = {}));
507
- /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */
508
- var PrivacyLevel;
509
- (function (PrivacyLevel) {
510
- PrivacyLevel[PrivacyLevel["Public"] = 1] = "Public";
511
- PrivacyLevel[PrivacyLevel["GuildOnly"] = 2] = "GuildOnly";
512
- })(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
513
- /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-types */
514
- var StickerTypes;
515
- (function (StickerTypes) {
516
- StickerTypes[StickerTypes["Standard"] = 1] = "Standard";
517
- StickerTypes[StickerTypes["Guild"] = 2] = "Guild";
518
- })(StickerTypes || (exports.StickerTypes = StickerTypes = {}));
519
- /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-format-types */
520
- var StickerFormatTypes;
521
- (function (StickerFormatTypes) {
522
- StickerFormatTypes[StickerFormatTypes["PNG"] = 1] = "PNG";
523
- StickerFormatTypes[StickerFormatTypes["APNG"] = 2] = "APNG";
524
- StickerFormatTypes[StickerFormatTypes["LOTTIE"] = 3] = "LOTTIE";
525
- StickerFormatTypes[StickerFormatTypes["GIF"] = 4] = "GIF";
526
- })(StickerFormatTypes || (exports.StickerFormatTypes = StickerFormatTypes = {}));
527
- /** https://discord.com/developers/docs/resources/user#user-object-user-flags */
528
- var UserFlags;
529
- (function (UserFlags) {
530
- UserFlags[UserFlags["Staff"] = 1] = "Staff";
531
- UserFlags[UserFlags["Partner"] = 2] = "Partner";
532
- UserFlags[UserFlags["Hypesquad"] = 4] = "Hypesquad";
533
- UserFlags[UserFlags["BugHunterLevel1"] = 8] = "BugHunterLevel1";
534
- UserFlags[UserFlags["HypesquadOnlineHouse1"] = 64] = "HypesquadOnlineHouse1";
535
- UserFlags[UserFlags["HypesquadOnlineHouse2"] = 128] = "HypesquadOnlineHouse2";
536
- UserFlags[UserFlags["HypesquadOnlineHouse3"] = 256] = "HypesquadOnlineHouse3";
537
- UserFlags[UserFlags["PremiumEarlySupporter"] = 512] = "PremiumEarlySupporter";
538
- UserFlags[UserFlags["TeamPseudoUser"] = 1024] = "TeamPseudoUser";
539
- UserFlags[UserFlags["BugHunterLevel2"] = 16384] = "BugHunterLevel2";
540
- UserFlags[UserFlags["VerifiedBot"] = 65536] = "VerifiedBot";
541
- UserFlags[UserFlags["VerifiedDeveloper"] = 131072] = "VerifiedDeveloper";
542
- UserFlags[UserFlags["CertifiedModerator"] = 262144] = "CertifiedModerator";
543
- UserFlags[UserFlags["BotHTTPInteractions"] = 524288] = "BotHTTPInteractions";
544
- UserFlags[UserFlags["ActiveDeveloper"] = 4194304] = "ActiveDeveloper";
545
- })(UserFlags || (exports.UserFlags = UserFlags = {}));
546
- /** https://discord.com/developers/docs/resources/user#user-object-premium-types */
547
- var PremiumTypes;
548
- (function (PremiumTypes) {
549
- PremiumTypes[PremiumTypes["None"] = 0] = "None";
550
- PremiumTypes[PremiumTypes["NitroClassic"] = 1] = "NitroClassic";
551
- PremiumTypes[PremiumTypes["Nitro"] = 2] = "Nitro";
552
- PremiumTypes[PremiumTypes["NitroBasic"] = 3] = "NitroBasic";
553
- })(PremiumTypes || (exports.PremiumTypes = PremiumTypes = {}));
554
- /** https://discord.com/developers/docs/resources/user#connection-object-services */
555
- var Services;
556
- (function (Services) {
557
- Services["BattleNet"] = "battlenet";
558
- Services["Ebay"] = "ebay";
559
- Services["EpicGames"] = "epicgames";
560
- Services["Facebook"] = "facebook";
561
- Services["GitHub"] = "github";
562
- Services["Instagram"] = "instagram";
563
- Services["LeagueOfLegends"] = "leagueoflegends";
564
- Services["PayPal"] = "paypal";
565
- Services["Playstation"] = "playstation";
566
- Services["Reddit"] = "reddit";
567
- Services["RiotGames"] = "riotgames";
568
- Services["Spotify"] = "spotify";
569
- Services["Skype"] = "skype";
570
- Services["Steam"] = "steam";
571
- Services["TikTok"] = "tiktok";
572
- Services["Twitch"] = "twitch";
573
- Services["Twitter"] = "twitter";
574
- Services["Xbox"] = "xbox";
575
- Services["YouTube"] = "youtube";
576
- })(Services || (exports.Services = Services = {}));
577
- /** https://discord.com/developers/docs/resources/user#connection-object-visibility-types */
578
- var VisibilityTypes;
579
- (function (VisibilityTypes) {
580
- VisibilityTypes[VisibilityTypes["None"] = 0] = "None";
581
- VisibilityTypes[VisibilityTypes["Everyone"] = 1] = "Everyone";
582
- })(VisibilityTypes || (exports.VisibilityTypes = VisibilityTypes = {}));
583
- /** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types */
584
- var WebhookTypes;
585
- (function (WebhookTypes) {
586
- WebhookTypes[WebhookTypes["Incoming"] = 1] = "Incoming";
587
- WebhookTypes[WebhookTypes["ChannelFollower"] = 2] = "ChannelFollower";
588
- WebhookTypes[WebhookTypes["Application"] = 3] = "Application";
589
- })(WebhookTypes || (exports.WebhookTypes = WebhookTypes = {}));
590
- /** https://discord.com/developers/docs/topics/certified-devices#models-device-type */
591
- var DeviceType;
592
- (function (DeviceType) {
593
- DeviceType["AudioInput"] = "audioinput";
594
- DeviceType["AudioOutput"] = "audiooutput";
595
- DeviceType["VideoInput"] = "videoinput";
596
- })(DeviceType || (exports.DeviceType = DeviceType = {}));
597
- /** https://discord.com/developers/docs/topics/gateway#list-of-intents */
598
- var GatewayIntents;
599
- (function (GatewayIntents) {
600
- GatewayIntents[GatewayIntents["Guilds"] = 1] = "Guilds";
601
- GatewayIntents[GatewayIntents["GuildMembers"] = 2] = "GuildMembers";
602
- GatewayIntents[GatewayIntents["GuildModeration"] = 4] = "GuildModeration";
603
- GatewayIntents[GatewayIntents["GuildEmojisAndStickers"] = 8] = "GuildEmojisAndStickers";
604
- GatewayIntents[GatewayIntents["GuildIntegrations"] = 16] = "GuildIntegrations";
605
- GatewayIntents[GatewayIntents["GuildWebhooks"] = 32] = "GuildWebhooks";
606
- GatewayIntents[GatewayIntents["GuildInvites"] = 64] = "GuildInvites";
607
- GatewayIntents[GatewayIntents["GuildVoiceStates"] = 128] = "GuildVoiceStates";
608
- GatewayIntents[GatewayIntents["GuildPresences"] = 256] = "GuildPresences";
609
- GatewayIntents[GatewayIntents["GuildMessages"] = 512] = "GuildMessages";
610
- GatewayIntents[GatewayIntents["GuildMessageReactions"] = 1024] = "GuildMessageReactions";
611
- GatewayIntents[GatewayIntents["GuildMessageTyping"] = 2048] = "GuildMessageTyping";
612
- GatewayIntents[GatewayIntents["DirectMessages"] = 4096] = "DirectMessages";
613
- GatewayIntents[GatewayIntents["DirectMessageReactions"] = 8192] = "DirectMessageReactions";
614
- GatewayIntents[GatewayIntents["DirectMessageTyping"] = 16384] = "DirectMessageTyping";
615
- GatewayIntents[GatewayIntents["MessageContent"] = 32768] = "MessageContent";
616
- GatewayIntents[GatewayIntents["GuildScheduledEvents"] = 65536] = "GuildScheduledEvents";
617
- GatewayIntents[GatewayIntents["AutoModerationConfiguration"] = 1048576] = "AutoModerationConfiguration";
618
- GatewayIntents[GatewayIntents["AutoModerationActionExecution"] = 2097152] = "AutoModerationActionExecution";
619
- GatewayIntents[GatewayIntents["AllNonPrivileged"] = 3243773] = "AllNonPrivileged";
620
- GatewayIntents[GatewayIntents["AllPrivileged"] = 33026] = "AllPrivileged";
621
- GatewayIntents[GatewayIntents["All"] = 3276799] = "All";
622
- })(GatewayIntents || (exports.GatewayIntents = GatewayIntents = {}));
623
- /** https://discord.com/developers/docs/topics/gateway-events#update-presence-status-types */
624
- var StatusTypes;
625
- (function (StatusTypes) {
626
- StatusTypes["Online"] = "online";
627
- StatusTypes["DoNotDisturb"] = "dnd";
628
- StatusTypes["Idle"] = "idle";
629
- StatusTypes["Invisible"] = "invisible";
630
- StatusTypes["Offline"] = "offline";
631
- })(StatusTypes || (exports.StatusTypes = StatusTypes = {}));
632
- /** https://discord.com/developers/docs/topics/gateway-events#receive-events */
633
- var GatewayEvents;
634
- (function (GatewayEvents) {
635
- GatewayEvents["Hello"] = "hello";
636
- GatewayEvents["Ready"] = "ready";
637
- GatewayEvents["Resumed"] = "resumed";
638
- GatewayEvents["Reconnect"] = "reconnect";
639
- GatewayEvents["InvalidSession"] = "invalidSession";
640
- GatewayEvents["ApplicationCommandPermissionsUpdate"] = "applicationCommandPermissionsUpdate";
641
- GatewayEvents["AutoModerationRuleCreate"] = "autoModerationRuleCreate";
642
- GatewayEvents["AutoModerationRuleUpdate"] = "autoModerationRuleUpdate";
643
- GatewayEvents["AutoModerationRuleDelete"] = "autoModerationRuleDelete";
644
- GatewayEvents["AutoModerationActionExecution"] = "autoModerationActionExecution";
645
- GatewayEvents["ChannelCreate"] = "channelCreate";
646
- GatewayEvents["ChannelUpdate"] = "channelUpdate";
647
- GatewayEvents["ChannelDelete"] = "channelDelete";
648
- GatewayEvents["ChannelPinsUpdate"] = "channelPinsUpdate";
649
- GatewayEvents["ThreadCreate"] = "threadCreate";
650
- GatewayEvents["ThreadUpdate"] = "threadUpdate";
651
- GatewayEvents["ThreadDelete"] = "threadDelete";
652
- GatewayEvents["ThreadListSync"] = "threadListSync";
653
- GatewayEvents["ThreadMemberUpdate"] = "threadMemberUpdate";
654
- GatewayEvents["ThreadMembersUpdate"] = "threadMembersUpdate";
655
- GatewayEvents["EntitlementCreate"] = "entitlementCreate";
656
- GatewayEvents["EntitlementUpdate"] = "entitlementUpdate";
657
- GatewayEvents["EntitlementDelete"] = "entitlementDelete";
658
- GatewayEvents["GuildCreate"] = "guildCreate";
659
- GatewayEvents["GuildUpdate"] = "guildUpdate";
660
- GatewayEvents["GuildDelete"] = "guildDelete";
661
- GatewayEvents["GuildAuditLogEntryCreate"] = "guildAuditLogEntryCreate";
662
- GatewayEvents["GuildBanAdd"] = "guildBanAdd";
663
- GatewayEvents["GuildBanRemove"] = "guildBanRemove";
664
- GatewayEvents["GuildEmojisUpdate"] = "guildEmojisUpdate";
665
- GatewayEvents["GuildStickersUpdate"] = "guildStickersUpdate";
666
- GatewayEvents["GuildIntegrationsUpdate"] = "guildIntegrationsUpdate";
667
- GatewayEvents["GuildMemberAdd"] = "guildMemberAdd";
668
- GatewayEvents["GuildMemberRemove"] = "guildMemberRemove";
669
- GatewayEvents["GuildMemberUpdate"] = "guildMemberUpdate";
670
- GatewayEvents["GuildMembersChunk"] = "guildMembersChunk";
671
- GatewayEvents["GuildRoleCreate"] = "guildRoleCreate";
672
- GatewayEvents["GuildRoleUpdate"] = "guildRoleUpdate";
673
- GatewayEvents["GuildRoleDelete"] = "guildRoleDelete";
674
- GatewayEvents["GuildScheduledEventCreate"] = "guildScheduledEventCreate";
675
- GatewayEvents["GuildScheduledEventUpdate"] = "guildScheduledEventUpdate";
676
- GatewayEvents["GuildScheduledEventDelete"] = "guildScheduledEventDelete";
677
- GatewayEvents["GuildScheduledEventUserAdd"] = "guildScheduledEventUserAdd";
678
- GatewayEvents["GuildScheduledEventUserRemove"] = "guildScheduledEventUserRemove";
679
- GatewayEvents["IntegrationCreate"] = "integrationCreate";
680
- GatewayEvents["IntegrationUpdate"] = "integrationUpdate";
681
- GatewayEvents["IntegrationDelete"] = "integrationDelete";
682
- GatewayEvents["InteractionCreate"] = "interactionCreate";
683
- GatewayEvents["InviteCreate"] = "inviteCreate";
684
- GatewayEvents["InviteDelete"] = "inviteDelete";
685
- GatewayEvents["MessageCreate"] = "messageCreate";
686
- GatewayEvents["MessageUpdate"] = "messageUpdate";
687
- GatewayEvents["MessageDelete"] = "messageDelete";
688
- GatewayEvents["MessageDeleteBulk"] = "messageDeleteBulk";
689
- GatewayEvents["MessageReactionAdd"] = "messageReactionAdd";
690
- GatewayEvents["MessageReactionRemove"] = "messageReactionRemove";
691
- GatewayEvents["MessageReactionRemoveAll"] = "messageReactionRemoveAll";
692
- GatewayEvents["MessageReactionRemoveEmoji"] = "messageReactionRemoveEmoji";
693
- GatewayEvents["PresenceUpdate"] = "presenceUpdate";
694
- GatewayEvents["StageInstanceCreate"] = "stageInstanceCreate";
695
- GatewayEvents["StageInstanceUpdate"] = "stageInstanceUpdate";
696
- GatewayEvents["StageInstanceDelete"] = "stageInstanceDelete";
697
- GatewayEvents["TypingStart"] = "typingStart";
698
- GatewayEvents["UserUpdate"] = "userUpdate";
699
- GatewayEvents["VoiceStateUpdate"] = "voiceStateUpdate";
700
- GatewayEvents["VoiceServerUpdate"] = "voiceServerUpdate";
701
- GatewayEvents["WebhooksUpdate"] = "webhooksUpdate";
702
- })(GatewayEvents || (exports.GatewayEvents = GatewayEvents = {}));
703
- /** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types */
704
- var ActivityType;
705
- (function (ActivityType) {
706
- ActivityType[ActivityType["Game"] = 0] = "Game";
707
- ActivityType[ActivityType["Streaming"] = 1] = "Streaming";
708
- ActivityType[ActivityType["Listening"] = 2] = "Listening";
709
- ActivityType[ActivityType["Watching"] = 3] = "Watching";
710
- ActivityType[ActivityType["Custom"] = 4] = "Custom";
711
- ActivityType[ActivityType["Competing"] = 5] = "Competing";
712
- })(ActivityType || (exports.ActivityType = ActivityType = {}));
713
- /** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-flags */
714
- var ActivityFlags;
715
- (function (ActivityFlags) {
716
- ActivityFlags[ActivityFlags["Instance"] = 1] = "Instance";
717
- ActivityFlags[ActivityFlags["Join"] = 2] = "Join";
718
- ActivityFlags[ActivityFlags["Spectate"] = 4] = "Spectate";
719
- ActivityFlags[ActivityFlags["JoinRequest"] = 8] = "JoinRequest";
720
- ActivityFlags[ActivityFlags["Sync"] = 16] = "Sync";
721
- ActivityFlags[ActivityFlags["Play"] = 32] = "Play";
722
- ActivityFlags[ActivityFlags["PartyPrivacyFriends"] = 64] = "PartyPrivacyFriends";
723
- ActivityFlags[ActivityFlags["PartyPrivacyVoiceChannel"] = 128] = "PartyPrivacyVoiceChannel";
724
- ActivityFlags[ActivityFlags["Embedded"] = 256] = "Embedded";
725
- })(ActivityFlags || (exports.ActivityFlags = ActivityFlags = {}));
726
- /** https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes */
727
- var OAuth2Scopes;
728
- (function (OAuth2Scopes) {
729
- OAuth2Scopes["ActivitiesRead"] = "activities.read";
730
- OAuth2Scopes["ActivitiesWrite"] = "activities.write";
731
- OAuth2Scopes["ApplicationsBuildsRead"] = "applications.builds.read";
732
- OAuth2Scopes["ApplicationsBuildsUpload"] = "applications.builds.upload";
733
- OAuth2Scopes["ApplicationsCommands"] = "applications.commands";
734
- OAuth2Scopes["ApplicationsCommandsUpdate"] = "applications.commands.update";
735
- OAuth2Scopes["ApplicationsCommandsPermissionsUpdate"] = "applications.commands.permissions.update";
736
- OAuth2Scopes["ApplicationsEntitlements"] = "applications.entitlements";
737
- OAuth2Scopes["ApplicationsStoreUpdate"] = "applications.store.update";
738
- OAuth2Scopes["Bot"] = "bot";
739
- OAuth2Scopes["Connections"] = "connections";
740
- OAuth2Scopes["DMChannelsRead"] = "dm_channels.read";
741
- OAuth2Scopes["Email"] = "email";
742
- OAuth2Scopes["GDMJoin"] = "gdm.join";
743
- OAuth2Scopes["Guilds"] = "guilds";
744
- OAuth2Scopes["GuildsJoin"] = "guilds.join";
745
- OAuth2Scopes["GuildsMembersRead"] = "guilds.members.read";
746
- OAuth2Scopes["Identify"] = "identify";
747
- OAuth2Scopes["MessagesRead"] = "messages.read";
748
- OAuth2Scopes["RelationShipsRead"] = "relationships.read";
749
- OAuth2Scopes["RoleConnectionsWrite"] = "role_connections.write";
750
- OAuth2Scopes["RPC"] = "rpc";
751
- OAuth2Scopes["RPCActivitiesWrite"] = "rpc.activities.write";
752
- OAuth2Scopes["RPCNotificationsRead"] = "rpc.notifications.read";
753
- OAuth2Scopes["RPCVoiceRead"] = "rpc.voice.read";
754
- OAuth2Scopes["RPCVoiceWrite"] = "rpc.voice.write";
755
- OAuth2Scopes["Voice"] = "voice";
756
- OAuth2Scopes["WebhookIncoming"] = "webhook.incoming";
757
- })(OAuth2Scopes || (exports.OAuth2Scopes = OAuth2Scopes = {}));
758
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes */
759
- var GatewayOPCodes;
760
- (function (GatewayOPCodes) {
761
- GatewayOPCodes[GatewayOPCodes["Dispatch"] = 0] = "Dispatch";
762
- GatewayOPCodes[GatewayOPCodes["Heartbeat"] = 1] = "Heartbeat";
763
- GatewayOPCodes[GatewayOPCodes["Identify"] = 2] = "Identify";
764
- GatewayOPCodes[GatewayOPCodes["PresenceUpdate"] = 3] = "PresenceUpdate";
765
- GatewayOPCodes[GatewayOPCodes["VoiceStateUpdate"] = 4] = "VoiceStateUpdate";
766
- GatewayOPCodes[GatewayOPCodes["Resume"] = 6] = "Resume";
767
- GatewayOPCodes[GatewayOPCodes["Reconnect"] = 7] = "Reconnect";
768
- GatewayOPCodes[GatewayOPCodes["RequestGuildMembers"] = 8] = "RequestGuildMembers";
769
- GatewayOPCodes[GatewayOPCodes["InvalidSession"] = 9] = "InvalidSession";
770
- GatewayOPCodes[GatewayOPCodes["Hello"] = 10] = "Hello";
771
- GatewayOPCodes[GatewayOPCodes["HeartbeatACK"] = 11] = "HeartbeatACK";
772
- })(GatewayOPCodes || (exports.GatewayOPCodes = GatewayOPCodes = {}));
773
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes */
774
- var GatewayCloseEventCodes;
775
- (function (GatewayCloseEventCodes) {
776
- GatewayCloseEventCodes[GatewayCloseEventCodes["UnknownError"] = 4000] = "UnknownError";
777
- GatewayCloseEventCodes[GatewayCloseEventCodes["UnknownOPCode"] = 4001] = "UnknownOPCode";
778
- GatewayCloseEventCodes[GatewayCloseEventCodes["DecodeError"] = 4002] = "DecodeError";
779
- GatewayCloseEventCodes[GatewayCloseEventCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
780
- GatewayCloseEventCodes[GatewayCloseEventCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
781
- GatewayCloseEventCodes[GatewayCloseEventCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
782
- GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidSequence"] = 4007] = "InvalidSequence";
783
- GatewayCloseEventCodes[GatewayCloseEventCodes["RateLimited"] = 4008] = "RateLimited";
784
- GatewayCloseEventCodes[GatewayCloseEventCodes["SessionTimedOut"] = 4009] = "SessionTimedOut";
785
- GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidShard"] = 4010] = "InvalidShard";
786
- GatewayCloseEventCodes[GatewayCloseEventCodes["ShardingRequired"] = 4011] = "ShardingRequired";
787
- GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidAPIVersion"] = 4012] = "InvalidAPIVersion";
788
- GatewayCloseEventCodes[GatewayCloseEventCodes["InvalidIntents"] = 4013] = "InvalidIntents";
789
- GatewayCloseEventCodes[GatewayCloseEventCodes["DisallowedIntents"] = 4014] = "DisallowedIntents";
790
- })(GatewayCloseEventCodes || (exports.GatewayCloseEventCodes = GatewayCloseEventCodes = {}));
791
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-opcodes */
792
- var VoiceOPCodes;
793
- (function (VoiceOPCodes) {
794
- VoiceOPCodes[VoiceOPCodes["Identify"] = 0] = "Identify";
795
- VoiceOPCodes[VoiceOPCodes["SelectProtocol"] = 1] = "SelectProtocol";
796
- VoiceOPCodes[VoiceOPCodes["Ready"] = 2] = "Ready";
797
- VoiceOPCodes[VoiceOPCodes["Heartbeat"] = 3] = "Heartbeat";
798
- VoiceOPCodes[VoiceOPCodes["SessionDescription"] = 4] = "SessionDescription";
799
- VoiceOPCodes[VoiceOPCodes["Speaking"] = 5] = "Speaking";
800
- VoiceOPCodes[VoiceOPCodes["HeartbeatACK"] = 6] = "HeartbeatACK";
801
- VoiceOPCodes[VoiceOPCodes["Resume"] = 7] = "Resume";
802
- VoiceOPCodes[VoiceOPCodes["Hello"] = 8] = "Hello";
803
- VoiceOPCodes[VoiceOPCodes["Resumed"] = 9] = "Resumed";
804
- VoiceOPCodes[VoiceOPCodes["ClientDisconnect"] = 13] = "ClientDisconnect";
805
- })(VoiceOPCodes || (exports.VoiceOPCodes = VoiceOPCodes = {}));
806
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes */
807
- var VoiceCloseEventCodes;
808
- (function (VoiceCloseEventCodes) {
809
- VoiceCloseEventCodes[VoiceCloseEventCodes["UnknownOPCode"] = 4001] = "UnknownOPCode";
810
- VoiceCloseEventCodes[VoiceCloseEventCodes["FailedToDecodePayload"] = 4002] = "FailedToDecodePayload";
811
- VoiceCloseEventCodes[VoiceCloseEventCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
812
- VoiceCloseEventCodes[VoiceCloseEventCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
813
- VoiceCloseEventCodes[VoiceCloseEventCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
814
- VoiceCloseEventCodes[VoiceCloseEventCodes["SessionNoLongerValid"] = 4006] = "SessionNoLongerValid";
815
- VoiceCloseEventCodes[VoiceCloseEventCodes["SessionTimeout"] = 4009] = "SessionTimeout";
816
- VoiceCloseEventCodes[VoiceCloseEventCodes["ServerNotFound"] = 4011] = "ServerNotFound";
817
- VoiceCloseEventCodes[VoiceCloseEventCodes["UnknownProtocol"] = 4012] = "UnknownProtocol";
818
- VoiceCloseEventCodes[VoiceCloseEventCodes["Disconnect"] = 4014] = "Disconnect";
819
- VoiceCloseEventCodes[VoiceCloseEventCodes["VoiceServerCrashed"] = 4015] = "VoiceServerCrashed";
820
- VoiceCloseEventCodes[VoiceCloseEventCodes["UnknownEncryptionMode"] = 4016] = "UnknownEncryptionMode";
821
- })(VoiceCloseEventCodes || (exports.VoiceCloseEventCodes = VoiceCloseEventCodes = {}));
822
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#http-http-response-codes */
823
- var HTTPResponseCodes;
824
- (function (HTTPResponseCodes) {
825
- HTTPResponseCodes[HTTPResponseCodes["Ok"] = 200] = "Ok";
826
- HTTPResponseCodes[HTTPResponseCodes["Created"] = 201] = "Created";
827
- HTTPResponseCodes[HTTPResponseCodes["NoContent"] = 204] = "NoContent";
828
- HTTPResponseCodes[HTTPResponseCodes["NotModified"] = 304] = "NotModified";
829
- HTTPResponseCodes[HTTPResponseCodes["BadRequest"] = 400] = "BadRequest";
830
- HTTPResponseCodes[HTTPResponseCodes["Unathorized"] = 401] = "Unathorized";
831
- HTTPResponseCodes[HTTPResponseCodes["Forbidden"] = 403] = "Forbidden";
832
- HTTPResponseCodes[HTTPResponseCodes["NotFound"] = 404] = "NotFound";
833
- HTTPResponseCodes[HTTPResponseCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
834
- HTTPResponseCodes[HTTPResponseCodes["TooManyRequests"] = 429] = "TooManyRequests";
835
- HTTPResponseCodes[HTTPResponseCodes["GatewayUnavailable"] = 502] = "GatewayUnavailable";
836
- HTTPResponseCodes["ServerError"] = "5xx";
837
- })(HTTPResponseCodes || (exports.HTTPResponseCodes = HTTPResponseCodes = {}));
838
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes */
839
- var JSONErrorCodes;
840
- (function (JSONErrorCodes) {
841
- JSONErrorCodes[JSONErrorCodes["GeneralError"] = 0] = "GeneralError";
842
- JSONErrorCodes[JSONErrorCodes["UnknownAccount"] = 10001] = "UnknownAccount";
843
- JSONErrorCodes[JSONErrorCodes["UnknownApplication"] = 10002] = "UnknownApplication";
844
- JSONErrorCodes[JSONErrorCodes["UnknownChannel"] = 10003] = "UnknownChannel";
845
- JSONErrorCodes[JSONErrorCodes["UnknownGuild"] = 10004] = "UnknownGuild";
846
- JSONErrorCodes[JSONErrorCodes["UnknownIntegration"] = 10005] = "UnknownIntegration";
847
- JSONErrorCodes[JSONErrorCodes["UnknownInvite"] = 10006] = "UnknownInvite";
848
- JSONErrorCodes[JSONErrorCodes["UnknownMember"] = 10007] = "UnknownMember";
849
- JSONErrorCodes[JSONErrorCodes["UnknownMessage"] = 10008] = "UnknownMessage";
850
- JSONErrorCodes[JSONErrorCodes["UnknownPermissionOverwrite"] = 10009] = "UnknownPermissionOverwrite";
851
- JSONErrorCodes[JSONErrorCodes["UnknownProvider"] = 10010] = "UnknownProvider";
852
- JSONErrorCodes[JSONErrorCodes["UnknownRole"] = 10011] = "UnknownRole";
853
- JSONErrorCodes[JSONErrorCodes["UnknownToken"] = 10012] = "UnknownToken";
854
- JSONErrorCodes[JSONErrorCodes["UnknownUser"] = 10013] = "UnknownUser";
855
- JSONErrorCodes[JSONErrorCodes["UnknownEmoji"] = 10014] = "UnknownEmoji";
856
- JSONErrorCodes[JSONErrorCodes["UnknownWebhook"] = 10015] = "UnknownWebhook";
857
- JSONErrorCodes[JSONErrorCodes["UnknownWebhookService"] = 10016] = "UnknownWebhookService";
858
- JSONErrorCodes[JSONErrorCodes["UnknownSession"] = 10020] = "UnknownSession";
859
- JSONErrorCodes[JSONErrorCodes["UnknownBan"] = 10026] = "UnknownBan";
860
- JSONErrorCodes[JSONErrorCodes["UnknownSKU"] = 10027] = "UnknownSKU";
861
- JSONErrorCodes[JSONErrorCodes["UnknownStoreListing"] = 10028] = "UnknownStoreListing";
862
- JSONErrorCodes[JSONErrorCodes["UnknownEntitlement"] = 10029] = "UnknownEntitlement";
863
- JSONErrorCodes[JSONErrorCodes["UnknownBuild"] = 10030] = "UnknownBuild";
864
- JSONErrorCodes[JSONErrorCodes["UnknownLobby"] = 10031] = "UnknownLobby";
865
- JSONErrorCodes[JSONErrorCodes["UnknownBranch"] = 10032] = "UnknownBranch";
866
- JSONErrorCodes[JSONErrorCodes["UnknownStoreDirectoryLayout"] = 10033] = "UnknownStoreDirectoryLayout";
867
- JSONErrorCodes[JSONErrorCodes["UnknownRedistributable"] = 10036] = "UnknownRedistributable";
868
- JSONErrorCodes[JSONErrorCodes["UnknownGiftCode"] = 10038] = "UnknownGiftCode";
869
- JSONErrorCodes[JSONErrorCodes["UnknownStream"] = 10049] = "UnknownStream";
870
- JSONErrorCodes[JSONErrorCodes["UnknownPremiumServerSubscribeCooldown"] = 10050] = "UnknownPremiumServerSubscribeCooldown";
871
- JSONErrorCodes[JSONErrorCodes["UnknownGuildTemplate"] = 10057] = "UnknownGuildTemplate";
872
- JSONErrorCodes[JSONErrorCodes["UnknownDiscoverableServerCategory"] = 10059] = "UnknownDiscoverableServerCategory";
873
- JSONErrorCodes[JSONErrorCodes["UnknownSticker"] = 10060] = "UnknownSticker";
874
- JSONErrorCodes[JSONErrorCodes["UnknownInteraction"] = 10062] = "UnknownInteraction";
875
- JSONErrorCodes[JSONErrorCodes["UnknownApplicationCommand"] = 10063] = "UnknownApplicationCommand";
876
- JSONErrorCodes[JSONErrorCodes["UnknownVoiceState"] = 10065] = "UnknownVoiceState";
877
- JSONErrorCodes[JSONErrorCodes["UnknownApplicationCommandPermissions"] = 10066] = "UnknownApplicationCommandPermissions";
878
- JSONErrorCodes[JSONErrorCodes["UnknownStageInstance"] = 10067] = "UnknownStageInstance";
879
- JSONErrorCodes[JSONErrorCodes["UnknownGuildMemberVerificationForm"] = 10068] = "UnknownGuildMemberVerificationForm";
880
- JSONErrorCodes[JSONErrorCodes["UnknownGuildWelcomeScreen"] = 10069] = "UnknownGuildWelcomeScreen";
881
- JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEvent"] = 10070] = "UnknownGuildScheduledEvent";
882
- JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEventUser"] = 10071] = "UnknownGuildScheduledEventUser";
883
- JSONErrorCodes[JSONErrorCodes["UnknownTag"] = 10087] = "UnknownTag";
884
- JSONErrorCodes[JSONErrorCodes["BotsCannotUseThisEndpoint"] = 20001] = "BotsCannotUseThisEndpoint";
885
- JSONErrorCodes[JSONErrorCodes["OnlyBotsCanUseThisEndpoint"] = 20002] = "OnlyBotsCanUseThisEndpoint";
886
- JSONErrorCodes[JSONErrorCodes["ExplicitContentCannotBeSentToTheDesiredRecipient"] = 20009] = "ExplicitContentCannotBeSentToTheDesiredRecipient";
887
- JSONErrorCodes[JSONErrorCodes["NotAuthorizedToPerformThisActionOnThisApplication"] = 20012] = "NotAuthorizedToPerformThisActionOnThisApplication";
888
- JSONErrorCodes[JSONErrorCodes["ActionCannotBePerformedDueToSlowmodeRateLimit"] = 20016] = "ActionCannotBePerformedDueToSlowmodeRateLimit";
889
- JSONErrorCodes[JSONErrorCodes["TheMazeIsntMeantForYou"] = 20017] = "TheMazeIsntMeantForYou";
890
- JSONErrorCodes[JSONErrorCodes["OnlyTheOwnerOfThisAccountCanPerformThisAction"] = 20018] = "OnlyTheOwnerOfThisAccountCanPerformThisAction";
891
- JSONErrorCodes[JSONErrorCodes["AnnouncementEditLimitExceeded"] = 20022] = "AnnouncementEditLimitExceeded";
892
- JSONErrorCodes[JSONErrorCodes["UnderMinimumAge"] = 20024] = "UnderMinimumAge";
893
- JSONErrorCodes[JSONErrorCodes["ChannelSendRateLimit"] = 20028] = "ChannelSendRateLimit";
894
- JSONErrorCodes[JSONErrorCodes["ServerSendRateLimit"] = 20029] = "ServerSendRateLimit";
895
- JSONErrorCodes[JSONErrorCodes["StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords"] = 20031] = "StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords";
896
- JSONErrorCodes[JSONErrorCodes["GuildPremiumSubscriptionLevelTooLow"] = 20035] = "GuildPremiumSubscriptionLevelTooLow";
897
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildsReached"] = 30001] = "MaximumNumberOfGuildsReached";
898
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfFriendsReached"] = 30002] = "MaximumNumberOfFriendsReached";
899
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPinsReachedForTheChannel"] = 30003] = "MaximumNumberOfPinsReachedForTheChannel";
900
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfRecipientsReached"] = 30004] = "MaximumNumberOfRecipientsReached";
901
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildRolesReached"] = 30005] = "MaximumNumberOfGuildRolesReached";
902
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfWebhooksReached"] = 30007] = "MaximumNumberOfWebhooksReached";
903
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfEmojisReached"] = 30008] = "MaximumNumberOfEmojisReached";
904
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfReactionsReached"] = 30010] = "MaximumNumberOfReactionsReached";
905
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGroupDMsReached"] = 30011] = "MaximumNumberOfGroupDMsReached";
906
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildChannelsReached"] = 30013] = "MaximumNumberOfGuildChannelsReached";
907
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfAttachmentsInAMessageReached"] = 30015] = "MaximumNumberOfAttachmentsInAMessageReached";
908
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfInvitesReached"] = 30016] = "MaximumNumberOfInvitesReached";
909
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfAnimatedEmojisReached"] = 30018] = "MaximumNumberOfAnimatedEmojisReached";
910
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfServerMembersReached"] = 30019] = "MaximumNumberOfServerMembersReached";
911
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfServerCategoriesReached"] = 30030] = "MaximumNumberOfServerCategoriesReached";
912
- JSONErrorCodes[JSONErrorCodes["GuildAlreadyHasTemplate"] = 30031] = "GuildAlreadyHasTemplate";
913
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfApplicationCommandsReached"] = 30032] = "MaximumNumberOfApplicationCommandsReached";
914
- JSONErrorCodes[JSONErrorCodes["MaximumThreadParticipantsReached"] = 30033] = "MaximumThreadParticipantsReached";
915
- JSONErrorCodes[JSONErrorCodes["MaximumDailyApplicationCommandCreatesReached"] = 30034] = "MaximumDailyApplicationCommandCreatesReached";
916
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfNonGuildMemberBansHasBeenExceeded"] = 30035] = "MaximumNumberOfNonGuildMemberBansHasBeenExceeded";
917
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfBanFetchesHasBeenReached"] = 30037] = "MaximumNumberOfBanFetchesHasBeenReached";
918
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfUncompletedGuildScheduledEventsReached"] = 30038] = "MaximumNumberOfUncompletedGuildScheduledEventsReached";
919
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfStickersReached"] = 30039] = "MaximumNumberOfStickersReached";
920
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPruneRequestsHasBeenReached"] = 30040] = "MaximumNumberOfPruneRequestsHasBeenReached";
921
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached"] = 30042] = "MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached";
922
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfEditsToMessagesOlderThanOneHourReached"] = 30046] = "MaximumNumberOfEditsToMessagesOlderThanOneHourReached";
923
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPinnedThreadsInForumHasBeenReached"] = 30047] = "MaximumNumberOfPinnedThreadsInForumHasBeenReached";
924
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfTagsInForumHasBeenReached"] = 30048] = "MaximumNumberOfTagsInForumHasBeenReached";
925
- JSONErrorCodes[JSONErrorCodes["BitrateIsTooHighForChannelOfThisType"] = 30052] = "BitrateIsTooHighForChannelOfThisType";
926
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPremiumEmojisReached"] = 30056] = "MaximumNumberOfPremiumEmojisReached";
927
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfWebhooksPerGuildReached"] = 30058] = "MaximumNumberOfWebhooksPerGuildReached";
928
- JSONErrorCodes[JSONErrorCodes["MaximumNumberOfChannelPermissionOverwritesReached"] = 30060] = "MaximumNumberOfChannelPermissionOverwritesReached";
929
- JSONErrorCodes[JSONErrorCodes["TheChannelsForThisGuildAreTooLarge"] = 30061] = "TheChannelsForThisGuildAreTooLarge";
930
- JSONErrorCodes[JSONErrorCodes["Unauthorized"] = 40001] = "Unauthorized";
931
- JSONErrorCodes[JSONErrorCodes["VerifyYourAccount"] = 40002] = "VerifyYourAccount";
932
- JSONErrorCodes[JSONErrorCodes["OpeningDirectMessagesTooFast"] = 40003] = "OpeningDirectMessagesTooFast";
933
- JSONErrorCodes[JSONErrorCodes["SendMessagesHasBeenTemporarilyDisabled"] = 40004] = "SendMessagesHasBeenTemporarilyDisabled";
934
- JSONErrorCodes[JSONErrorCodes["RequestEntityTooLarge"] = 40005] = "RequestEntityTooLarge";
935
- JSONErrorCodes[JSONErrorCodes["FeatureTemporarilyDisabledServerSide"] = 40006] = "FeatureTemporarilyDisabledServerSide";
936
- JSONErrorCodes[JSONErrorCodes["UserBannedFromThisGuild"] = 40007] = "UserBannedFromThisGuild";
937
- JSONErrorCodes[JSONErrorCodes["ConnectionHasBeenRevoked"] = 40012] = "ConnectionHasBeenRevoked";
938
- JSONErrorCodes[JSONErrorCodes["TargetUserIsNotConnectedToVoice"] = 40032] = "TargetUserIsNotConnectedToVoice";
939
- JSONErrorCodes[JSONErrorCodes["ThisMessageWasAlreadyCrossposted"] = 40033] = "ThisMessageWasAlreadyCrossposted";
940
- JSONErrorCodes[JSONErrorCodes["ApplicationCommandWithThatNameAlreadyExists"] = 40041] = "ApplicationCommandWithThatNameAlreadyExists";
941
- JSONErrorCodes[JSONErrorCodes["ApplicationInteractionFailedToSend"] = 40043] = "ApplicationInteractionFailedToSend";
942
- JSONErrorCodes[JSONErrorCodes["CannotSendAMessageInAForumChannel"] = 40058] = "CannotSendAMessageInAForumChannel";
943
- JSONErrorCodes[JSONErrorCodes["InteractionHasAlreadyBeenAcknowledged"] = 40060] = "InteractionHasAlreadyBeenAcknowledged";
944
- JSONErrorCodes[JSONErrorCodes["TagNamesMustBeUnique"] = 40061] = "TagNamesMustBeUnique";
945
- JSONErrorCodes[JSONErrorCodes["ServiceResourceIsBeingRateLimited"] = 40062] = "ServiceResourceIsBeingRateLimited";
946
- JSONErrorCodes[JSONErrorCodes["ThereAreNoTagsAvailableThatCanBeSetByNonModerators"] = 40066] = "ThereAreNoTagsAvailableThatCanBeSetByNonModerators";
947
- JSONErrorCodes[JSONErrorCodes["TagRequiredToCreateAForumPostInThisChannel"] = 40067] = "TagRequiredToCreateAForumPostInThisChannel";
948
- JSONErrorCodes[JSONErrorCodes["AnEntitlementHasAlreadyBeenGrantedForThisResource"] = 40074] = "AnEntitlementHasAlreadyBeenGrantedForThisResource";
949
- JSONErrorCodes[JSONErrorCodes["MissingAccess"] = 50001] = "MissingAccess";
950
- JSONErrorCodes[JSONErrorCodes["InvalidAccountType"] = 50002] = "InvalidAccountType";
951
- JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnDMChannel"] = 50003] = "CannotExecuteActionOnDMChannel";
952
- JSONErrorCodes[JSONErrorCodes["GuildWidgetDisabled"] = 50004] = "GuildWidgetDisabled";
953
- JSONErrorCodes[JSONErrorCodes["CannotEditMessageAuthoredByAnotherUser"] = 50005] = "CannotEditMessageAuthoredByAnotherUser";
954
- JSONErrorCodes[JSONErrorCodes["CannotSendAnEmptyMessage"] = 50006] = "CannotSendAnEmptyMessage";
955
- JSONErrorCodes[JSONErrorCodes["CannotSendMessagesToThisUser"] = 50007] = "CannotSendMessagesToThisUser";
956
- JSONErrorCodes[JSONErrorCodes["CannotSendMessagesInNonTextChannel"] = 50008] = "CannotSendMessagesInNonTextChannel";
957
- JSONErrorCodes[JSONErrorCodes["ChannelVerificationLevelTooHighForYouToGainAccess"] = 50009] = "ChannelVerificationLevelTooHighForYouToGainAccess";
958
- JSONErrorCodes[JSONErrorCodes["OAuth2ApplicationDoesNotHaveBot"] = 50010] = "OAuth2ApplicationDoesNotHaveBot";
959
- JSONErrorCodes[JSONErrorCodes["OAuth2ApplicationLimitReached"] = 50011] = "OAuth2ApplicationLimitReached";
960
- JSONErrorCodes[JSONErrorCodes["InvalidOAuth2State"] = 50012] = "InvalidOAuth2State";
961
- JSONErrorCodes[JSONErrorCodes["MissingPermissions"] = 50013] = "MissingPermissions";
962
- JSONErrorCodes[JSONErrorCodes["InvalidToken"] = 50014] = "InvalidToken";
963
- JSONErrorCodes[JSONErrorCodes["NoteWasTooLong"] = 50015] = "NoteWasTooLong";
964
- JSONErrorCodes[JSONErrorCodes["ProvidedTooFewOrTooManyMessagesToDelete"] = 50016] = "ProvidedTooFewOrTooManyMessagesToDelete";
965
- JSONErrorCodes[JSONErrorCodes["InvalidMFALevel"] = 50017] = "InvalidMFALevel";
966
- JSONErrorCodes[JSONErrorCodes["MessageCanOnlyBePinnedInTheChannelItWasSentIn"] = 50019] = "MessageCanOnlyBePinnedInTheChannelItWasSentIn";
967
- JSONErrorCodes[JSONErrorCodes["InviteCodeInvalidOrTaken"] = 50020] = "InviteCodeInvalidOrTaken";
968
- JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnSystemMessage"] = 50021] = "CannotExecuteActionOnSystemMessage";
969
- JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnThisChannelType"] = 50024] = "CannotExecuteActionOnThisChannelType";
970
- JSONErrorCodes[JSONErrorCodes["InvalidOAuth2AccessToken"] = 50025] = "InvalidOAuth2AccessToken";
971
- JSONErrorCodes[JSONErrorCodes["MissingRequiredOAuth2Scope"] = 50026] = "MissingRequiredOAuth2Scope";
972
- JSONErrorCodes[JSONErrorCodes["InvalidWebhookToken"] = 50027] = "InvalidWebhookToken";
973
- JSONErrorCodes[JSONErrorCodes["InvalidRole"] = 50028] = "InvalidRole";
974
- JSONErrorCodes[JSONErrorCodes["InvalidRecipients"] = 50033] = "InvalidRecipients";
975
- JSONErrorCodes[JSONErrorCodes["OneOfTheMessagesProvidedWasTooOldForBulkDelete"] = 50034] = "OneOfTheMessagesProvidedWasTooOldForBulkDelete";
976
- JSONErrorCodes[JSONErrorCodes["InvalidFormBodyOrContentType"] = 50035] = "InvalidFormBodyOrContentType";
977
- JSONErrorCodes[JSONErrorCodes["InviteAcceptedToGuildWithoutTheBotBeingIn"] = 50036] = "InviteAcceptedToGuildWithoutTheBotBeingIn";
978
- JSONErrorCodes[JSONErrorCodes["InvalidActivityAction"] = 50039] = "InvalidActivityAction";
979
- JSONErrorCodes[JSONErrorCodes["InvalidAPIVersion"] = 50041] = "InvalidAPIVersion";
980
- JSONErrorCodes[JSONErrorCodes["FileUploadedExceedsMaximumSize"] = 50045] = "FileUploadedExceedsMaximumSize";
981
- JSONErrorCodes[JSONErrorCodes["InvalidFileUploaded"] = 50046] = "InvalidFileUploaded";
982
- JSONErrorCodes[JSONErrorCodes["CannotSelfRedeemThisGift"] = 50054] = "CannotSelfRedeemThisGift";
983
- JSONErrorCodes[JSONErrorCodes["InvalidGuild"] = 50055] = "InvalidGuild";
984
- JSONErrorCodes[JSONErrorCodes["InvalidSKU"] = 50057] = "InvalidSKU";
985
- JSONErrorCodes[JSONErrorCodes["InvalidRequestOrigin"] = 50067] = "InvalidRequestOrigin";
986
- JSONErrorCodes[JSONErrorCodes["InvalidMessageType"] = 50068] = "InvalidMessageType";
987
- JSONErrorCodes[JSONErrorCodes["PaymentSourceRequiredToRedeemGift"] = 50070] = "PaymentSourceRequiredToRedeemGift";
988
- JSONErrorCodes[JSONErrorCodes["CannotModifyASystemWebhook"] = 50073] = "CannotModifyASystemWebhook";
989
- JSONErrorCodes[JSONErrorCodes["CannotDeleteChannelRequiredForCommunityGuilds"] = 50074] = "CannotDeleteChannelRequiredForCommunityGuilds";
990
- JSONErrorCodes[JSONErrorCodes["CannotEditStickersWithinMessage"] = 50080] = "CannotEditStickersWithinMessage";
991
- JSONErrorCodes[JSONErrorCodes["InvalidStickerSent"] = 50081] = "InvalidStickerSent";
992
- JSONErrorCodes[JSONErrorCodes["InvalidActionOnArchivedThread"] = 50083] = "InvalidActionOnArchivedThread";
993
- JSONErrorCodes[JSONErrorCodes["InvalidThreadNotificationSettings"] = 50084] = "InvalidThreadNotificationSettings";
994
- JSONErrorCodes[JSONErrorCodes["ParameterEarlierThanCreation"] = 50085] = "ParameterEarlierThanCreation";
995
- JSONErrorCodes[JSONErrorCodes["CommunityServerChannelsMustBeTextChannels"] = 50086] = "CommunityServerChannelsMustBeTextChannels";
996
- JSONErrorCodes[JSONErrorCodes["TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor"] = 50091] = "TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor";
997
- JSONErrorCodes[JSONErrorCodes["ServerNotAvailableInYourLocation"] = 50095] = "ServerNotAvailableInYourLocation";
998
- JSONErrorCodes[JSONErrorCodes["ServerNeedsMonetizationEnabledToPerformThisAction"] = 50097] = "ServerNeedsMonetizationEnabledToPerformThisAction";
999
- JSONErrorCodes[JSONErrorCodes["ServerNeedsMoreBoostsToPerformThisAction"] = 50101] = "ServerNeedsMoreBoostsToPerformThisAction";
1000
- JSONErrorCodes[JSONErrorCodes["RequestBodyContainsInvalidJSON"] = 50109] = "RequestBodyContainsInvalidJSON";
1001
- JSONErrorCodes[JSONErrorCodes["OwnerCannotBePendingMember"] = 50131] = "OwnerCannotBePendingMember";
1002
- JSONErrorCodes[JSONErrorCodes["OwnershipCannotBeMovedToABotUser"] = 50132] = "OwnershipCannotBeMovedToABotUser";
1003
- JSONErrorCodes[JSONErrorCodes["FailedToResizeAssetBelowTheMinimumSize"] = 50138] = "FailedToResizeAssetBelowTheMinimumSize";
1004
- JSONErrorCodes[JSONErrorCodes["CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji"] = 50144] = "CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji";
1005
- JSONErrorCodes[JSONErrorCodes["CannotConvertBetweenPremiumEmojiAndNormalEmoji"] = 50145] = "CannotConvertBetweenPremiumEmojiAndNormalEmoji";
1006
- JSONErrorCodes[JSONErrorCodes["UploadedFileNotFound"] = 50146] = "UploadedFileNotFound";
1007
- JSONErrorCodes[JSONErrorCodes["VoiceMessagesDoNotSupportAdditionalContent"] = 50159] = "VoiceMessagesDoNotSupportAdditionalContent";
1008
- JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveASingleAudioAttachment"] = 50160] = "VoiceMessagesMustHaveASingleAudioAttachment";
1009
- JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveSupportingMetadata"] = 50161] = "VoiceMessagesMustHaveSupportingMetadata";
1010
- JSONErrorCodes[JSONErrorCodes["VoiceMessagesCannotBeEdited"] = 50162] = "VoiceMessagesCannotBeEdited";
1011
- JSONErrorCodes[JSONErrorCodes["CannotDeleteGuildSubscriptionIntegration"] = 50163] = "CannotDeleteGuildSubscriptionIntegration";
1012
- JSONErrorCodes[JSONErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
1013
- JSONErrorCodes[JSONErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
1014
- JSONErrorCodes[JSONErrorCodes["YouDoNotHavePermissionToSendThisSticker"] = 50600] = "YouDoNotHavePermissionToSendThisSticker";
1015
- JSONErrorCodes[JSONErrorCodes["TwoFactorAuthenticationIsRequired"] = 60003] = "TwoFactorAuthenticationIsRequired";
1016
- JSONErrorCodes[JSONErrorCodes["NoUsersWithDiscordTagExist"] = 80004] = "NoUsersWithDiscordTagExist";
1017
- JSONErrorCodes[JSONErrorCodes["ReactionWasBlocked"] = 90001] = "ReactionWasBlocked";
1018
- JSONErrorCodes[JSONErrorCodes["ApplicationNotYetAvailable"] = 110001] = "ApplicationNotYetAvailable";
1019
- JSONErrorCodes[JSONErrorCodes["APIResourceOverloaded"] = 130000] = "APIResourceOverloaded";
1020
- JSONErrorCodes[JSONErrorCodes["TheStageIsAlreadyOpen"] = 150006] = "TheStageIsAlreadyOpen";
1021
- JSONErrorCodes[JSONErrorCodes["CannotReplyWithoutPermissionToReadMessageHistory"] = 160002] = "CannotReplyWithoutPermissionToReadMessageHistory";
1022
- JSONErrorCodes[JSONErrorCodes["ThreadAlreadyCreatedForMessage"] = 160004] = "ThreadAlreadyCreatedForMessage";
1023
- JSONErrorCodes[JSONErrorCodes["ThreadLocked"] = 160005] = "ThreadLocked";
1024
- JSONErrorCodes[JSONErrorCodes["MaximumActiveThreads"] = 160006] = "MaximumActiveThreads";
1025
- JSONErrorCodes[JSONErrorCodes["MaximumActiveAnnouncementThreads"] = 160007] = "MaximumActiveAnnouncementThreads";
1026
- JSONErrorCodes[JSONErrorCodes["InvalidJSONForUploadedLottieFile"] = 170001] = "InvalidJSONForUploadedLottieFile";
1027
- JSONErrorCodes[JSONErrorCodes["UploadedLottiesCannotContainRasterizedImages"] = 170002] = "UploadedLottiesCannotContainRasterizedImages";
1028
- JSONErrorCodes[JSONErrorCodes["StickerMaximumFramerateExceeded"] = 170003] = "StickerMaximumFramerateExceeded";
1029
- JSONErrorCodes[JSONErrorCodes["StickerFrameCountExceedsMaximumOf1000Frames"] = 170004] = "StickerFrameCountExceedsMaximumOf1000Frames";
1030
- JSONErrorCodes[JSONErrorCodes["LottieAnimationMaximumDimensionsExceeded"] = 170005] = "LottieAnimationMaximumDimensionsExceeded";
1031
- JSONErrorCodes[JSONErrorCodes["StickerFramerateIsTooSmallOrTooLarge"] = 170006] = "StickerFramerateIsTooSmallOrTooLarge";
1032
- JSONErrorCodes[JSONErrorCodes["StickerAnimationDurationExceedsMaximumOf5Seconds"] = 170007] = "StickerAnimationDurationExceedsMaximumOf5Seconds";
1033
- JSONErrorCodes[JSONErrorCodes["CannotUpdateAFinishedEvent"] = 180000] = "CannotUpdateAFinishedEvent";
1034
- JSONErrorCodes[JSONErrorCodes["FailedToCreateStageNeededForStageEvent"] = 180002] = "FailedToCreateStageNeededForStageEvent";
1035
- JSONErrorCodes[JSONErrorCodes["MessageWasBlockedByAutomaticModeration"] = 200000] = "MessageWasBlockedByAutomaticModeration";
1036
- JSONErrorCodes[JSONErrorCodes["TitleWasBlockedByAutomaticModeration"] = 200001] = "TitleWasBlockedByAutomaticModeration";
1037
- JSONErrorCodes[JSONErrorCodes["WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId"] = 220001] = "WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId";
1038
- JSONErrorCodes[JSONErrorCodes["WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId"] = 220002] = "WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId";
1039
- JSONErrorCodes[JSONErrorCodes["WebhooksCanOnlyCreateThreadsInForumChannels"] = 220003] = "WebhooksCanOnlyCreateThreadsInForumChannels";
1040
- JSONErrorCodes[JSONErrorCodes["WebhookServicesCannotBeUsedInForumChannels"] = 220004] = "WebhookServicesCannotBeUsedInForumChannels";
1041
- JSONErrorCodes[JSONErrorCodes["MessageBlockedByHarmfulLinksFilter"] = 240000] = "MessageBlockedByHarmfulLinksFilter";
1042
- JSONErrorCodes[JSONErrorCodes["CannotEnableOnboardingRequirementsAreNotMet"] = 350000] = "CannotEnableOnboardingRequirementsAreNotMet";
1043
- JSONErrorCodes[JSONErrorCodes["CannotUpdateOnboardingWhileBelowRequirements"] = 350001] = "CannotUpdateOnboardingWhileBelowRequirements";
1044
- })(JSONErrorCodes || (exports.JSONErrorCodes = JSONErrorCodes = {}));
1045
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-error-codes */
1046
- var RPCErrorCodes;
1047
- (function (RPCErrorCodes) {
1048
- RPCErrorCodes[RPCErrorCodes["UnknownError"] = 1000] = "UnknownError";
1049
- RPCErrorCodes[RPCErrorCodes["InvalidPayload"] = 4000] = "InvalidPayload";
1050
- RPCErrorCodes[RPCErrorCodes["InvalidCommand"] = 4002] = "InvalidCommand";
1051
- RPCErrorCodes[RPCErrorCodes["InvalidGuild"] = 4003] = "InvalidGuild";
1052
- RPCErrorCodes[RPCErrorCodes["InvalidEvent"] = 4004] = "InvalidEvent";
1053
- RPCErrorCodes[RPCErrorCodes["InvalidChannel"] = 4005] = "InvalidChannel";
1054
- RPCErrorCodes[RPCErrorCodes["InvalidPermissions"] = 4006] = "InvalidPermissions";
1055
- RPCErrorCodes[RPCErrorCodes["InvalidClientId"] = 4007] = "InvalidClientId";
1056
- RPCErrorCodes[RPCErrorCodes["InvalidOrigin"] = 4008] = "InvalidOrigin";
1057
- RPCErrorCodes[RPCErrorCodes["InvalidToken"] = 4009] = "InvalidToken";
1058
- RPCErrorCodes[RPCErrorCodes["InvalidUser"] = 4010] = "InvalidUser";
1059
- RPCErrorCodes[RPCErrorCodes["OAuth2Error"] = 5000] = "OAuth2Error";
1060
- RPCErrorCodes[RPCErrorCodes["SelectChannelTimedOut"] = 5001] = "SelectChannelTimedOut";
1061
- RPCErrorCodes[RPCErrorCodes["GetGuildTimedOut"] = 5002] = "GetGuildTimedOut";
1062
- RPCErrorCodes[RPCErrorCodes["SelectVoiceForceRequired"] = 5003] = "SelectVoiceForceRequired";
1063
- RPCErrorCodes[RPCErrorCodes["CaptureShortcutAlreadyListening"] = 5004] = "CaptureShortcutAlreadyListening";
1064
- })(RPCErrorCodes || (exports.RPCErrorCodes = RPCErrorCodes = {}));
1065
- /** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-close-event-codes */
1066
- var RPCCloseEventCodes;
1067
- (function (RPCCloseEventCodes) {
1068
- RPCCloseEventCodes[RPCCloseEventCodes["InvalidClientId"] = 4000] = "InvalidClientId";
1069
- RPCCloseEventCodes[RPCCloseEventCodes["InvalidOrigin"] = 4001] = "InvalidOrigin";
1070
- RPCCloseEventCodes[RPCCloseEventCodes["RateLimited"] = 4002] = "RateLimited";
1071
- RPCCloseEventCodes[RPCCloseEventCodes["TokenRevoked"] = 4003] = "TokenRevoked";
1072
- RPCCloseEventCodes[RPCCloseEventCodes["InvalidVersion"] = 4004] = "InvalidVersion";
1073
- RPCCloseEventCodes[RPCCloseEventCodes["InvalidEncoding"] = 4005] = "InvalidEncoding";
1074
- })(RPCCloseEventCodes || (exports.RPCCloseEventCodes = RPCCloseEventCodes = {}));
1075
- /** https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags */
1076
- exports.BitwisePermissionFlags = {
1077
- CreateInstantInvite: 1n << 0n,
1078
- KickMembers: 1n << 1n,
1079
- BanMembers: 1n << 2n,
1080
- Administrator: 1n << 3n,
1081
- ManageChannels: 1n << 4n,
1082
- ManageGuild: 1n << 5n,
1083
- AddReactions: 1n << 6n,
1084
- ViewAuditLog: 1n << 7n,
1085
- PrioritySpeaker: 1n << 8n,
1086
- Stream: 1n << 9n,
1087
- ViewChannel: 1n << 10n,
1088
- SendMessages: 1n << 11n,
1089
- SendTTSMessages: 1n << 12n,
1090
- ManageMessages: 1n << 13n,
1091
- EmbedLinks: 1n << 14n,
1092
- AttachFiles: 1n << 15n,
1093
- ReadMessageHistory: 1n << 16n,
1094
- MentionEveryone: 1n << 17n,
1095
- UseExternalEmojis: 1n << 18n,
1096
- ViewGuildInsights: 1n << 19n,
1097
- Connect: 1n << 20n,
1098
- Speak: 1n << 21n,
1099
- MuteMembers: 1n << 22n,
1100
- DeafenMembers: 1n << 23n,
1101
- MoveMembers: 1n << 24n,
1102
- UseVAD: 1n << 25n,
1103
- ChangeNickname: 1n << 26n,
1104
- ManageNicknames: 1n << 27n,
1105
- ManageRoles: 1n << 28n,
1106
- ManageWebhooks: 1n << 29n,
1107
- ManageGuildExpressions: 1n << 30n,
1108
- UseApplicationCommands: 1n << 31n,
1109
- RequestToSpeak: 1n << 32n,
1110
- ManageEvents: 1n << 33n,
1111
- ManageThreads: 1n << 34n,
1112
- CreatePublicThreads: 1n << 35n,
1113
- CreatePrivateThreads: 1n << 36n,
1114
- UseExternalStickers: 1n << 37n,
1115
- SendMessagesInThreads: 1n << 38n,
1116
- UseEmbeddedActivities: 1n << 39n,
1117
- ModerateMembers: 1n << 40n,
1118
- ViewCreatorMonetizationAnalytics: 1n << 41n,
1119
- UseSoundboard: 1n << 42n,
1120
- CreateGuildExpressions: 1n << 43n,
1121
- CreateEvents: 1n << 44n,
1122
- UseExternalSounds: 1n << 45n,
1123
- SendVoiceMessages: 1n << 46n,
1124
- };
1125
- /** https://discord.com/developers/docs/topics/permissions#role-object-role-flags */
1126
- var RoleFlags;
1127
- (function (RoleFlags) {
1128
- RoleFlags[RoleFlags["InPrompt"] = 1] = "InPrompt";
1129
- })(RoleFlags || (exports.RoleFlags = RoleFlags = {}));
1130
- /** https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types */
1131
- var TeamMemberRoleTypes;
1132
- (function (TeamMemberRoleTypes) {
1133
- TeamMemberRoleTypes["Owner"] = "";
1134
- TeamMemberRoleTypes["Admin"] = "admin";
1135
- TeamMemberRoleTypes["Developer"] = "developer";
1136
- TeamMemberRoleTypes["ReadOnly"] = "read_only";
1137
- })(TeamMemberRoleTypes || (exports.TeamMemberRoleTypes = TeamMemberRoleTypes = {}));
1138
- /** https://discord.com/developers/docs/topics/teams#data-models-membership-state-enum */
1139
- var MembershipState;
1140
- (function (MembershipState) {
1141
- MembershipState[MembershipState["Invited"] = 1] = "Invited";
1142
- MembershipState[MembershipState["Accepted"] = 2] = "Accepted";
1143
- })(MembershipState || (exports.MembershipState = MembershipState = {}));
1144
- /** https://discord.com/developers/docs/monetization/skus#sku-object-sku-types */
1145
- var SKUTypes;
1146
- (function (SKUTypes) {
1147
- SKUTypes[SKUTypes["Subscription"] = 5] = "Subscription";
1148
- SKUTypes[SKUTypes["SubscriptionGroup"] = 6] = "SubscriptionGroup";
1149
- })(SKUTypes || (exports.SKUTypes = SKUTypes = {}));
1150
- /** https://discord.com/developers/docs/monetization/skus#sku-object-sku-flags */
1151
- var SKUFlags;
1152
- (function (SKUFlags) {
1153
- SKUFlags[SKUFlags["Available"] = 4] = "Available";
1154
- SKUFlags[SKUFlags["GuildSubscription"] = 128] = "GuildSubscription";
1155
- SKUFlags[SKUFlags["UserSubscription"] = 256] = "UserSubscription";
1156
- })(SKUFlags || (exports.SKUFlags = SKUFlags = {}));
1157
- /** https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-types */
1158
- var EntitlementTypes;
1159
- (function (EntitlementTypes) {
1160
- EntitlementTypes[EntitlementTypes["ApplicationSubscription"] = 8] = "ApplicationSubscription";
1161
- })(EntitlementTypes || (exports.EntitlementTypes = EntitlementTypes = {}));
1162
- //# sourceMappingURL=constants.js.map