dfx 0.9.8 → 0.9.9

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 (124) hide show
  1. package/DiscordConfig/index.d.ts +39 -0
  2. package/DiscordConfig/index.js +29 -0
  3. package/DiscordConfig/index.js.map +1 -0
  4. package/DiscordGateway/DiscordWS/index.d.ts +23 -0
  5. package/DiscordGateway/DiscordWS/index.js +26 -0
  6. package/DiscordGateway/DiscordWS/index.js.map +1 -0
  7. package/DiscordGateway/Shard/heartbeats.d.ts +3 -0
  8. package/DiscordGateway/Shard/heartbeats.js +24 -0
  9. package/DiscordGateway/Shard/heartbeats.js.map +1 -0
  10. package/DiscordGateway/Shard/identify.d.ts +12 -0
  11. package/DiscordGateway/Shard/identify.js +30 -0
  12. package/DiscordGateway/Shard/identify.js.map +1 -0
  13. package/DiscordGateway/Shard/index.d.ts +9 -0
  14. package/DiscordGateway/Shard/index.js +52 -0
  15. package/DiscordGateway/Shard/index.js.map +1 -0
  16. package/DiscordGateway/Shard/invalidSession.d.ts +3 -0
  17. package/DiscordGateway/Shard/invalidSession.js +10 -0
  18. package/DiscordGateway/Shard/invalidSession.js.map +1 -0
  19. package/DiscordGateway/Shard/sendEvents.d.ts +7 -0
  20. package/DiscordGateway/Shard/sendEvents.js +26 -0
  21. package/DiscordGateway/Shard/sendEvents.js.map +1 -0
  22. package/DiscordGateway/Shard/utils.d.ts +3 -0
  23. package/DiscordGateway/Shard/utils.js +9 -0
  24. package/DiscordGateway/Shard/utils.js.map +1 -0
  25. package/DiscordGateway/ShardStore/index.d.ts +12 -0
  26. package/DiscordGateway/ShardStore/index.js +22 -0
  27. package/DiscordGateway/ShardStore/index.js.map +1 -0
  28. package/DiscordGateway/Sharder/index.d.ts +9 -0
  29. package/DiscordGateway/Sharder/index.js +61 -0
  30. package/DiscordGateway/Sharder/index.js.map +1 -0
  31. package/DiscordGateway/WS/index.d.ts +27 -0
  32. package/DiscordGateway/WS/index.js +82 -0
  33. package/DiscordGateway/WS/index.js.map +1 -0
  34. package/DiscordGateway/index.d.ts +20 -0
  35. package/DiscordGateway/index.js +27 -0
  36. package/DiscordGateway/index.js.map +1 -0
  37. package/DiscordREST/index.d.ts +12 -0
  38. package/DiscordREST/index.js +85 -0
  39. package/DiscordREST/index.js.map +1 -0
  40. package/DiscordREST/types.d.ts +9 -0
  41. package/DiscordREST/types.js +2 -0
  42. package/DiscordREST/types.js.map +1 -0
  43. package/DiscordREST/utils.d.ts +10 -0
  44. package/DiscordREST/utils.js +22 -0
  45. package/DiscordREST/utils.js.map +1 -0
  46. package/Helpers/flags.d.ts +27 -0
  47. package/Helpers/flags.js +36 -0
  48. package/Helpers/flags.js.map +1 -0
  49. package/Helpers/intents.d.ts +24 -0
  50. package/Helpers/intents.js +28 -0
  51. package/Helpers/intents.js.map +1 -0
  52. package/Helpers/interactions.d.ts +73 -0
  53. package/Helpers/interactions.js +93 -0
  54. package/Helpers/interactions.js.map +1 -0
  55. package/Helpers/members.d.ts +9 -0
  56. package/Helpers/members.js +10 -0
  57. package/Helpers/members.js.map +1 -0
  58. package/Helpers/permissions.d.ts +34 -0
  59. package/Helpers/permissions.js +69 -0
  60. package/Helpers/permissions.js.map +1 -0
  61. package/Helpers/ui.d.ts +47 -0
  62. package/Helpers/ui.js +67 -0
  63. package/Helpers/ui.js.map +1 -0
  64. package/Http/index.d.ts +30 -0
  65. package/Http/index.js +53 -0
  66. package/Http/index.js.map +1 -0
  67. package/Interactions/context.d.ts +36 -0
  68. package/Interactions/context.js +34 -0
  69. package/Interactions/context.js.map +1 -0
  70. package/Interactions/definitions.d.ts +60 -0
  71. package/Interactions/definitions.js +52 -0
  72. package/Interactions/definitions.js.map +1 -0
  73. package/Interactions/gateway.d.ts +6 -0
  74. package/Interactions/gateway.js +21 -0
  75. package/Interactions/gateway.js.map +1 -0
  76. package/Interactions/handlers.d.ts +8 -0
  77. package/Interactions/handlers.js +49 -0
  78. package/Interactions/handlers.js.map +1 -0
  79. package/Interactions/index.d.ts +17 -0
  80. package/Interactions/index.js +39 -0
  81. package/Interactions/index.js.map +1 -0
  82. package/Interactions/utils.d.ts +10 -0
  83. package/Interactions/utils.js +61 -0
  84. package/Interactions/utils.js.map +1 -0
  85. package/Interactions/webhook.d.ts +32 -0
  86. package/Interactions/webhook.js +42 -0
  87. package/Interactions/webhook.js.map +1 -0
  88. package/Log/index.d.ts +12 -0
  89. package/Log/index.js +19 -0
  90. package/Log/index.js.map +1 -0
  91. package/RateLimitStore/index.d.ts +24 -0
  92. package/RateLimitStore/index.js +24 -0
  93. package/RateLimitStore/index.js.map +1 -0
  94. package/RateLimitStore/memory.d.ts +2 -0
  95. package/RateLimitStore/memory.js +31 -0
  96. package/RateLimitStore/memory.js.map +1 -0
  97. package/RateLimitStore/utils.d.ts +2 -0
  98. package/RateLimitStore/utils.js +18 -0
  99. package/RateLimitStore/utils.js.map +1 -0
  100. package/common-gateway.d.ts +5 -0
  101. package/common-gateway.js +6 -0
  102. package/common-gateway.js.map +1 -0
  103. package/common.d.ts +28 -0
  104. package/common.js +16 -0
  105. package/common.js.map +1 -0
  106. package/global.d.ts +17 -0
  107. package/global.js +2 -0
  108. package/global.js.map +1 -0
  109. package/index.d.ts +21 -0
  110. package/index.js +29 -0
  111. package/index.js.map +1 -0
  112. package/package.json +2 -6
  113. package/types.d.ts +4228 -0
  114. package/types.js +1796 -0
  115. package/types.js.map +1 -0
  116. package/utils/effect.d.ts +2 -0
  117. package/utils/effect.js +2 -0
  118. package/utils/effect.js.map +1 -0
  119. package/utils/tsplus.d.ts +13 -0
  120. package/utils/tsplus.js +2 -0
  121. package/utils/tsplus.js.map +1 -0
  122. package/webhooks.d.ts +15 -0
  123. package/webhooks.js +23 -0
  124. package/webhooks.js.map +1 -0
package/types.js ADDED
@@ -0,0 +1,1796 @@
1
+ export var ActionType;
2
+ (function (ActionType) {
3
+ /** blocks the content of a message according to the rule */
4
+ ActionType[ActionType["BLOCK_MESSAGE"] = 1] = "BLOCK_MESSAGE";
5
+ /** logs user content to a specified channel */
6
+ ActionType[ActionType["SEND_ALERT_MESSAGE"] = 2] = "SEND_ALERT_MESSAGE";
7
+ /** timeout user for a specified duration * */
8
+ ActionType[ActionType["TIMEOUT"] = 3] = "TIMEOUT";
9
+ })(ActionType || (ActionType = {}));
10
+ export const ActivityFlag = {
11
+ INSTANCE: 1 << 0,
12
+ JOIN: 1 << 1,
13
+ SPECTATE: 1 << 2,
14
+ JOIN_REQUEST: 1 << 3,
15
+ SYNC: 1 << 4,
16
+ PLAY: 1 << 5,
17
+ PARTY_PRIVACY_FRIENDS: 1 << 6,
18
+ PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
19
+ EMBEDDED: 1 << 8,
20
+ };
21
+ export var ActivityType;
22
+ (function (ActivityType) {
23
+ ActivityType[ActivityType["GAME"] = 0] = "GAME";
24
+ ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING";
25
+ ActivityType[ActivityType["LISTENING"] = 2] = "LISTENING";
26
+ ActivityType[ActivityType["WATCHING"] = 3] = "WATCHING";
27
+ ActivityType[ActivityType["CUSTOM"] = 4] = "CUSTOM";
28
+ ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING";
29
+ })(ActivityType || (ActivityType = {}));
30
+ export var AllowedMentionType;
31
+ (function (AllowedMentionType) {
32
+ /** Controls role mentions */
33
+ AllowedMentionType["ROLE_MENTIONS"] = "roles";
34
+ /** Controls user mentions */
35
+ AllowedMentionType["USER_MENTIONS"] = "users";
36
+ /** Controls @everyone and @here mentions */
37
+ AllowedMentionType["EVERYONE_MENTIONS"] = "everyone";
38
+ })(AllowedMentionType || (AllowedMentionType = {}));
39
+ export var ApplicationCommandOptionType;
40
+ (function (ApplicationCommandOptionType) {
41
+ ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND"] = 1] = "SUB_COMMAND";
42
+ ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND_GROUP"] = 2] = "SUB_COMMAND_GROUP";
43
+ ApplicationCommandOptionType[ApplicationCommandOptionType["STRING"] = 3] = "STRING";
44
+ ApplicationCommandOptionType[ApplicationCommandOptionType["INTEGER"] = 4] = "INTEGER";
45
+ ApplicationCommandOptionType[ApplicationCommandOptionType["BOOLEAN"] = 5] = "BOOLEAN";
46
+ ApplicationCommandOptionType[ApplicationCommandOptionType["USER"] = 6] = "USER";
47
+ ApplicationCommandOptionType[ApplicationCommandOptionType["CHANNEL"] = 7] = "CHANNEL";
48
+ ApplicationCommandOptionType[ApplicationCommandOptionType["ROLE"] = 8] = "ROLE";
49
+ ApplicationCommandOptionType[ApplicationCommandOptionType["MENTIONABLE"] = 9] = "MENTIONABLE";
50
+ ApplicationCommandOptionType[ApplicationCommandOptionType["NUMBER"] = 10] = "NUMBER";
51
+ ApplicationCommandOptionType[ApplicationCommandOptionType["ATTACHMENT"] = 11] = "ATTACHMENT";
52
+ })(ApplicationCommandOptionType || (ApplicationCommandOptionType = {}));
53
+ export var ApplicationCommandPermissionType;
54
+ (function (ApplicationCommandPermissionType) {
55
+ ApplicationCommandPermissionType[ApplicationCommandPermissionType["ROLE"] = 1] = "ROLE";
56
+ ApplicationCommandPermissionType[ApplicationCommandPermissionType["USER"] = 2] = "USER";
57
+ ApplicationCommandPermissionType[ApplicationCommandPermissionType["CHANNEL"] = 3] = "CHANNEL";
58
+ })(ApplicationCommandPermissionType || (ApplicationCommandPermissionType = {}));
59
+ export var ApplicationCommandType;
60
+ (function (ApplicationCommandType) {
61
+ /** Slash commands; a text-based command that shows up when a user types / */
62
+ ApplicationCommandType[ApplicationCommandType["CHAT_INPUT"] = 1] = "CHAT_INPUT";
63
+ /** A UI-based command that shows up when you right click or tap on a user */
64
+ ApplicationCommandType[ApplicationCommandType["USER"] = 2] = "USER";
65
+ /** A UI-based command that shows up when you right click or tap on a message */
66
+ ApplicationCommandType[ApplicationCommandType["MESSAGE"] = 3] = "MESSAGE";
67
+ })(ApplicationCommandType || (ApplicationCommandType = {}));
68
+ export const ApplicationFlag = {
69
+ /** Intent required for bots in 100 or more servers to receive presence_update events */
70
+ GATEWAY_PRESENCE: 1 << 12,
71
+ /** Intent required for bots in under 100 servers to receive presence_update events, found in Bot Settings */
72
+ GATEWAY_PRESENCE_LIMITED: 1 << 13,
73
+ /** Intent required for bots in 100 or more servers to receive member-related events like guild_member_add. See list of member-related events under GUILD_MEMBERS */
74
+ GATEWAY_GUILD_MEMBERS: 1 << 14,
75
+ /** Intent required for bots in under 100 servers to receive member-related events like guild_member_add, found in Bot Settings. See list of member-related events under GUILD_MEMBERS */
76
+ GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
77
+ /** Indicates unusual growth of an app that prevents verification */
78
+ VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
79
+ /** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
80
+ EMBEDDED: 1 << 17,
81
+ /** Intent required for bots in 100 or more servers to receive message content */
82
+ GATEWAY_MESSAGE_CONTENT: 1 << 18,
83
+ /** Intent required for bots in under 100 servers to receive message content, found in Bot Settings */
84
+ GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
85
+ /** Indicates if an app has registered global application commands */
86
+ APPLICATION_COMMAND_BADGE: 1 << 23,
87
+ };
88
+ export var AuditLogEvent;
89
+ (function (AuditLogEvent) {
90
+ /** Server settings were updated */
91
+ AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
92
+ /** Channel was created */
93
+ AuditLogEvent[AuditLogEvent["CHANNEL_CREATE"] = 10] = "CHANNEL_CREATE";
94
+ /** Channel settings were updated */
95
+ AuditLogEvent[AuditLogEvent["CHANNEL_UPDATE"] = 11] = "CHANNEL_UPDATE";
96
+ /** Channel was deleted */
97
+ AuditLogEvent[AuditLogEvent["CHANNEL_DELETE"] = 12] = "CHANNEL_DELETE";
98
+ /** Permission overwrite was added to a channel */
99
+ AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_CREATE"] = 13] = "CHANNEL_OVERWRITE_CREATE";
100
+ /** Permission overwrite was updated for a channel */
101
+ AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_UPDATE"] = 14] = "CHANNEL_OVERWRITE_UPDATE";
102
+ /** Permission overwrite was deleted from a channel */
103
+ AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_DELETE"] = 15] = "CHANNEL_OVERWRITE_DELETE";
104
+ /** Member was removed from server */
105
+ AuditLogEvent[AuditLogEvent["MEMBER_KICK"] = 20] = "MEMBER_KICK";
106
+ /** Members were pruned from server */
107
+ AuditLogEvent[AuditLogEvent["MEMBER_PRUNE"] = 21] = "MEMBER_PRUNE";
108
+ /** Member was banned from server */
109
+ AuditLogEvent[AuditLogEvent["MEMBER_BAN_ADD"] = 22] = "MEMBER_BAN_ADD";
110
+ /** Server ban was lifted for a member */
111
+ AuditLogEvent[AuditLogEvent["MEMBER_BAN_REMOVE"] = 23] = "MEMBER_BAN_REMOVE";
112
+ /** Member was updated in server */
113
+ AuditLogEvent[AuditLogEvent["MEMBER_UPDATE"] = 24] = "MEMBER_UPDATE";
114
+ /** Member was added or removed from a role */
115
+ AuditLogEvent[AuditLogEvent["MEMBER_ROLE_UPDATE"] = 25] = "MEMBER_ROLE_UPDATE";
116
+ /** Member was moved to a different voice channel */
117
+ AuditLogEvent[AuditLogEvent["MEMBER_MOVE"] = 26] = "MEMBER_MOVE";
118
+ /** Member was disconnected from a voice channel */
119
+ AuditLogEvent[AuditLogEvent["MEMBER_DISCONNECT"] = 27] = "MEMBER_DISCONNECT";
120
+ /** Bot user was added to server */
121
+ AuditLogEvent[AuditLogEvent["BOT_ADD"] = 28] = "BOT_ADD";
122
+ /** Role was created */
123
+ AuditLogEvent[AuditLogEvent["ROLE_CREATE"] = 30] = "ROLE_CREATE";
124
+ /** Role was edited */
125
+ AuditLogEvent[AuditLogEvent["ROLE_UPDATE"] = 31] = "ROLE_UPDATE";
126
+ /** Role was deleted */
127
+ AuditLogEvent[AuditLogEvent["ROLE_DELETE"] = 32] = "ROLE_DELETE";
128
+ /** Server invite was created */
129
+ AuditLogEvent[AuditLogEvent["INVITE_CREATE"] = 40] = "INVITE_CREATE";
130
+ /** Server invite was updated */
131
+ AuditLogEvent[AuditLogEvent["INVITE_UPDATE"] = 41] = "INVITE_UPDATE";
132
+ /** Server invite was deleted */
133
+ AuditLogEvent[AuditLogEvent["INVITE_DELETE"] = 42] = "INVITE_DELETE";
134
+ /** Webhook was created */
135
+ AuditLogEvent[AuditLogEvent["WEBHOOK_CREATE"] = 50] = "WEBHOOK_CREATE";
136
+ /** Webhook properties or channel were updated */
137
+ AuditLogEvent[AuditLogEvent["WEBHOOK_UPDATE"] = 51] = "WEBHOOK_UPDATE";
138
+ /** Webhook was deleted */
139
+ AuditLogEvent[AuditLogEvent["WEBHOOK_DELETE"] = 52] = "WEBHOOK_DELETE";
140
+ /** Emoji was created */
141
+ AuditLogEvent[AuditLogEvent["EMOJI_CREATE"] = 60] = "EMOJI_CREATE";
142
+ /** Emoji name was updated */
143
+ AuditLogEvent[AuditLogEvent["EMOJI_UPDATE"] = 61] = "EMOJI_UPDATE";
144
+ /** Emoji was deleted */
145
+ AuditLogEvent[AuditLogEvent["EMOJI_DELETE"] = 62] = "EMOJI_DELETE";
146
+ /** Single message was deleted */
147
+ AuditLogEvent[AuditLogEvent["MESSAGE_DELETE"] = 72] = "MESSAGE_DELETE";
148
+ /** Multiple messages were deleted */
149
+ AuditLogEvent[AuditLogEvent["MESSAGE_BULK_DELETE"] = 73] = "MESSAGE_BULK_DELETE";
150
+ /** Message was pinned to a channel */
151
+ AuditLogEvent[AuditLogEvent["MESSAGE_PIN"] = 74] = "MESSAGE_PIN";
152
+ /** Message was unpinned from a channel */
153
+ AuditLogEvent[AuditLogEvent["MESSAGE_UNPIN"] = 75] = "MESSAGE_UNPIN";
154
+ /** App was added to server */
155
+ AuditLogEvent[AuditLogEvent["INTEGRATION_CREATE"] = 80] = "INTEGRATION_CREATE";
156
+ /** App was updated (as an example, its scopes were updated) */
157
+ AuditLogEvent[AuditLogEvent["INTEGRATION_UPDATE"] = 81] = "INTEGRATION_UPDATE";
158
+ /** App was removed from server */
159
+ AuditLogEvent[AuditLogEvent["INTEGRATION_DELETE"] = 82] = "INTEGRATION_DELETE";
160
+ /** Stage instance was created (stage channel becomes live) */
161
+ AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_CREATE"] = 83] = "STAGE_INSTANCE_CREATE";
162
+ /** Stage instance details were updated */
163
+ AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_UPDATE"] = 84] = "STAGE_INSTANCE_UPDATE";
164
+ /** Stage instance was deleted (stage channel no longer live) */
165
+ AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_DELETE"] = 85] = "STAGE_INSTANCE_DELETE";
166
+ /** Sticker was created */
167
+ AuditLogEvent[AuditLogEvent["STICKER_CREATE"] = 90] = "STICKER_CREATE";
168
+ /** Sticker details were updated */
169
+ AuditLogEvent[AuditLogEvent["STICKER_UPDATE"] = 91] = "STICKER_UPDATE";
170
+ /** Sticker was deleted */
171
+ AuditLogEvent[AuditLogEvent["STICKER_DELETE"] = 92] = "STICKER_DELETE";
172
+ /** Event was created */
173
+ AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_CREATE"] = 100] = "GUILD_SCHEDULED_EVENT_CREATE";
174
+ /** Event was updated */
175
+ AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_UPDATE"] = 101] = "GUILD_SCHEDULED_EVENT_UPDATE";
176
+ /** Event was cancelled */
177
+ AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_DELETE"] = 102] = "GUILD_SCHEDULED_EVENT_DELETE";
178
+ /** Thread was created in a channel */
179
+ AuditLogEvent[AuditLogEvent["THREAD_CREATE"] = 110] = "THREAD_CREATE";
180
+ /** Thread was updated */
181
+ AuditLogEvent[AuditLogEvent["THREAD_UPDATE"] = 111] = "THREAD_UPDATE";
182
+ /** Thread was deleted */
183
+ AuditLogEvent[AuditLogEvent["THREAD_DELETE"] = 112] = "THREAD_DELETE";
184
+ /** Permissions were updated for a command */
185
+ AuditLogEvent[AuditLogEvent["APPLICATION_COMMAND_PERMISSION_UPDATE"] = 121] = "APPLICATION_COMMAND_PERMISSION_UPDATE";
186
+ /** Auto Moderation rule was created */
187
+ AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_CREATE"] = 140] = "AUTO_MODERATION_RULE_CREATE";
188
+ /** Auto Moderation rule was updated */
189
+ AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_UPDATE"] = 141] = "AUTO_MODERATION_RULE_UPDATE";
190
+ /** Auto Moderation rule was deleted */
191
+ AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_DELETE"] = 142] = "AUTO_MODERATION_RULE_DELETE";
192
+ /** Message was blocked by Auto Moderation */
193
+ AuditLogEvent[AuditLogEvent["AUTO_MODERATION_BLOCK_MESSAGE"] = 143] = "AUTO_MODERATION_BLOCK_MESSAGE";
194
+ /** Message was flagged by Auto Moderation */
195
+ AuditLogEvent[AuditLogEvent["AUTO_MODERATION_FLAG_TO_CHANNEL"] = 144] = "AUTO_MODERATION_FLAG_TO_CHANNEL";
196
+ /** Member was timed out by Auto Moderation */
197
+ AuditLogEvent[AuditLogEvent["AUTO_MODERATION_USER_COMMUNICATION_DISABLED"] = 145] = "AUTO_MODERATION_USER_COMMUNICATION_DISABLED";
198
+ })(AuditLogEvent || (AuditLogEvent = {}));
199
+ export var ButtonStyle;
200
+ (function (ButtonStyle) {
201
+ ButtonStyle[ButtonStyle["PRIMARY"] = 1] = "PRIMARY";
202
+ ButtonStyle[ButtonStyle["SECONDARY"] = 2] = "SECONDARY";
203
+ ButtonStyle[ButtonStyle["SUCCESS"] = 3] = "SUCCESS";
204
+ ButtonStyle[ButtonStyle["DANGER"] = 4] = "DANGER";
205
+ ButtonStyle[ButtonStyle["LINK"] = 5] = "LINK";
206
+ })(ButtonStyle || (ButtonStyle = {}));
207
+ export const ChannelFlag = {
208
+ /** this thread is pinned to the top of its parent GUILD_FORUM channel */
209
+ PINNED: 1 << 1,
210
+ /** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
211
+ REQUIRE_TAG: 1 << 4,
212
+ };
213
+ export var ChannelType;
214
+ (function (ChannelType) {
215
+ /** a text channel within a server */
216
+ ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
217
+ /** a direct message between users */
218
+ ChannelType[ChannelType["DM"] = 1] = "DM";
219
+ /** a voice channel within a server */
220
+ ChannelType[ChannelType["GUILD_VOICE"] = 2] = "GUILD_VOICE";
221
+ /** a direct message between multiple users */
222
+ ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM";
223
+ /** an organizational category that contains up to 50 channels */
224
+ ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY";
225
+ /** a channel that users can follow and crosspost into their own server (formerly news channels) */
226
+ ChannelType[ChannelType["GUILD_ANNOUNCEMENT"] = 5] = "GUILD_ANNOUNCEMENT";
227
+ /** a temporary sub-channel within a GUILD_ANNOUNCEMENT channel */
228
+ ChannelType[ChannelType["ANNOUNCEMENT_THREAD"] = 10] = "ANNOUNCEMENT_THREAD";
229
+ /** a temporary sub-channel within a GUILD_TEXT or GUILD_FORUM channel */
230
+ ChannelType[ChannelType["PUBLIC_THREAD"] = 11] = "PUBLIC_THREAD";
231
+ /** a temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission */
232
+ ChannelType[ChannelType["PRIVATE_THREAD"] = 12] = "PRIVATE_THREAD";
233
+ /** a voice channel for hosting events with an audience */
234
+ ChannelType[ChannelType["GUILD_STAGE_VOICE"] = 13] = "GUILD_STAGE_VOICE";
235
+ /** the channel in a hub containing the listed servers */
236
+ ChannelType[ChannelType["GUILD_DIRECTORY"] = 14] = "GUILD_DIRECTORY";
237
+ /** Channel that can only contain threads */
238
+ ChannelType[ChannelType["GUILD_FORUM"] = 15] = "GUILD_FORUM";
239
+ })(ChannelType || (ChannelType = {}));
240
+ export var ComponentType;
241
+ (function (ComponentType) {
242
+ /** Container for other components */
243
+ ComponentType[ComponentType["ACTION_ROW"] = 1] = "ACTION_ROW";
244
+ /** Button object */
245
+ ComponentType[ComponentType["BUTTON"] = 2] = "BUTTON";
246
+ /** Select menu for picking from defined text options */
247
+ ComponentType[ComponentType["STRING_SELECT"] = 3] = "STRING_SELECT";
248
+ /** Text input object */
249
+ ComponentType[ComponentType["TEXT_INPUT"] = 4] = "TEXT_INPUT";
250
+ /** Select menu for users */
251
+ ComponentType[ComponentType["USER_SELECT"] = 5] = "USER_SELECT";
252
+ /** Select menu for roles */
253
+ ComponentType[ComponentType["ROLE_SELECT"] = 6] = "ROLE_SELECT";
254
+ /** Select menu for mentionables (users and roles) */
255
+ ComponentType[ComponentType["MENTIONABLE_SELECT"] = 7] = "MENTIONABLE_SELECT";
256
+ /** Select menu for channels */
257
+ ComponentType[ComponentType["CHANNEL_SELECT"] = 8] = "CHANNEL_SELECT";
258
+ })(ComponentType || (ComponentType = {}));
259
+ export function createRoutes(fetch) {
260
+ return {
261
+ addGuildMember: (guildId, userId, params, options) => fetch({
262
+ method: "PUT",
263
+ url: `/guilds/${guildId}/members/${userId}`,
264
+ params,
265
+ options,
266
+ }),
267
+ addGuildMemberRole: (guildId, userId, roleId, options) => fetch({
268
+ method: "PUT",
269
+ url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
270
+ options,
271
+ }),
272
+ addThreadMember: (channelId, userId, options) => fetch({
273
+ method: "PUT",
274
+ url: `/channels/${channelId}/thread-members/${userId}`,
275
+ options,
276
+ }),
277
+ batchEditApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
278
+ method: "PUT",
279
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
280
+ options,
281
+ }),
282
+ beginGuildPrune: (guildId, params, options) => fetch({
283
+ method: "POST",
284
+ url: `/guilds/${guildId}/prune`,
285
+ params,
286
+ options,
287
+ }),
288
+ bulkDeleteMessages: (channelId, params, options) => fetch({
289
+ method: "POST",
290
+ url: `/channels/${channelId}/messages/bulk-delete`,
291
+ params,
292
+ options,
293
+ }),
294
+ bulkOverwriteGlobalApplicationCommands: (applicationId, options) => fetch({
295
+ method: "PUT",
296
+ url: `/applications/${applicationId}/commands`,
297
+ options,
298
+ }),
299
+ bulkOverwriteGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
300
+ method: "PUT",
301
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
302
+ params,
303
+ options,
304
+ }),
305
+ createAutoModerationRule: (guildId, params, options) => fetch({
306
+ method: "POST",
307
+ url: `/guilds/${guildId}/auto-moderation/rules`,
308
+ params,
309
+ options,
310
+ }),
311
+ createChannelInvite: (channelId, params, options) => fetch({
312
+ method: "POST",
313
+ url: `/channels/${channelId}/invites`,
314
+ params,
315
+ options,
316
+ }),
317
+ createDm: (params, options) => fetch({
318
+ method: "POST",
319
+ url: `/users/@me/channels`,
320
+ params,
321
+ options,
322
+ }),
323
+ createFollowupMessage: (applicationId, interactionToken, options) => fetch({
324
+ method: "POST",
325
+ url: `/webhooks/${applicationId}/${interactionToken}`,
326
+ options,
327
+ }),
328
+ createGlobalApplicationCommand: (applicationId, params, options) => fetch({
329
+ method: "POST",
330
+ url: `/applications/${applicationId}/commands`,
331
+ params,
332
+ options,
333
+ }),
334
+ createGroupDm: (params, options) => fetch({
335
+ method: "POST",
336
+ url: `/users/@me/channels`,
337
+ params,
338
+ options,
339
+ }),
340
+ createGuild: (params, options) => fetch({
341
+ method: "POST",
342
+ url: `/guilds`,
343
+ params,
344
+ options,
345
+ }),
346
+ createGuildApplicationCommand: (applicationId, guildId, params, options) => fetch({
347
+ method: "POST",
348
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
349
+ params,
350
+ options,
351
+ }),
352
+ createGuildBan: (guildId, userId, params, options) => fetch({
353
+ method: "PUT",
354
+ url: `/guilds/${guildId}/bans/${userId}`,
355
+ params,
356
+ options,
357
+ }),
358
+ createGuildChannel: (guildId, params, options) => fetch({
359
+ method: "POST",
360
+ url: `/guilds/${guildId}/channels`,
361
+ params,
362
+ options,
363
+ }),
364
+ createGuildEmoji: (guildId, params, options) => fetch({
365
+ method: "POST",
366
+ url: `/guilds/${guildId}/emojis`,
367
+ params,
368
+ options,
369
+ }),
370
+ createGuildFromGuildTemplate: (templateCode, params, options) => fetch({
371
+ method: "POST",
372
+ url: `/guilds/templates/${templateCode}`,
373
+ params,
374
+ options,
375
+ }),
376
+ createGuildRole: (guildId, params, options) => fetch({
377
+ method: "POST",
378
+ url: `/guilds/${guildId}/roles`,
379
+ params,
380
+ options,
381
+ }),
382
+ createGuildScheduledEvent: (guildId, params, options) => fetch({
383
+ method: "POST",
384
+ url: `/guilds/${guildId}/scheduled-events`,
385
+ params,
386
+ options,
387
+ }),
388
+ createGuildSticker: (guildId, params, options) => fetch({
389
+ method: "POST",
390
+ url: `/guilds/${guildId}/stickers`,
391
+ params,
392
+ options,
393
+ }),
394
+ createGuildTemplate: (guildId, params, options) => fetch({
395
+ method: "POST",
396
+ url: `/guilds/${guildId}/templates`,
397
+ params,
398
+ options,
399
+ }),
400
+ createInteractionResponse: (interactionId, interactionToken, params, options) => fetch({
401
+ method: "POST",
402
+ url: `/interactions/${interactionId}/${interactionToken}/callback`,
403
+ params,
404
+ options,
405
+ }),
406
+ createMessage: (channelId, params, options) => fetch({
407
+ method: "POST",
408
+ url: `/channels/${channelId}/messages`,
409
+ params,
410
+ options,
411
+ }),
412
+ createReaction: (channelId, messageId, emoji, options) => fetch({
413
+ method: "PUT",
414
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
415
+ options,
416
+ }),
417
+ createStageInstance: (params, options) => fetch({
418
+ method: "POST",
419
+ url: `/stage-instances`,
420
+ params,
421
+ options,
422
+ }),
423
+ createWebhook: (channelId, params, options) => fetch({
424
+ method: "POST",
425
+ url: `/channels/${channelId}/webhooks`,
426
+ params,
427
+ options,
428
+ }),
429
+ crosspostMessage: (channelId, messageId, options) => fetch({
430
+ method: "POST",
431
+ url: `/channels/${channelId}/messages/${messageId}/crosspost`,
432
+ options,
433
+ }),
434
+ deleteAllReactions: (channelId, messageId, options) => fetch({
435
+ method: "DELETE",
436
+ url: `/channels/${channelId}/messages/${messageId}/reactions`,
437
+ options,
438
+ }),
439
+ deleteAllReactionsForEmoji: (channelId, messageId, emoji, options) => fetch({
440
+ method: "DELETE",
441
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
442
+ options,
443
+ }),
444
+ deleteAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
445
+ method: "DELETE",
446
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
447
+ options,
448
+ }),
449
+ deleteChannelPermission: (channelId, overwriteId, options) => fetch({
450
+ method: "DELETE",
451
+ url: `/channels/${channelId}/permissions/${overwriteId}`,
452
+ options,
453
+ }),
454
+ deletecloseChannel: (channelId, options) => fetch({
455
+ method: "DELETE",
456
+ url: `/channels/${channelId}`,
457
+ options,
458
+ }),
459
+ deleteFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
460
+ method: "DELETE",
461
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
462
+ options,
463
+ }),
464
+ deleteGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
465
+ method: "DELETE",
466
+ url: `/applications/${applicationId}/commands/${commandId}`,
467
+ options,
468
+ }),
469
+ deleteGuild: (guildId, options) => fetch({
470
+ method: "DELETE",
471
+ url: `/guilds/${guildId}`,
472
+ options,
473
+ }),
474
+ deleteGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
475
+ method: "DELETE",
476
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
477
+ options,
478
+ }),
479
+ deleteGuildEmoji: (guildId, emojiId, options) => fetch({
480
+ method: "DELETE",
481
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
482
+ options,
483
+ }),
484
+ deleteGuildIntegration: (guildId, integrationId, options) => fetch({
485
+ method: "DELETE",
486
+ url: `/guilds/${guildId}/integrations/${integrationId}`,
487
+ options,
488
+ }),
489
+ deleteGuildRole: (guildId, roleId, options) => fetch({
490
+ method: "DELETE",
491
+ url: `/guilds/${guildId}/roles/${roleId}`,
492
+ options,
493
+ }),
494
+ deleteGuildScheduledEvent: (guildId, guildScheduledEventId, options) => fetch({
495
+ method: "DELETE",
496
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
497
+ options,
498
+ }),
499
+ deleteGuildSticker: (guildId, stickerId, options) => fetch({
500
+ method: "DELETE",
501
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
502
+ options,
503
+ }),
504
+ deleteGuildTemplate: (guildId, templateCode, options) => fetch({
505
+ method: "DELETE",
506
+ url: `/guilds/${guildId}/templates/${templateCode}`,
507
+ options,
508
+ }),
509
+ deleteInvite: (inviteCode, options) => fetch({
510
+ method: "DELETE",
511
+ url: `/invites/${inviteCode}`,
512
+ options,
513
+ }),
514
+ deleteMessage: (channelId, messageId, options) => fetch({
515
+ method: "DELETE",
516
+ url: `/channels/${channelId}/messages/${messageId}`,
517
+ options,
518
+ }),
519
+ deleteOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
520
+ method: "DELETE",
521
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
522
+ options,
523
+ }),
524
+ deleteOwnReaction: (channelId, messageId, emoji, options) => fetch({
525
+ method: "DELETE",
526
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
527
+ options,
528
+ }),
529
+ deleteStageInstance: (channelId, options) => fetch({
530
+ method: "DELETE",
531
+ url: `/stage-instances/${channelId}`,
532
+ options,
533
+ }),
534
+ deleteUserReaction: (channelId, messageId, emoji, userId, options) => fetch({
535
+ method: "DELETE",
536
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
537
+ options,
538
+ }),
539
+ deleteWebhook: (webhookId, options) => fetch({
540
+ method: "DELETE",
541
+ url: `/webhooks/${webhookId}`,
542
+ options,
543
+ }),
544
+ deleteWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
545
+ method: "DELETE",
546
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
547
+ params,
548
+ options,
549
+ }),
550
+ deleteWebhookWithToken: (webhookId, webhookToken, options) => fetch({
551
+ method: "DELETE",
552
+ url: `/webhooks/${webhookId}/${webhookToken}`,
553
+ options,
554
+ }),
555
+ editApplicationCommandPermissions: (applicationId, guildId, commandId, params, options) => fetch({
556
+ method: "PUT",
557
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
558
+ params,
559
+ options,
560
+ }),
561
+ editChannelPermissions: (channelId, overwriteId, params, options) => fetch({
562
+ method: "PUT",
563
+ url: `/channels/${channelId}/permissions/${overwriteId}`,
564
+ params,
565
+ options,
566
+ }),
567
+ editFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
568
+ method: "PATCH",
569
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
570
+ options,
571
+ }),
572
+ editGlobalApplicationCommand: (applicationId, commandId, params, options) => fetch({
573
+ method: "PATCH",
574
+ url: `/applications/${applicationId}/commands/${commandId}`,
575
+ params,
576
+ options,
577
+ }),
578
+ editGuildApplicationCommand: (applicationId, guildId, commandId, params, options) => fetch({
579
+ method: "PATCH",
580
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
581
+ params,
582
+ options,
583
+ }),
584
+ editMessage: (channelId, messageId, params, options) => fetch({
585
+ method: "PATCH",
586
+ url: `/channels/${channelId}/messages/${messageId}`,
587
+ params,
588
+ options,
589
+ }),
590
+ editOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
591
+ method: "PATCH",
592
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
593
+ options,
594
+ }),
595
+ editWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
596
+ method: "PATCH",
597
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
598
+ params,
599
+ options,
600
+ }),
601
+ executeGitHubCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
602
+ method: "POST",
603
+ url: `/webhooks/${webhookId}/${webhookToken}/github`,
604
+ options,
605
+ }),
606
+ executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
607
+ method: "POST",
608
+ url: `/webhooks/${webhookId}/${webhookToken}/slack`,
609
+ options,
610
+ }),
611
+ executeWebhook: (webhookId, webhookToken, params, options) => fetch({
612
+ method: "POST",
613
+ url: `/webhooks/${webhookId}/${webhookToken}`,
614
+ params,
615
+ options,
616
+ }),
617
+ followAnnouncementChannel: (channelId, params, options) => fetch({
618
+ method: "POST",
619
+ url: `/channels/${channelId}/followers`,
620
+ params,
621
+ options,
622
+ }),
623
+ getApplicationCommandPermissions: (applicationId, guildId, commandId, options) => fetch({
624
+ method: "GET",
625
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
626
+ options,
627
+ }),
628
+ getAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
629
+ method: "GET",
630
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
631
+ options,
632
+ }),
633
+ getChannel: (channelId, options) => fetch({
634
+ method: "GET",
635
+ url: `/channels/${channelId}`,
636
+ options,
637
+ }),
638
+ getChannelInvites: (channelId, options) => fetch({
639
+ method: "GET",
640
+ url: `/channels/${channelId}/invites`,
641
+ options,
642
+ }),
643
+ getChannelMessage: (channelId, messageId, options) => fetch({
644
+ method: "GET",
645
+ url: `/channels/${channelId}/messages/${messageId}`,
646
+ options,
647
+ }),
648
+ getChannelMessages: (channelId, params, options) => fetch({
649
+ method: "GET",
650
+ url: `/channels/${channelId}/messages`,
651
+ params,
652
+ options,
653
+ }),
654
+ getChannelWebhooks: (channelId, options) => fetch({
655
+ method: "GET",
656
+ url: `/channels/${channelId}/webhooks`,
657
+ options,
658
+ }),
659
+ getCurrentAuthorizationInformation: (options) => fetch({
660
+ method: "GET",
661
+ url: `/oauth2/@me`,
662
+ options,
663
+ }),
664
+ getCurrentBotApplicationInformation: (options) => fetch({
665
+ method: "GET",
666
+ url: `/oauth2/applications/@me`,
667
+ options,
668
+ }),
669
+ getCurrentUser: (options) => fetch({
670
+ method: "GET",
671
+ url: `/users/@me`,
672
+ options,
673
+ }),
674
+ getCurrentUserGuildMember: (guildId, options) => fetch({
675
+ method: "GET",
676
+ url: `/users/@me/guilds/${guildId}/member`,
677
+ options,
678
+ }),
679
+ getCurrentUserGuilds: (params, options) => fetch({
680
+ method: "GET",
681
+ url: `/users/@me/guilds`,
682
+ params,
683
+ options,
684
+ }),
685
+ getFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
686
+ method: "GET",
687
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
688
+ options,
689
+ }),
690
+ getGateway: (options) => fetch({
691
+ method: "GET",
692
+ url: `/gateway`,
693
+ options,
694
+ }),
695
+ getGatewayBot: (options) => fetch({
696
+ method: "GET",
697
+ url: `/gateway/bot`,
698
+ options,
699
+ }),
700
+ getGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
701
+ method: "GET",
702
+ url: `/applications/${applicationId}/commands/${commandId}`,
703
+ options,
704
+ }),
705
+ getGlobalApplicationCommands: (applicationId, params, options) => fetch({
706
+ method: "GET",
707
+ url: `/applications/${applicationId}/commands`,
708
+ params,
709
+ options,
710
+ }),
711
+ getGuild: (guildId, params, options) => fetch({
712
+ method: "GET",
713
+ url: `/guilds/${guildId}`,
714
+ params,
715
+ options,
716
+ }),
717
+ getGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
718
+ method: "GET",
719
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
720
+ options,
721
+ }),
722
+ getGuildApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
723
+ method: "GET",
724
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
725
+ options,
726
+ }),
727
+ getGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
728
+ method: "GET",
729
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
730
+ params,
731
+ options,
732
+ }),
733
+ getGuildAuditLog: (guildId, params, options) => fetch({
734
+ method: "GET",
735
+ url: `/guilds/${guildId}/audit-logs`,
736
+ params,
737
+ options,
738
+ }),
739
+ getGuildBan: (guildId, userId, options) => fetch({
740
+ method: "GET",
741
+ url: `/guilds/${guildId}/bans/${userId}`,
742
+ options,
743
+ }),
744
+ getGuildBans: (guildId, params, options) => fetch({
745
+ method: "GET",
746
+ url: `/guilds/${guildId}/bans`,
747
+ params,
748
+ options,
749
+ }),
750
+ getGuildChannels: (guildId, options) => fetch({
751
+ method: "GET",
752
+ url: `/guilds/${guildId}/channels`,
753
+ options,
754
+ }),
755
+ getGuildEmoji: (guildId, emojiId, options) => fetch({
756
+ method: "GET",
757
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
758
+ options,
759
+ }),
760
+ getGuildIntegrations: (guildId, options) => fetch({
761
+ method: "GET",
762
+ url: `/guilds/${guildId}/integrations`,
763
+ options,
764
+ }),
765
+ getGuildInvites: (guildId, options) => fetch({
766
+ method: "GET",
767
+ url: `/guilds/${guildId}/invites`,
768
+ options,
769
+ }),
770
+ getGuildMember: (guildId, userId, options) => fetch({
771
+ method: "GET",
772
+ url: `/guilds/${guildId}/members/${userId}`,
773
+ options,
774
+ }),
775
+ getGuildPreview: (guildId, options) => fetch({
776
+ method: "GET",
777
+ url: `/guilds/${guildId}/preview`,
778
+ options,
779
+ }),
780
+ getGuildPruneCount: (guildId, params, options) => fetch({
781
+ method: "GET",
782
+ url: `/guilds/${guildId}/prune`,
783
+ params,
784
+ options,
785
+ }),
786
+ getGuildRoles: (guildId, options) => fetch({
787
+ method: "GET",
788
+ url: `/guilds/${guildId}/roles`,
789
+ options,
790
+ }),
791
+ getGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
792
+ method: "GET",
793
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
794
+ params,
795
+ options,
796
+ }),
797
+ getGuildScheduledEventUsers: (guildId, guildScheduledEventId, params, options) => fetch({
798
+ method: "GET",
799
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
800
+ params,
801
+ options,
802
+ }),
803
+ getGuildSticker: (guildId, stickerId, options) => fetch({
804
+ method: "GET",
805
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
806
+ options,
807
+ }),
808
+ getGuildTemplate: (templateCode, options) => fetch({
809
+ method: "GET",
810
+ url: `/guilds/templates/${templateCode}`,
811
+ options,
812
+ }),
813
+ getGuildTemplates: (guildId, options) => fetch({
814
+ method: "GET",
815
+ url: `/guilds/${guildId}/templates`,
816
+ options,
817
+ }),
818
+ getGuildVanityUrl: (guildId, options) => fetch({
819
+ method: "GET",
820
+ url: `/guilds/${guildId}/vanity-url`,
821
+ options,
822
+ }),
823
+ getGuildVoiceRegions: (guildId, options) => fetch({
824
+ method: "GET",
825
+ url: `/guilds/${guildId}/regions`,
826
+ options,
827
+ }),
828
+ getGuildWebhooks: (guildId, options) => fetch({
829
+ method: "GET",
830
+ url: `/guilds/${guildId}/webhooks`,
831
+ options,
832
+ }),
833
+ getGuildWelcomeScreen: (guildId, options) => fetch({
834
+ method: "GET",
835
+ url: `/guilds/${guildId}/welcome-screen`,
836
+ options,
837
+ }),
838
+ getGuildWidget: (guildId, options) => fetch({
839
+ method: "GET",
840
+ url: `/guilds/${guildId}/widget.json`,
841
+ options,
842
+ }),
843
+ getGuildWidgetImage: (guildId, params, options) => fetch({
844
+ method: "GET",
845
+ url: `/guilds/${guildId}/widget.png`,
846
+ params,
847
+ options,
848
+ }),
849
+ getGuildWidgetSettings: (guildId, options) => fetch({
850
+ method: "GET",
851
+ url: `/guilds/${guildId}/widget`,
852
+ options,
853
+ }),
854
+ getInvite: (inviteCode, params, options) => fetch({
855
+ method: "GET",
856
+ url: `/invites/${inviteCode}`,
857
+ params,
858
+ options,
859
+ }),
860
+ getOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
861
+ method: "GET",
862
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
863
+ options,
864
+ }),
865
+ getPinnedMessages: (channelId, options) => fetch({
866
+ method: "GET",
867
+ url: `/channels/${channelId}/pins`,
868
+ options,
869
+ }),
870
+ getReactions: (channelId, messageId, emoji, params, options) => fetch({
871
+ method: "GET",
872
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
873
+ params,
874
+ options,
875
+ }),
876
+ getStageInstance: (channelId, options) => fetch({
877
+ method: "GET",
878
+ url: `/stage-instances/${channelId}`,
879
+ options,
880
+ }),
881
+ getSticker: (stickerId, options) => fetch({
882
+ method: "GET",
883
+ url: `/stickers/${stickerId}`,
884
+ options,
885
+ }),
886
+ getThreadMember: (channelId, userId, options) => fetch({
887
+ method: "GET",
888
+ url: `/channels/${channelId}/thread-members/${userId}`,
889
+ options,
890
+ }),
891
+ getUser: (userId, options) => fetch({
892
+ method: "GET",
893
+ url: `/users/${userId}`,
894
+ options,
895
+ }),
896
+ getUserConnections: (options) => fetch({
897
+ method: "GET",
898
+ url: `/users/@me/connections`,
899
+ options,
900
+ }),
901
+ getWebhook: (webhookId, options) => fetch({
902
+ method: "GET",
903
+ url: `/webhooks/${webhookId}`,
904
+ options,
905
+ }),
906
+ getWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
907
+ method: "GET",
908
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
909
+ params,
910
+ options,
911
+ }),
912
+ getWebhookWithToken: (webhookId, webhookToken, options) => fetch({
913
+ method: "GET",
914
+ url: `/webhooks/${webhookId}/${webhookToken}`,
915
+ options,
916
+ }),
917
+ groupDmAddRecipient: (channelId, userId, params, options) => fetch({
918
+ method: "PUT",
919
+ url: `/channels/${channelId}/recipients/${userId}`,
920
+ params,
921
+ options,
922
+ }),
923
+ groupDmRemoveRecipient: (channelId, userId, options) => fetch({
924
+ method: "DELETE",
925
+ url: `/channels/${channelId}/recipients/${userId}`,
926
+ options,
927
+ }),
928
+ joinThread: (channelId, options) => fetch({
929
+ method: "PUT",
930
+ url: `/channels/${channelId}/thread-members/@me`,
931
+ options,
932
+ }),
933
+ leaveGuild: (guildId, options) => fetch({
934
+ method: "DELETE",
935
+ url: `/users/@me/guilds/${guildId}`,
936
+ options,
937
+ }),
938
+ leaveThread: (channelId, options) => fetch({
939
+ method: "DELETE",
940
+ url: `/channels/${channelId}/thread-members/@me`,
941
+ options,
942
+ }),
943
+ listActiveGuildThreads: (guildId, options) => fetch({
944
+ method: "GET",
945
+ url: `/guilds/${guildId}/threads/active`,
946
+ options,
947
+ }),
948
+ listAutoModerationRulesForGuild: (guildId, options) => fetch({
949
+ method: "GET",
950
+ url: `/guilds/${guildId}/auto-moderation/rules`,
951
+ options,
952
+ }),
953
+ listGuildEmojis: (guildId, options) => fetch({
954
+ method: "GET",
955
+ url: `/guilds/${guildId}/emojis`,
956
+ options,
957
+ }),
958
+ listGuildMembers: (guildId, params, options) => fetch({
959
+ method: "GET",
960
+ url: `/guilds/${guildId}/members`,
961
+ params,
962
+ options,
963
+ }),
964
+ listGuildStickers: (guildId, options) => fetch({
965
+ method: "GET",
966
+ url: `/guilds/${guildId}/stickers`,
967
+ options,
968
+ }),
969
+ listJoinedPrivateArchivedThreads: (channelId, params, options) => fetch({
970
+ method: "GET",
971
+ url: `/channels/${channelId}/users/@me/threads/archived/private`,
972
+ params,
973
+ options,
974
+ }),
975
+ listNitroStickerPacks: (options) => fetch({
976
+ method: "GET",
977
+ url: `/sticker-packs`,
978
+ options,
979
+ }),
980
+ listPrivateArchivedThreads: (channelId, params, options) => fetch({
981
+ method: "GET",
982
+ url: `/channels/${channelId}/threads/archived/private`,
983
+ params,
984
+ options,
985
+ }),
986
+ listPublicArchivedThreads: (channelId, params, options) => fetch({
987
+ method: "GET",
988
+ url: `/channels/${channelId}/threads/archived/public`,
989
+ params,
990
+ options,
991
+ }),
992
+ listScheduledEventsForGuild: (guildId, params, options) => fetch({
993
+ method: "GET",
994
+ url: `/guilds/${guildId}/scheduled-events`,
995
+ params,
996
+ options,
997
+ }),
998
+ listThreadMembers: (channelId, options) => fetch({
999
+ method: "GET",
1000
+ url: `/channels/${channelId}/thread-members`,
1001
+ options,
1002
+ }),
1003
+ listVoiceRegions: (options) => fetch({
1004
+ method: "GET",
1005
+ url: `/voice/regions`,
1006
+ options,
1007
+ }),
1008
+ modifyAutoModerationRule: (guildId, autoModerationRuleId, params, options) => fetch({
1009
+ method: "PATCH",
1010
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
1011
+ params,
1012
+ options,
1013
+ }),
1014
+ modifyChannel: (channelId, params, options) => fetch({
1015
+ method: "PATCH",
1016
+ url: `/channels/${channelId}`,
1017
+ params,
1018
+ options,
1019
+ }),
1020
+ modifyCurrentMember: (guildId, params, options) => fetch({
1021
+ method: "PATCH",
1022
+ url: `/guilds/${guildId}/members/@me`,
1023
+ params,
1024
+ options,
1025
+ }),
1026
+ modifyCurrentUser: (params, options) => fetch({
1027
+ method: "PATCH",
1028
+ url: `/users/@me`,
1029
+ params,
1030
+ options,
1031
+ }),
1032
+ modifyCurrentUserNick: (guildId, params, options) => fetch({
1033
+ method: "PATCH",
1034
+ url: `/guilds/${guildId}/members/@me/nick`,
1035
+ params,
1036
+ options,
1037
+ }),
1038
+ modifyCurrentUserVoiceState: (guildId, params, options) => fetch({
1039
+ method: "PATCH",
1040
+ url: `/guilds/${guildId}/voice-states/@me`,
1041
+ params,
1042
+ options,
1043
+ }),
1044
+ modifyGuild: (guildId, params, options) => fetch({
1045
+ method: "PATCH",
1046
+ url: `/guilds/${guildId}`,
1047
+ params,
1048
+ options,
1049
+ }),
1050
+ modifyGuildChannelPositions: (guildId, params, options) => fetch({
1051
+ method: "PATCH",
1052
+ url: `/guilds/${guildId}/channels`,
1053
+ params,
1054
+ options,
1055
+ }),
1056
+ modifyGuildEmoji: (guildId, emojiId, params, options) => fetch({
1057
+ method: "PATCH",
1058
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
1059
+ params,
1060
+ options,
1061
+ }),
1062
+ modifyGuildMember: (guildId, userId, params, options) => fetch({
1063
+ method: "PATCH",
1064
+ url: `/guilds/${guildId}/members/${userId}`,
1065
+ params,
1066
+ options,
1067
+ }),
1068
+ modifyGuildMfaLevel: (guildId, params, options) => fetch({
1069
+ method: "POST",
1070
+ url: `/guilds/${guildId}/mfa`,
1071
+ params,
1072
+ options,
1073
+ }),
1074
+ modifyGuildRole: (guildId, roleId, params, options) => fetch({
1075
+ method: "PATCH",
1076
+ url: `/guilds/${guildId}/roles/${roleId}`,
1077
+ params,
1078
+ options,
1079
+ }),
1080
+ modifyGuildRolePositions: (guildId, params, options) => fetch({
1081
+ method: "PATCH",
1082
+ url: `/guilds/${guildId}/roles`,
1083
+ params,
1084
+ options,
1085
+ }),
1086
+ modifyGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
1087
+ method: "PATCH",
1088
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
1089
+ params,
1090
+ options,
1091
+ }),
1092
+ modifyGuildSticker: (guildId, stickerId, params, options) => fetch({
1093
+ method: "PATCH",
1094
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
1095
+ params,
1096
+ options,
1097
+ }),
1098
+ modifyGuildTemplate: (guildId, templateCode, params, options) => fetch({
1099
+ method: "PATCH",
1100
+ url: `/guilds/${guildId}/templates/${templateCode}`,
1101
+ params,
1102
+ options,
1103
+ }),
1104
+ modifyGuildWelcomeScreen: (guildId, params, options) => fetch({
1105
+ method: "PATCH",
1106
+ url: `/guilds/${guildId}/welcome-screen`,
1107
+ params,
1108
+ options,
1109
+ }),
1110
+ modifyGuildWidget: (guildId, options) => fetch({
1111
+ method: "PATCH",
1112
+ url: `/guilds/${guildId}/widget`,
1113
+ options,
1114
+ }),
1115
+ modifyStageInstance: (channelId, params, options) => fetch({
1116
+ method: "PATCH",
1117
+ url: `/stage-instances/${channelId}`,
1118
+ params,
1119
+ options,
1120
+ }),
1121
+ modifyUserVoiceState: (guildId, userId, params, options) => fetch({
1122
+ method: "PATCH",
1123
+ url: `/guilds/${guildId}/voice-states/${userId}`,
1124
+ params,
1125
+ options,
1126
+ }),
1127
+ modifyWebhook: (webhookId, params, options) => fetch({
1128
+ method: "PATCH",
1129
+ url: `/webhooks/${webhookId}`,
1130
+ params,
1131
+ options,
1132
+ }),
1133
+ modifyWebhookWithToken: (webhookId, webhookToken, options) => fetch({
1134
+ method: "PATCH",
1135
+ url: `/webhooks/${webhookId}/${webhookToken}`,
1136
+ options,
1137
+ }),
1138
+ pinMessage: (channelId, messageId, options) => fetch({
1139
+ method: "PUT",
1140
+ url: `/channels/${channelId}/pins/${messageId}`,
1141
+ options,
1142
+ }),
1143
+ removeGuildBan: (guildId, userId, options) => fetch({
1144
+ method: "DELETE",
1145
+ url: `/guilds/${guildId}/bans/${userId}`,
1146
+ options,
1147
+ }),
1148
+ removeGuildMember: (guildId, userId, options) => fetch({
1149
+ method: "DELETE",
1150
+ url: `/guilds/${guildId}/members/${userId}`,
1151
+ options,
1152
+ }),
1153
+ removeGuildMemberRole: (guildId, userId, roleId, options) => fetch({
1154
+ method: "DELETE",
1155
+ url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
1156
+ options,
1157
+ }),
1158
+ removeThreadMember: (channelId, userId, options) => fetch({
1159
+ method: "DELETE",
1160
+ url: `/channels/${channelId}/thread-members/${userId}`,
1161
+ options,
1162
+ }),
1163
+ searchGuildMembers: (guildId, params, options) => fetch({
1164
+ method: "GET",
1165
+ url: `/guilds/${guildId}/members/search`,
1166
+ params,
1167
+ options,
1168
+ }),
1169
+ startThreadFromMessage: (channelId, messageId, params, options) => fetch({
1170
+ method: "POST",
1171
+ url: `/channels/${channelId}/messages/${messageId}/threads`,
1172
+ params,
1173
+ options,
1174
+ }),
1175
+ startThreadInForumChannel: (channelId, params, options) => fetch({
1176
+ method: "POST",
1177
+ url: `/channels/${channelId}/threads`,
1178
+ params,
1179
+ options,
1180
+ }),
1181
+ startThreadWithoutMessage: (channelId, params, options) => fetch({
1182
+ method: "POST",
1183
+ url: `/channels/${channelId}/threads`,
1184
+ params,
1185
+ options,
1186
+ }),
1187
+ syncGuildTemplate: (guildId, templateCode, options) => fetch({
1188
+ method: "PUT",
1189
+ url: `/guilds/${guildId}/templates/${templateCode}`,
1190
+ options,
1191
+ }),
1192
+ triggerTypingIndicator: (channelId, options) => fetch({
1193
+ method: "POST",
1194
+ url: `/channels/${channelId}/typing`,
1195
+ options,
1196
+ }),
1197
+ unpinMessage: (channelId, messageId, options) => fetch({
1198
+ method: "DELETE",
1199
+ url: `/channels/${channelId}/pins/${messageId}`,
1200
+ options,
1201
+ }),
1202
+ };
1203
+ }
1204
+ export var DefaultMessageNotificationLevel;
1205
+ (function (DefaultMessageNotificationLevel) {
1206
+ /** members will receive notifications for all messages by default */
1207
+ DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ALL_MESSAGES"] = 0] = "ALL_MESSAGES";
1208
+ /** members will receive notifications only for messages that @mention them by default */
1209
+ DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ONLY_MENTIONS"] = 1] = "ONLY_MENTIONS";
1210
+ })(DefaultMessageNotificationLevel || (DefaultMessageNotificationLevel = {}));
1211
+ export var EmbedType;
1212
+ (function (EmbedType) {
1213
+ /** generic embed rendered from embed attributes */
1214
+ EmbedType["RICH"] = "rich";
1215
+ /** image embed */
1216
+ EmbedType["IMAGE"] = "image";
1217
+ /** video embed */
1218
+ EmbedType["VIDEO"] = "video";
1219
+ /** animated gif image embed rendered as a video embed */
1220
+ EmbedType["GIFV"] = "gifv";
1221
+ /** article embed */
1222
+ EmbedType["ARTICLE"] = "article";
1223
+ /** link embed */
1224
+ EmbedType["LINK"] = "link";
1225
+ })(EmbedType || (EmbedType = {}));
1226
+ export var EventType;
1227
+ (function (EventType) {
1228
+ /** when a member sends or edits a message in the guild */
1229
+ EventType[EventType["MESSAGE_SEND"] = 1] = "MESSAGE_SEND";
1230
+ })(EventType || (EventType = {}));
1231
+ export var ExplicitContentFilterLevel;
1232
+ (function (ExplicitContentFilterLevel) {
1233
+ /** media content will not be scanned */
1234
+ ExplicitContentFilterLevel[ExplicitContentFilterLevel["DISABLED"] = 0] = "DISABLED";
1235
+ /** media content sent by members without roles will be scanned */
1236
+ ExplicitContentFilterLevel[ExplicitContentFilterLevel["MEMBERS_WITHOUT_ROLES"] = 1] = "MEMBERS_WITHOUT_ROLES";
1237
+ /** media content sent by all members will be scanned */
1238
+ ExplicitContentFilterLevel[ExplicitContentFilterLevel["ALL_MEMBERS"] = 2] = "ALL_MEMBERS";
1239
+ })(ExplicitContentFilterLevel || (ExplicitContentFilterLevel = {}));
1240
+ export const GatewayIntents = {
1241
+ GUILDS: 1 << 0,
1242
+ GUILD_MEMBERS: 1 << 1,
1243
+ GUILD_BANS: 1 << 2,
1244
+ GUILD_EMOJIS_AND_STICKERS: 1 << 3,
1245
+ GUILD_INTEGRATIONS: 1 << 4,
1246
+ GUILD_WEBHOOKS: 1 << 5,
1247
+ GUILD_INVITES: 1 << 6,
1248
+ GUILD_VOICE_STATES: 1 << 7,
1249
+ GUILD_PRESENCES: 1 << 8,
1250
+ GUILD_MESSAGES: 1 << 9,
1251
+ GUILD_MESSAGE_REACTIONS: 1 << 10,
1252
+ GUILD_MESSAGE_TYPING: 1 << 11,
1253
+ DIRECT_MESSAGES: 1 << 12,
1254
+ DIRECT_MESSAGE_REACTIONS: 1 << 13,
1255
+ DIRECT_MESSAGE_TYPING: 1 << 14,
1256
+ MESSAGE_CONTENT: 1 << 15,
1257
+ GUILD_SCHEDULED_EVENTS: 1 << 16,
1258
+ AUTO_MODERATION_CONFIGURATION: 1 << 20,
1259
+ AUTO_MODERATION_EXECUTION: 1 << 21,
1260
+ };
1261
+ export var GatewayOpcode;
1262
+ (function (GatewayOpcode) {
1263
+ /** An event was dispatched. */
1264
+ GatewayOpcode[GatewayOpcode["DISPATCH"] = 0] = "DISPATCH";
1265
+ /** Fired periodically by the client to keep the connection alive. */
1266
+ GatewayOpcode[GatewayOpcode["HEARTBEAT"] = 1] = "HEARTBEAT";
1267
+ /** Starts a new session during the initial handshake. */
1268
+ GatewayOpcode[GatewayOpcode["IDENTIFY"] = 2] = "IDENTIFY";
1269
+ /** Update the client's presence. */
1270
+ GatewayOpcode[GatewayOpcode["PRESENCE_UPDATE"] = 3] = "PRESENCE_UPDATE";
1271
+ /** Used to join/leave or move between voice channels. */
1272
+ GatewayOpcode[GatewayOpcode["VOICE_STATE_UPDATE"] = 4] = "VOICE_STATE_UPDATE";
1273
+ /** Resume a previous session that was disconnected. */
1274
+ GatewayOpcode[GatewayOpcode["RESUME"] = 6] = "RESUME";
1275
+ /** You should attempt to reconnect and resume immediately. */
1276
+ GatewayOpcode[GatewayOpcode["RECONNECT"] = 7] = "RECONNECT";
1277
+ /** Request information about offline guild members in a large guild. */
1278
+ GatewayOpcode[GatewayOpcode["REQUEST_GUILD_MEMBERS"] = 8] = "REQUEST_GUILD_MEMBERS";
1279
+ /** The session has been invalidated. You should reconnect and identify/resume accordingly. */
1280
+ GatewayOpcode[GatewayOpcode["INVALID_SESSION"] = 9] = "INVALID_SESSION";
1281
+ /** Sent immediately after connecting, contains the heartbeat_interval to use. */
1282
+ GatewayOpcode[GatewayOpcode["HELLO"] = 10] = "HELLO";
1283
+ /** Sent in response to receiving a heartbeat to acknowledge that it has been received. */
1284
+ GatewayOpcode[GatewayOpcode["HEARTBEAT_ACK"] = 11] = "HEARTBEAT_ACK";
1285
+ })(GatewayOpcode || (GatewayOpcode = {}));
1286
+ export var GuildFeature;
1287
+ (function (GuildFeature) {
1288
+ /** guild has access to set an animated guild banner image */
1289
+ GuildFeature["ANIMATED_BANNER"] = "ANIMATED_BANNER";
1290
+ /** guild has access to set an animated guild icon */
1291
+ GuildFeature["ANIMATED_ICON"] = "ANIMATED_ICON";
1292
+ /** guild is using the old permissions configuration behavior */
1293
+ GuildFeature["APPLICATION_COMMAND_PERMISSIONS_V2"] = "APPLICATION_COMMAND_PERMISSIONS_V2";
1294
+ /** guild has set up auto moderation rules */
1295
+ GuildFeature["AUTO_MODERATION"] = "AUTO_MODERATION";
1296
+ /** guild has access to set a guild banner image */
1297
+ GuildFeature["BANNER"] = "BANNER";
1298
+ /** guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates */
1299
+ GuildFeature["COMMUNITY"] = "COMMUNITY";
1300
+ /** guild has been set as a support server on the App Directory */
1301
+ GuildFeature["DEVELOPER_SUPPORT_SERVER"] = "DEVELOPER_SUPPORT_SERVER";
1302
+ /** guild is able to be discovered in the directory */
1303
+ GuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
1304
+ /** guild is able to be featured in the directory */
1305
+ GuildFeature["FEATURABLE"] = "FEATURABLE";
1306
+ /** guild has paused invites, preventing new users from joining */
1307
+ GuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
1308
+ /** guild has access to set an invite splash background */
1309
+ GuildFeature["INVITE_SPLASH"] = "INVITE_SPLASH";
1310
+ /** guild has enabled Membership Screening */
1311
+ GuildFeature["MEMBER_VERIFICATION_GATE_ENABLED"] = "MEMBER_VERIFICATION_GATE_ENABLED";
1312
+ /** guild has enabled monetization */
1313
+ GuildFeature["MONETIZATION_ENABLED"] = "MONETIZATION_ENABLED";
1314
+ /** guild has increased custom sticker slots */
1315
+ GuildFeature["MORE_STICKERS"] = "MORE_STICKERS";
1316
+ /** guild has access to create announcement channels */
1317
+ GuildFeature["NEWS"] = "NEWS";
1318
+ /** guild is partnered */
1319
+ GuildFeature["PARTNERED"] = "PARTNERED";
1320
+ /** guild can be previewed before joining via Membership Screening or the directory */
1321
+ GuildFeature["PREVIEW_ENABLED"] = "PREVIEW_ENABLED";
1322
+ /** guild is able to set role icons */
1323
+ GuildFeature["ROLE_ICONS"] = "ROLE_ICONS";
1324
+ /** guild has enabled ticketed events */
1325
+ GuildFeature["TICKETED_EVENTS_ENABLED"] = "TICKETED_EVENTS_ENABLED";
1326
+ /** guild has access to set a vanity URL */
1327
+ GuildFeature["VANITY_URL"] = "VANITY_URL";
1328
+ /** guild is verified */
1329
+ GuildFeature["VERIFIED"] = "VERIFIED";
1330
+ /** guild has access to set 384kbps bitrate in voice (previously VIP voice servers) */
1331
+ GuildFeature["VIP_REGIONS"] = "VIP_REGIONS";
1332
+ /** guild has enabled the welcome screen */
1333
+ GuildFeature["WELCOME_SCREEN_ENABLED"] = "WELCOME_SCREEN_ENABLED";
1334
+ })(GuildFeature || (GuildFeature = {}));
1335
+ export var GuildNsfwLevel;
1336
+ (function (GuildNsfwLevel) {
1337
+ GuildNsfwLevel[GuildNsfwLevel["DEFAULT"] = 0] = "DEFAULT";
1338
+ GuildNsfwLevel[GuildNsfwLevel["EXPLICIT"] = 1] = "EXPLICIT";
1339
+ GuildNsfwLevel[GuildNsfwLevel["SAFE"] = 2] = "SAFE";
1340
+ GuildNsfwLevel[GuildNsfwLevel["AGE_RESTRICTED"] = 3] = "AGE_RESTRICTED";
1341
+ })(GuildNsfwLevel || (GuildNsfwLevel = {}));
1342
+ export var GuildScheduledEventEntityType;
1343
+ (function (GuildScheduledEventEntityType) {
1344
+ GuildScheduledEventEntityType[GuildScheduledEventEntityType["STAGE_INSTANCE"] = 1] = "STAGE_INSTANCE";
1345
+ GuildScheduledEventEntityType[GuildScheduledEventEntityType["VOICE"] = 2] = "VOICE";
1346
+ GuildScheduledEventEntityType[GuildScheduledEventEntityType["EXTERNAL"] = 3] = "EXTERNAL";
1347
+ })(GuildScheduledEventEntityType || (GuildScheduledEventEntityType = {}));
1348
+ export var GuildScheduledEventPrivacyLevel;
1349
+ (function (GuildScheduledEventPrivacyLevel) {
1350
+ /** the scheduled event is only accessible to guild members */
1351
+ GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
1352
+ })(GuildScheduledEventPrivacyLevel || (GuildScheduledEventPrivacyLevel = {}));
1353
+ export var GuildScheduledEventStatus;
1354
+ (function (GuildScheduledEventStatus) {
1355
+ GuildScheduledEventStatus[GuildScheduledEventStatus["SCHEDULED"] = 1] = "SCHEDULED";
1356
+ GuildScheduledEventStatus[GuildScheduledEventStatus["ACTIVE"] = 2] = "ACTIVE";
1357
+ GuildScheduledEventStatus[GuildScheduledEventStatus["COMPLETED"] = 3] = "COMPLETED";
1358
+ GuildScheduledEventStatus[GuildScheduledEventStatus["CANCELED"] = 4] = "CANCELED";
1359
+ })(GuildScheduledEventStatus || (GuildScheduledEventStatus = {}));
1360
+ export var IntegrationExpireBehavior;
1361
+ (function (IntegrationExpireBehavior) {
1362
+ IntegrationExpireBehavior[IntegrationExpireBehavior["REMOVE_ROLE"] = 0] = "REMOVE_ROLE";
1363
+ IntegrationExpireBehavior[IntegrationExpireBehavior["KICK"] = 1] = "KICK";
1364
+ })(IntegrationExpireBehavior || (IntegrationExpireBehavior = {}));
1365
+ export var InteractionCallbackType;
1366
+ (function (InteractionCallbackType) {
1367
+ /** ACK a Ping */
1368
+ InteractionCallbackType[InteractionCallbackType["PONG"] = 1] = "PONG";
1369
+ /** respond to an interaction with a message */
1370
+ InteractionCallbackType[InteractionCallbackType["CHANNEL_MESSAGE_WITH_SOURCE"] = 4] = "CHANNEL_MESSAGE_WITH_SOURCE";
1371
+ /** ACK an interaction and edit a response later, the user sees a loading state */
1372
+ InteractionCallbackType[InteractionCallbackType["DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE"] = 5] = "DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE";
1373
+ /** for components, ACK an interaction and edit the original message later; the user does not see a loading state */
1374
+ InteractionCallbackType[InteractionCallbackType["DEFERRED_UPDATE_MESSAGE"] = 6] = "DEFERRED_UPDATE_MESSAGE";
1375
+ /** for components, edit the message the component was attached to */
1376
+ InteractionCallbackType[InteractionCallbackType["UPDATE_MESSAGE"] = 7] = "UPDATE_MESSAGE";
1377
+ /** respond to an autocomplete interaction with suggested choices */
1378
+ InteractionCallbackType[InteractionCallbackType["APPLICATION_COMMAND_AUTOCOMPLETE_RESULT"] = 8] = "APPLICATION_COMMAND_AUTOCOMPLETE_RESULT";
1379
+ /** respond to an interaction with a popup modal */
1380
+ InteractionCallbackType[InteractionCallbackType["MODAL"] = 9] = "MODAL";
1381
+ })(InteractionCallbackType || (InteractionCallbackType = {}));
1382
+ export var InteractionType;
1383
+ (function (InteractionType) {
1384
+ InteractionType[InteractionType["PING"] = 1] = "PING";
1385
+ InteractionType[InteractionType["APPLICATION_COMMAND"] = 2] = "APPLICATION_COMMAND";
1386
+ InteractionType[InteractionType["MESSAGE_COMPONENT"] = 3] = "MESSAGE_COMPONENT";
1387
+ InteractionType[InteractionType["APPLICATION_COMMAND_AUTOCOMPLETE"] = 4] = "APPLICATION_COMMAND_AUTOCOMPLETE";
1388
+ InteractionType[InteractionType["MODAL_SUBMIT"] = 5] = "MODAL_SUBMIT";
1389
+ })(InteractionType || (InteractionType = {}));
1390
+ export var InviteTargetType;
1391
+ (function (InviteTargetType) {
1392
+ InviteTargetType[InviteTargetType["STREAM"] = 1] = "STREAM";
1393
+ InviteTargetType[InviteTargetType["EMBEDDED_APPLICATION"] = 2] = "EMBEDDED_APPLICATION";
1394
+ })(InviteTargetType || (InviteTargetType = {}));
1395
+ export var KeywordPresetType;
1396
+ (function (KeywordPresetType) {
1397
+ /** Words that may be considered forms of swearing or cursing */
1398
+ KeywordPresetType[KeywordPresetType["PROFANITY"] = 1] = "PROFANITY";
1399
+ /** Words that refer to sexually explicit behavior or activity */
1400
+ KeywordPresetType[KeywordPresetType["SEXUAL_CONTENT"] = 2] = "SEXUAL_CONTENT";
1401
+ /** Personal insults or words that may be considered hate speech */
1402
+ KeywordPresetType[KeywordPresetType["SLURS"] = 3] = "SLURS";
1403
+ })(KeywordPresetType || (KeywordPresetType = {}));
1404
+ export var MembershipState;
1405
+ (function (MembershipState) {
1406
+ MembershipState[MembershipState["INVITED"] = 1] = "INVITED";
1407
+ MembershipState[MembershipState["ACCEPTED"] = 2] = "ACCEPTED";
1408
+ })(MembershipState || (MembershipState = {}));
1409
+ export var MessageActivityType;
1410
+ (function (MessageActivityType) {
1411
+ MessageActivityType[MessageActivityType["JOIN"] = 1] = "JOIN";
1412
+ MessageActivityType[MessageActivityType["SPECTATE"] = 2] = "SPECTATE";
1413
+ MessageActivityType[MessageActivityType["LISTEN"] = 3] = "LISTEN";
1414
+ MessageActivityType[MessageActivityType["JOIN_REQUEST"] = 5] = "JOIN_REQUEST";
1415
+ })(MessageActivityType || (MessageActivityType = {}));
1416
+ export const MessageFlag = {
1417
+ /** this message has been published to subscribed channels (via Channel Following) */
1418
+ CROSSPOSTED: 1 << 0,
1419
+ /** this message originated from a message in another channel (via Channel Following) */
1420
+ IS_CROSSPOST: 1 << 1,
1421
+ /** do not include any embeds when serializing this message */
1422
+ SUPPRESS_EMBEDS: 1 << 2,
1423
+ /** the source message for this crosspost has been deleted (via Channel Following) */
1424
+ SOURCE_MESSAGE_DELETED: 1 << 3,
1425
+ /** this message came from the urgent message system */
1426
+ URGENT: 1 << 4,
1427
+ /** this message has an associated thread, with the same id as the message */
1428
+ HAS_THREAD: 1 << 5,
1429
+ /** this message is only visible to the user who invoked the Interaction */
1430
+ EPHEMERAL: 1 << 6,
1431
+ /** this message is an Interaction Response and the bot is "thinking" */
1432
+ LOADING: 1 << 7,
1433
+ /** this message failed to mention some roles and add their members to the thread */
1434
+ FAILED_TO_MENTION_SOME_ROLES_IN_THREAD: 1 << 8,
1435
+ };
1436
+ export var MessageType;
1437
+ (function (MessageType) {
1438
+ MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
1439
+ MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD";
1440
+ MessageType[MessageType["RECIPIENT_REMOVE"] = 2] = "RECIPIENT_REMOVE";
1441
+ MessageType[MessageType["CALL"] = 3] = "CALL";
1442
+ MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE";
1443
+ MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE";
1444
+ MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE";
1445
+ MessageType[MessageType["USER_JOIN"] = 7] = "USER_JOIN";
1446
+ MessageType[MessageType["GUILD_BOOST"] = 8] = "GUILD_BOOST";
1447
+ MessageType[MessageType["GUILD_BOOST_TIER_1"] = 9] = "GUILD_BOOST_TIER_1";
1448
+ MessageType[MessageType["GUILD_BOOST_TIER_2"] = 10] = "GUILD_BOOST_TIER_2";
1449
+ MessageType[MessageType["GUILD_BOOST_TIER_3"] = 11] = "GUILD_BOOST_TIER_3";
1450
+ MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD";
1451
+ MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED";
1452
+ MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED";
1453
+ MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING"] = 16] = "GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING";
1454
+ MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING"] = 17] = "GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING";
1455
+ MessageType[MessageType["THREAD_CREATED"] = 18] = "THREAD_CREATED";
1456
+ MessageType[MessageType["REPLY"] = 19] = "REPLY";
1457
+ MessageType[MessageType["CHAT_INPUT_COMMAND"] = 20] = "CHAT_INPUT_COMMAND";
1458
+ MessageType[MessageType["THREAD_STARTER_MESSAGE"] = 21] = "THREAD_STARTER_MESSAGE";
1459
+ MessageType[MessageType["GUILD_INVITE_REMINDER"] = 22] = "GUILD_INVITE_REMINDER";
1460
+ MessageType[MessageType["CONTEXT_MENU_COMMAND"] = 23] = "CONTEXT_MENU_COMMAND";
1461
+ MessageType[MessageType["AUTO_MODERATION_ACTION"] = 24] = "AUTO_MODERATION_ACTION";
1462
+ })(MessageType || (MessageType = {}));
1463
+ export var MfaLevel;
1464
+ (function (MfaLevel) {
1465
+ /** guild has no MFA/2FA requirement for moderation actions */
1466
+ MfaLevel[MfaLevel["NONE"] = 0] = "NONE";
1467
+ /** guild has a 2FA requirement for moderation actions */
1468
+ MfaLevel[MfaLevel["ELEVATED"] = 1] = "ELEVATED";
1469
+ })(MfaLevel || (MfaLevel = {}));
1470
+ export var MutableGuildFeature;
1471
+ (function (MutableGuildFeature) {
1472
+ MutableGuildFeature["COMMUNITY"] = "COMMUNITY";
1473
+ MutableGuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
1474
+ MutableGuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
1475
+ })(MutableGuildFeature || (MutableGuildFeature = {}));
1476
+ export var OAuth2Scope;
1477
+ (function (OAuth2Scope) {
1478
+ /** allows your app to fetch data from a user's "Now Playing/Recently Played" list - requires Discord approval */
1479
+ OAuth2Scope["ACTIVITIES_READ"] = "activities.read";
1480
+ /** allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) */
1481
+ OAuth2Scope["ACTIVITIES_WRITE"] = "activities.write";
1482
+ /** allows your app to read build data for a user's applications */
1483
+ OAuth2Scope["APPLICATIONS_BUILDS_READ"] = "applications.builds.read";
1484
+ /** allows your app to upload/update builds for a user's applications - requires Discord approval */
1485
+ OAuth2Scope["APPLICATIONS_BUILDS_UPLOAD"] = "applications.builds.upload";
1486
+ /** allows your app to use commands in a guild */
1487
+ OAuth2Scope["APPLICATIONS_COMMANDS"] = "applications.commands";
1488
+ /** allows your app to update its commands using a Bearer token - client credentials grant only */
1489
+ OAuth2Scope["APPLICATIONS_COMMANDS_UPDATE"] = "applications.commands.update";
1490
+ /** allows your app to update permissions for its commands in a guild a user has permissions to */
1491
+ OAuth2Scope["APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE"] = "applications.commands.permissions.update";
1492
+ /** allows your app to read entitlements for a user's applications */
1493
+ OAuth2Scope["APPLICATIONS_ENTITLEMENTS"] = "applications.entitlements";
1494
+ /** allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications */
1495
+ OAuth2Scope["APPLICATIONS_STORE_UPDATE"] = "applications.store.update";
1496
+ /** for oauth2 bots, this puts the bot in the user's selected guild by default */
1497
+ OAuth2Scope["BOT"] = "bot";
1498
+ /** allows /users/@me/connections to return linked third-party accounts */
1499
+ OAuth2Scope["CONNECTIONS"] = "connections";
1500
+ /** allows your app to see information about the user's DMs and group DMs - requires Discord approval */
1501
+ OAuth2Scope["DM_CHANNELS_READ"] = "dm_channels.read";
1502
+ /** enables /users/@me to return an email */
1503
+ OAuth2Scope["EMAIL"] = "email";
1504
+ /** allows your app to join users to a group dm */
1505
+ OAuth2Scope["GDM_JOIN"] = "gdm.join";
1506
+ /** allows /users/@me/guilds to return basic information about all of a user's guilds */
1507
+ OAuth2Scope["GUILDS"] = "guilds";
1508
+ /** allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild */
1509
+ OAuth2Scope["GUILDS_JOIN"] = "guilds.join";
1510
+ /** allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild */
1511
+ OAuth2Scope["GUILDS_MEMBERS_READ"] = "guilds.members.read";
1512
+ /** allows /users/@me without email */
1513
+ OAuth2Scope["IDENTIFY"] = "identify";
1514
+ /** for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates) */
1515
+ OAuth2Scope["MESSAGES_READ"] = "messages.read";
1516
+ /** allows your app to know a user's friends and implicit relationships - requires Discord approval */
1517
+ OAuth2Scope["RELATIONSHIPS_READ"] = "relationships.read";
1518
+ /** for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval */
1519
+ OAuth2Scope["RPC"] = "rpc";
1520
+ /** for local rpc server access, this allows you to update a user's activity - requires Discord approval */
1521
+ OAuth2Scope["RPC_ACTIVITIES_WRITE"] = "rpc.activities.write";
1522
+ /** for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval */
1523
+ OAuth2Scope["RPC_NOTIFICATIONS_READ"] = "rpc.notifications.read";
1524
+ /** for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval */
1525
+ OAuth2Scope["RPC_VOICE_READ"] = "rpc.voice.read";
1526
+ /** for local rpc server access, this allows you to update a user's voice settings - requires Discord approval */
1527
+ OAuth2Scope["RPC_VOICE_WRITE"] = "rpc.voice.write";
1528
+ /** allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval */
1529
+ OAuth2Scope["VOICE"] = "voice";
1530
+ /** this generates a webhook that is returned in the oauth token response for authorization code grants */
1531
+ OAuth2Scope["WEBHOOK_INCOMING"] = "webhook.incoming";
1532
+ })(OAuth2Scope || (OAuth2Scope = {}));
1533
+ export const PermissionFlag = {
1534
+ /** Allows creation of instant invites */
1535
+ CREATE_INSTANT_INVITE: BigInt(1) << BigInt(0),
1536
+ /** Allows kicking members */
1537
+ KICK_MEMBERS: BigInt(1) << BigInt(1),
1538
+ /** Allows banning members */
1539
+ BAN_MEMBERS: BigInt(1) << BigInt(2),
1540
+ /** Allows all permissions and bypasses channel permission overwrites */
1541
+ ADMINISTRATOR: BigInt(1) << BigInt(3),
1542
+ /** Allows management and editing of channels */
1543
+ MANAGE_CHANNELS: BigInt(1) << BigInt(4),
1544
+ /** Allows management and editing of the guild */
1545
+ MANAGE_GUILD: BigInt(1) << BigInt(5),
1546
+ /** Allows for the addition of reactions to messages */
1547
+ ADD_REACTIONS: BigInt(1) << BigInt(6),
1548
+ /** Allows for viewing of audit logs */
1549
+ VIEW_AUDIT_LOG: BigInt(1) << BigInt(7),
1550
+ /** Allows for using priority speaker in a voice channel */
1551
+ PRIORITY_SPEAKER: BigInt(1) << BigInt(8),
1552
+ /** Allows the user to go live */
1553
+ STREAM: BigInt(1) << BigInt(9),
1554
+ /** Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels */
1555
+ VIEW_CHANNEL: BigInt(1) << BigInt(10),
1556
+ /** Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads) */
1557
+ SEND_MESSAGES: BigInt(1) << BigInt(11),
1558
+ /** Allows for sending of /tts messages */
1559
+ SEND_TTS_MESSAGES: BigInt(1) << BigInt(12),
1560
+ /** Allows for deletion of other users messages */
1561
+ MANAGE_MESSAGES: BigInt(1) << BigInt(13),
1562
+ /** Links sent by users with this permission will be auto-embedded */
1563
+ EMBED_LINKS: BigInt(1) << BigInt(14),
1564
+ /** Allows for uploading images and files */
1565
+ ATTACH_FILES: BigInt(1) << BigInt(15),
1566
+ /** Allows for reading of message history */
1567
+ READ_MESSAGE_HISTORY: BigInt(1) << BigInt(16),
1568
+ /** Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel */
1569
+ MENTION_EVERYONE: BigInt(1) << BigInt(17),
1570
+ /** Allows the usage of custom emojis from other servers */
1571
+ USE_EXTERNAL_EMOJIS: BigInt(1) << BigInt(18),
1572
+ /** Allows for viewing guild insights */
1573
+ VIEW_GUILD_INSIGHTS: BigInt(1) << BigInt(19),
1574
+ /** Allows for joining of a voice channel */
1575
+ CONNECT: BigInt(1) << BigInt(20),
1576
+ /** Allows for speaking in a voice channel */
1577
+ SPEAK: BigInt(1) << BigInt(21),
1578
+ /** Allows for muting members in a voice channel */
1579
+ MUTE_MEMBERS: BigInt(1) << BigInt(22),
1580
+ /** Allows for deafening of members in a voice channel */
1581
+ DEAFEN_MEMBERS: BigInt(1) << BigInt(23),
1582
+ /** Allows for moving of members between voice channels */
1583
+ MOVE_MEMBERS: BigInt(1) << BigInt(24),
1584
+ /** Allows for using voice-activity-detection in a voice channel */
1585
+ USE_VAD: BigInt(1) << BigInt(25),
1586
+ /** Allows for modification of own nickname */
1587
+ CHANGE_NICKNAME: BigInt(1) << BigInt(26),
1588
+ /** Allows for modification of other users nicknames */
1589
+ MANAGE_NICKNAMES: BigInt(1) << BigInt(27),
1590
+ /** Allows management and editing of roles */
1591
+ MANAGE_ROLES: BigInt(1) << BigInt(28),
1592
+ /** Allows management and editing of webhooks */
1593
+ MANAGE_WEBHOOKS: BigInt(1) << BigInt(29),
1594
+ /** Allows management and editing of emojis and stickers */
1595
+ MANAGE_EMOJIS_AND_STICKERS: BigInt(1) << BigInt(30),
1596
+ /** Allows members to use application commands, including slash commands and context menu commands. */
1597
+ USE_APPLICATION_COMMANDS: BigInt(1) << BigInt(31),
1598
+ /** Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.) */
1599
+ REQUEST_TO_SPEAK: BigInt(1) << BigInt(32),
1600
+ /** Allows for creating, editing, and deleting scheduled events */
1601
+ MANAGE_EVENTS: BigInt(1) << BigInt(33),
1602
+ /** Allows for deleting and archiving threads, and viewing all private threads */
1603
+ MANAGE_THREADS: BigInt(1) << BigInt(34),
1604
+ /** Allows for creating public and announcement threads */
1605
+ CREATE_PUBLIC_THREADS: BigInt(1) << BigInt(35),
1606
+ /** Allows for creating private threads */
1607
+ CREATE_PRIVATE_THREADS: BigInt(1) << BigInt(36),
1608
+ /** Allows the usage of custom stickers from other servers */
1609
+ USE_EXTERNAL_STICKERS: BigInt(1) << BigInt(37),
1610
+ /** Allows for sending messages in threads */
1611
+ SEND_MESSAGES_IN_THREADS: BigInt(1) << BigInt(38),
1612
+ /** Allows for using Activities (applications with the EMBEDDED flag) in a voice channel */
1613
+ USE_EMBEDDED_ACTIVITIES: BigInt(1) << BigInt(39),
1614
+ /** Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels */
1615
+ MODERATE_MEMBERS: BigInt(1) << BigInt(40),
1616
+ };
1617
+ export var PremiumTier;
1618
+ (function (PremiumTier) {
1619
+ /** guild has not unlocked any Server Boost perks */
1620
+ PremiumTier[PremiumTier["NONE"] = 0] = "NONE";
1621
+ /** guild has unlocked Server Boost level 1 perks */
1622
+ PremiumTier[PremiumTier["TIER_1"] = 1] = "TIER_1";
1623
+ /** guild has unlocked Server Boost level 2 perks */
1624
+ PremiumTier[PremiumTier["TIER_2"] = 2] = "TIER_2";
1625
+ /** guild has unlocked Server Boost level 3 perks */
1626
+ PremiumTier[PremiumTier["TIER_3"] = 3] = "TIER_3";
1627
+ })(PremiumTier || (PremiumTier = {}));
1628
+ export var PremiumType;
1629
+ (function (PremiumType) {
1630
+ PremiumType[PremiumType["NONE"] = 0] = "NONE";
1631
+ PremiumType[PremiumType["NITRO_CLASSIC"] = 1] = "NITRO_CLASSIC";
1632
+ PremiumType[PremiumType["NITRO"] = 2] = "NITRO";
1633
+ PremiumType[PremiumType["NITRO_BASIC"] = 3] = "NITRO_BASIC";
1634
+ })(PremiumType || (PremiumType = {}));
1635
+ export var PrivacyLevel;
1636
+ (function (PrivacyLevel) {
1637
+ /** The Stage instance is visible publicly. (deprecated) */
1638
+ PrivacyLevel[PrivacyLevel["PUBLIC"] = 1] = "PUBLIC";
1639
+ /** The Stage instance is visible to only guild members. */
1640
+ PrivacyLevel[PrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
1641
+ })(PrivacyLevel || (PrivacyLevel = {}));
1642
+ export var SortOrderType;
1643
+ (function (SortOrderType) {
1644
+ /** Sort forum posts by activity */
1645
+ SortOrderType[SortOrderType["LATEST_ACTIVITY"] = 0] = "LATEST_ACTIVITY";
1646
+ /** Sort forum posts by creation time (from most recent to oldest) */
1647
+ SortOrderType[SortOrderType["CREATION_DATE"] = 1] = "CREATION_DATE";
1648
+ })(SortOrderType || (SortOrderType = {}));
1649
+ export var StatusType;
1650
+ (function (StatusType) {
1651
+ /** Online */
1652
+ StatusType["ONLINE"] = "online";
1653
+ /** Do Not Disturb */
1654
+ StatusType["DND"] = "dnd";
1655
+ /** AFK */
1656
+ StatusType["IDLE"] = "idle";
1657
+ /** Invisible and shown as offline */
1658
+ StatusType["INVISIBLE"] = "invisible";
1659
+ /** Offline */
1660
+ StatusType["OFFLINE"] = "offline";
1661
+ })(StatusType || (StatusType = {}));
1662
+ export var StickerFormatType;
1663
+ (function (StickerFormatType) {
1664
+ StickerFormatType[StickerFormatType["PNG"] = 1] = "PNG";
1665
+ StickerFormatType[StickerFormatType["APNG"] = 2] = "APNG";
1666
+ StickerFormatType[StickerFormatType["LOTTIE"] = 3] = "LOTTIE";
1667
+ })(StickerFormatType || (StickerFormatType = {}));
1668
+ export var StickerType;
1669
+ (function (StickerType) {
1670
+ /** an official sticker in a pack, part of Nitro or in a removed purchasable pack */
1671
+ StickerType[StickerType["STANDARD"] = 1] = "STANDARD";
1672
+ /** a sticker uploaded to a guild for the guild's members */
1673
+ StickerType[StickerType["GUILD"] = 2] = "GUILD";
1674
+ })(StickerType || (StickerType = {}));
1675
+ export const SystemChannelFlag = {
1676
+ /** Suppress member join notifications */
1677
+ SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
1678
+ /** Suppress server boost notifications */
1679
+ SUPPRESS_PREMIUM_SUBSCRIPTIONS: 1 << 1,
1680
+ /** Suppress server setup tips */
1681
+ SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
1682
+ /** Hide member join sticker reply buttons */
1683
+ SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
1684
+ };
1685
+ export var TextInputStyle;
1686
+ (function (TextInputStyle) {
1687
+ /** Single-line input */
1688
+ TextInputStyle[TextInputStyle["SHORT"] = 1] = "SHORT";
1689
+ /** Multi-line input */
1690
+ TextInputStyle[TextInputStyle["PARAGRAPH"] = 2] = "PARAGRAPH";
1691
+ })(TextInputStyle || (TextInputStyle = {}));
1692
+ export var TriggerType;
1693
+ (function (TriggerType) {
1694
+ /** check if content contains words from a user defined list of keywords */
1695
+ TriggerType[TriggerType["KEYWORD"] = 1] = "KEYWORD";
1696
+ /** check if content represents generic spam */
1697
+ TriggerType[TriggerType["SPAM"] = 3] = "SPAM";
1698
+ /** check if content contains words from internal pre-defined wordsets */
1699
+ TriggerType[TriggerType["KEYWORD_PRESET"] = 4] = "KEYWORD_PRESET";
1700
+ /** check if content contains more unique mentions than allowed */
1701
+ TriggerType[TriggerType["MENTION_SPAM"] = 5] = "MENTION_SPAM";
1702
+ })(TriggerType || (TriggerType = {}));
1703
+ export const UserFlag = {
1704
+ /** Discord Employee */
1705
+ STAFF: 1 << 0,
1706
+ /** Partnered Server Owner */
1707
+ PARTNER: 1 << 1,
1708
+ /** HypeSquad Events Member */
1709
+ HYPESQUAD: 1 << 2,
1710
+ /** Bug Hunter Level 1 */
1711
+ BUG_HUNTER_LEVEL_1: 1 << 3,
1712
+ /** House Bravery Member */
1713
+ HYPESQUAD_ONLINE_HOUSE_1: 1 << 6,
1714
+ /** House Brilliance Member */
1715
+ HYPESQUAD_ONLINE_HOUSE_2: 1 << 7,
1716
+ /** House Balance Member */
1717
+ HYPESQUAD_ONLINE_HOUSE_3: 1 << 8,
1718
+ /** Early Nitro Supporter */
1719
+ PREMIUM_EARLY_SUPPORTER: 1 << 9,
1720
+ /** User is a team */
1721
+ TEAM_PSEUDO_USER: 1 << 10,
1722
+ /** Bug Hunter Level 2 */
1723
+ BUG_HUNTER_LEVEL_2: 1 << 14,
1724
+ /** Verified Bot */
1725
+ VERIFIED_BOT: 1 << 16,
1726
+ /** Early Verified Bot Developer */
1727
+ VERIFIED_DEVELOPER: 1 << 17,
1728
+ /** Discord Certified Moderator */
1729
+ CERTIFIED_MODERATOR: 1 << 18,
1730
+ /** Bot uses only HTTP interactions and is shown in the online member list */
1731
+ BOT_HTTP_INTERACTIONS: 1 << 19,
1732
+ /** User is an Active Developer */
1733
+ ACTIVE_DEVELOPER: 1 << 22,
1734
+ };
1735
+ export var VerificationLevel;
1736
+ (function (VerificationLevel) {
1737
+ /** unrestricted */
1738
+ VerificationLevel[VerificationLevel["NONE"] = 0] = "NONE";
1739
+ /** must have verified email on account */
1740
+ VerificationLevel[VerificationLevel["LOW"] = 1] = "LOW";
1741
+ /** must be registered on Discord for longer than 5 minutes */
1742
+ VerificationLevel[VerificationLevel["MEDIUM"] = 2] = "MEDIUM";
1743
+ /** must be a member of the server for longer than 10 minutes */
1744
+ VerificationLevel[VerificationLevel["HIGH"] = 3] = "HIGH";
1745
+ /** must have a verified phone number */
1746
+ VerificationLevel[VerificationLevel["VERY_HIGH"] = 4] = "VERY_HIGH";
1747
+ })(VerificationLevel || (VerificationLevel = {}));
1748
+ export var VideoQualityMode;
1749
+ (function (VideoQualityMode) {
1750
+ /** Discord chooses the quality for optimal performance */
1751
+ VideoQualityMode[VideoQualityMode["AUTO"] = 1] = "AUTO";
1752
+ /** 720p */
1753
+ VideoQualityMode[VideoQualityMode["FULL"] = 2] = "FULL";
1754
+ })(VideoQualityMode || (VideoQualityMode = {}));
1755
+ export var VisibilityType;
1756
+ (function (VisibilityType) {
1757
+ /** invisible to everyone except the user themselves */
1758
+ VisibilityType[VisibilityType["NONE"] = 0] = "NONE";
1759
+ /** visible to everyone */
1760
+ VisibilityType[VisibilityType["EVERYONE"] = 1] = "EVERYONE";
1761
+ })(VisibilityType || (VisibilityType = {}));
1762
+ export var VoiceOpcode;
1763
+ (function (VoiceOpcode) {
1764
+ /** Begin a voice websocket connection. */
1765
+ VoiceOpcode[VoiceOpcode["IDENTIFY"] = 0] = "IDENTIFY";
1766
+ /** Select the voice protocol. */
1767
+ VoiceOpcode[VoiceOpcode["SELECT_PROTOCOL"] = 1] = "SELECT_PROTOCOL";
1768
+ /** Complete the websocket handshake. */
1769
+ VoiceOpcode[VoiceOpcode["READY"] = 2] = "READY";
1770
+ /** Keep the websocket connection alive. */
1771
+ VoiceOpcode[VoiceOpcode["HEARTBEAT"] = 3] = "HEARTBEAT";
1772
+ /** Describe the session. */
1773
+ VoiceOpcode[VoiceOpcode["SESSION_DESCRIPTION"] = 4] = "SESSION_DESCRIPTION";
1774
+ /** Indicate which users are speaking. */
1775
+ VoiceOpcode[VoiceOpcode["SPEAKING"] = 5] = "SPEAKING";
1776
+ /** Sent to acknowledge a received client heartbeat. */
1777
+ VoiceOpcode[VoiceOpcode["HEARTBEAT_ACK"] = 6] = "HEARTBEAT_ACK";
1778
+ /** Resume a connection. */
1779
+ VoiceOpcode[VoiceOpcode["RESUME"] = 7] = "RESUME";
1780
+ /** Time to wait between sending heartbeats in milliseconds. */
1781
+ VoiceOpcode[VoiceOpcode["HELLO"] = 8] = "HELLO";
1782
+ /** Acknowledge a successful session resume. */
1783
+ VoiceOpcode[VoiceOpcode["RESUMED"] = 9] = "RESUMED";
1784
+ /** A client has disconnected from the voice channel */
1785
+ VoiceOpcode[VoiceOpcode["CLIENT_DISCONNECT"] = 13] = "CLIENT_DISCONNECT";
1786
+ })(VoiceOpcode || (VoiceOpcode = {}));
1787
+ export var WebhookType;
1788
+ (function (WebhookType) {
1789
+ /** Incoming Webhooks can post messages to channels with a generated token */
1790
+ WebhookType[WebhookType["INCOMING"] = 1] = "INCOMING";
1791
+ /** Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels */
1792
+ WebhookType[WebhookType["CHANNEL_FOLLOWER"] = 2] = "CHANNEL_FOLLOWER";
1793
+ /** Application webhooks are webhooks used with Interactions */
1794
+ WebhookType[WebhookType["APPLICATION"] = 3] = "APPLICATION";
1795
+ })(WebhookType || (WebhookType = {}));
1796
+ //# sourceMappingURL=types.js.map