dfx 0.45.6 → 0.45.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/Cache/driver.d.ts +23 -0
  2. package/Cache/driver.d.ts.map +1 -0
  3. package/Cache/driver.js +3 -0
  4. package/Cache/driver.js.map +1 -0
  5. package/Cache/memory.d.ts +4 -0
  6. package/Cache/memory.d.ts.map +1 -0
  7. package/Cache/memory.js +48 -0
  8. package/Cache/memory.js.map +1 -0
  9. package/Cache/memoryTTL.d.ts +21 -0
  10. package/Cache/memoryTTL.d.ts.map +1 -0
  11. package/Cache/memoryTTL.js +121 -0
  12. package/Cache/memoryTTL.js.map +1 -0
  13. package/Cache/prelude.d.ts +57 -0
  14. package/Cache/prelude.d.ts.map +1 -0
  15. package/Cache/prelude.js +108 -0
  16. package/Cache/prelude.js.map +1 -0
  17. package/Cache.d.ts +76 -0
  18. package/Cache.d.ts.map +1 -0
  19. package/Cache.js +62 -0
  20. package/Cache.js.map +1 -0
  21. package/DiscordConfig.d.ts +29 -0
  22. package/DiscordConfig.d.ts.map +1 -0
  23. package/DiscordConfig.js +29 -0
  24. package/DiscordConfig.js.map +1 -0
  25. package/DiscordGateway/DiscordWS.d.ts +32 -0
  26. package/DiscordGateway/DiscordWS.d.ts.map +1 -0
  27. package/DiscordGateway/DiscordWS.js +31 -0
  28. package/DiscordGateway/DiscordWS.js.map +1 -0
  29. package/DiscordGateway/Shard/heartbeats.d.ts +4 -0
  30. package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -0
  31. package/DiscordGateway/Shard/heartbeats.js +17 -0
  32. package/DiscordGateway/Shard/heartbeats.js.map +1 -0
  33. package/DiscordGateway/Shard/identify.d.ts +13 -0
  34. package/DiscordGateway/Shard/identify.d.ts.map +1 -0
  35. package/DiscordGateway/Shard/identify.js +26 -0
  36. package/DiscordGateway/Shard/identify.js.map +1 -0
  37. package/DiscordGateway/Shard/invalidSession.d.ts +4 -0
  38. package/DiscordGateway/Shard/invalidSession.d.ts.map +1 -0
  39. package/DiscordGateway/Shard/invalidSession.js +6 -0
  40. package/DiscordGateway/Shard/invalidSession.js.map +1 -0
  41. package/DiscordGateway/Shard/sendEvents.d.ts +8 -0
  42. package/DiscordGateway/Shard/sendEvents.d.ts.map +1 -0
  43. package/DiscordGateway/Shard/sendEvents.js +25 -0
  44. package/DiscordGateway/Shard/sendEvents.js.map +1 -0
  45. package/DiscordGateway/Shard/utils.d.ts +4 -0
  46. package/DiscordGateway/Shard/utils.d.ts.map +1 -0
  47. package/DiscordGateway/Shard/utils.js +9 -0
  48. package/DiscordGateway/Shard/utils.js.map +1 -0
  49. package/DiscordGateway/Shard.d.ts +17 -0
  50. package/DiscordGateway/Shard.d.ts.map +1 -0
  51. package/DiscordGateway/Shard.js +85 -0
  52. package/DiscordGateway/Shard.js.map +1 -0
  53. package/DiscordGateway/ShardStore.d.ts +13 -0
  54. package/DiscordGateway/ShardStore.d.ts.map +1 -0
  55. package/DiscordGateway/ShardStore.js +22 -0
  56. package/DiscordGateway/ShardStore.js.map +1 -0
  57. package/DiscordGateway/Sharder.d.ts +16 -0
  58. package/DiscordGateway/Sharder.d.ts.map +1 -0
  59. package/DiscordGateway/Sharder.js +51 -0
  60. package/DiscordGateway/Sharder.js.map +1 -0
  61. package/DiscordGateway/WS.d.ts +32 -0
  62. package/DiscordGateway/WS.d.ts.map +1 -0
  63. package/DiscordGateway/WS.js +77 -0
  64. package/DiscordGateway/WS.js.map +1 -0
  65. package/DiscordGateway.d.ts +13 -0
  66. package/DiscordGateway.d.ts.map +1 -0
  67. package/DiscordGateway.js +29 -0
  68. package/DiscordGateway.js.map +1 -0
  69. package/DiscordREST/types.d.ts +8 -0
  70. package/DiscordREST/types.d.ts.map +1 -0
  71. package/DiscordREST/types.js +2 -0
  72. package/DiscordREST/types.js.map +1 -0
  73. package/DiscordREST/utils.d.ts +11 -0
  74. package/DiscordREST/utils.d.ts.map +1 -0
  75. package/DiscordREST/utils.js +21 -0
  76. package/DiscordREST/utils.js.map +1 -0
  77. package/DiscordREST.d.ts +17 -0
  78. package/DiscordREST.d.ts.map +1 -0
  79. package/DiscordREST.js +123 -0
  80. package/DiscordREST.js.map +1 -0
  81. package/Helpers/flags.d.ts +28 -0
  82. package/Helpers/flags.d.ts.map +1 -0
  83. package/Helpers/flags.js +36 -0
  84. package/Helpers/flags.js.map +1 -0
  85. package/Helpers/intents.d.ts +25 -0
  86. package/Helpers/intents.d.ts.map +1 -0
  87. package/Helpers/intents.js +29 -0
  88. package/Helpers/intents.js.map +1 -0
  89. package/Helpers/interactions.d.ts +97 -0
  90. package/Helpers/interactions.d.ts.map +1 -0
  91. package/Helpers/interactions.js +97 -0
  92. package/Helpers/interactions.js.map +1 -0
  93. package/Helpers/members.d.ts +10 -0
  94. package/Helpers/members.d.ts.map +1 -0
  95. package/Helpers/members.js +10 -0
  96. package/Helpers/members.js.map +1 -0
  97. package/Helpers/permissions.d.ts +41 -0
  98. package/Helpers/permissions.d.ts.map +1 -0
  99. package/Helpers/permissions.js +83 -0
  100. package/Helpers/permissions.js.map +1 -0
  101. package/Helpers/ui.d.ts +48 -0
  102. package/Helpers/ui.d.ts.map +1 -0
  103. package/Helpers/ui.js +66 -0
  104. package/Helpers/ui.js.map +1 -0
  105. package/Interactions/builder.d.ts +49 -0
  106. package/Interactions/builder.d.ts.map +1 -0
  107. package/Interactions/builder.js +68 -0
  108. package/Interactions/builder.js.map +1 -0
  109. package/Interactions/context.d.ts +59 -0
  110. package/Interactions/context.d.ts.map +1 -0
  111. package/Interactions/context.js +61 -0
  112. package/Interactions/context.js.map +1 -0
  113. package/Interactions/definitions.d.ts +127 -0
  114. package/Interactions/definitions.d.ts.map +1 -0
  115. package/Interactions/definitions.js +53 -0
  116. package/Interactions/definitions.js.map +1 -0
  117. package/Interactions/gateway.d.ts +21 -0
  118. package/Interactions/gateway.d.ts.map +1 -0
  119. package/Interactions/gateway.js +39 -0
  120. package/Interactions/gateway.js.map +1 -0
  121. package/Interactions/handlers.d.ts +11 -0
  122. package/Interactions/handlers.d.ts.map +1 -0
  123. package/Interactions/handlers.js +45 -0
  124. package/Interactions/handlers.js.map +1 -0
  125. package/Interactions/index.d.ts +11 -0
  126. package/Interactions/index.d.ts.map +1 -0
  127. package/Interactions/index.js +12 -0
  128. package/Interactions/index.js.map +1 -0
  129. package/Interactions/utils.d.ts +79 -0
  130. package/Interactions/utils.d.ts.map +1 -0
  131. package/Interactions/utils.js +74 -0
  132. package/Interactions/utils.js.map +1 -0
  133. package/Interactions/webhook.d.ts +46 -0
  134. package/Interactions/webhook.d.ts.map +1 -0
  135. package/Interactions/webhook.js +56 -0
  136. package/Interactions/webhook.js.map +1 -0
  137. package/Log.d.ts +11 -0
  138. package/Log.d.ts.map +1 -0
  139. package/Log.js +17 -0
  140. package/Log.js.map +1 -0
  141. package/RateLimit/memory.d.ts +3 -0
  142. package/RateLimit/memory.d.ts.map +1 -0
  143. package/RateLimit/memory.js +35 -0
  144. package/RateLimit/memory.js.map +1 -0
  145. package/RateLimit/utils.d.ts +3 -0
  146. package/RateLimit/utils.d.ts.map +1 -0
  147. package/RateLimit/utils.js +18 -0
  148. package/RateLimit/utils.js.map +1 -0
  149. package/RateLimit.d.ts +26 -0
  150. package/RateLimit.d.ts.map +1 -0
  151. package/RateLimit.js +25 -0
  152. package/RateLimit.js.map +1 -0
  153. package/_common.d.ts +37 -0
  154. package/_common.d.ts.map +1 -0
  155. package/_common.js +8 -0
  156. package/_common.js.map +1 -0
  157. package/gateway.d.ts +14 -0
  158. package/gateway.d.ts.map +1 -0
  159. package/gateway.js +25 -0
  160. package/gateway.js.map +1 -0
  161. package/global.d.ts +18 -0
  162. package/global.d.ts.map +1 -0
  163. package/global.js +2 -0
  164. package/global.js.map +1 -0
  165. package/index.d.ts +14 -0
  166. package/index.d.ts.map +1 -0
  167. package/index.js +14 -0
  168. package/index.js.map +1 -0
  169. package/package.json +2 -2
  170. package/src/package.json +2 -2
  171. package/types.d.ts +4450 -0
  172. package/types.d.ts.map +1 -0
  173. package/types.js +1204 -0
  174. package/types.js.map +1 -0
  175. package/utils/effect.d.ts +2 -0
  176. package/utils/effect.d.ts.map +1 -0
  177. package/utils/effect.js +2 -0
  178. package/utils/effect.js.map +1 -0
  179. package/utils/hub.d.ts +12 -0
  180. package/utils/hub.d.ts.map +1 -0
  181. package/utils/hub.js +23 -0
  182. package/utils/hub.js.map +1 -0
  183. package/utils/tsplus.d.ts +13 -0
  184. package/utils/tsplus.d.ts.map +1 -0
  185. package/utils/tsplus.js +2 -0
  186. package/utils/tsplus.js.map +1 -0
  187. package/webhooks.d.ts +10 -0
  188. package/webhooks.d.ts.map +1 -0
  189. package/webhooks.js +22 -0
  190. package/webhooks.js.map +1 -0
package/types.js ADDED
@@ -0,0 +1,1204 @@
1
+ export const ActivityFlag = {
2
+ INSTANCE: 1 << 0,
3
+ JOIN: 1 << 1,
4
+ SPECTATE: 1 << 2,
5
+ JOIN_REQUEST: 1 << 3,
6
+ SYNC: 1 << 4,
7
+ PLAY: 1 << 5,
8
+ PARTY_PRIVACY_FRIENDS: 1 << 6,
9
+ PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
10
+ EMBEDDED: 1 << 8,
11
+ };
12
+ export const ApplicationFlag = {
13
+ /** Indicates if an app uses the Auto Moderation API */
14
+ APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE: 1 << 6,
15
+ /** Intent required for bots in 100 or more servers to receive presence_update events */
16
+ GATEWAY_PRESENCE: 1 << 12,
17
+ /** Intent required for bots in under 100 servers to receive presence_update events, found on the Bot page in your app's settings */
18
+ GATEWAY_PRESENCE_LIMITED: 1 << 13,
19
+ /** Intent required for bots in 100 or more servers to receive member-related events like guild_member_add. See the list of member-related events under GUILD_MEMBERS */
20
+ GATEWAY_GUILD_MEMBERS: 1 << 14,
21
+ /** Intent required for bots in under 100 servers to receive member-related events like guild_member_add, found on the Bot page in your app's settings. See the list of member-related events under GUILD_MEMBERS */
22
+ GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
23
+ /** Indicates unusual growth of an app that prevents verification */
24
+ VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
25
+ /** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
26
+ EMBEDDED: 1 << 17,
27
+ /** Intent required for bots in 100 or more servers to receive message content */
28
+ GATEWAY_MESSAGE_CONTENT: 1 << 18,
29
+ /** Intent required for bots in under 100 servers to receive message content, found on the Bot page in your app's settings */
30
+ GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
31
+ /** Indicates if an app has registered global application commands */
32
+ APPLICATION_COMMAND_BADGE: 1 << 23,
33
+ };
34
+ export const ChannelFlag = {
35
+ /** this thread is pinned to the top of its parent GUILD_FORUM channel */
36
+ PINNED: 1 << 1,
37
+ /** 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. */
38
+ REQUIRE_TAG: 1 << 4,
39
+ };
40
+ export function createRoutes(fetch) {
41
+ return {
42
+ addGuildMember: (guildId, userId, params, options) => fetch({
43
+ method: "PUT",
44
+ url: `/guilds/${guildId}/members/${userId}`,
45
+ params,
46
+ options,
47
+ }),
48
+ addGuildMemberRole: (guildId, userId, roleId, options) => fetch({
49
+ method: "PUT",
50
+ url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
51
+ options,
52
+ }),
53
+ addThreadMember: (channelId, userId, options) => fetch({
54
+ method: "PUT",
55
+ url: `/channels/${channelId}/thread-members/${userId}`,
56
+ options,
57
+ }),
58
+ batchEditApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
59
+ method: "PUT",
60
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
61
+ options,
62
+ }),
63
+ beginGuildPrune: (guildId, params, options) => fetch({
64
+ method: "POST",
65
+ url: `/guilds/${guildId}/prune`,
66
+ params,
67
+ options,
68
+ }),
69
+ bulkDeleteMessages: (channelId, params, options) => fetch({
70
+ method: "POST",
71
+ url: `/channels/${channelId}/messages/bulk-delete`,
72
+ params,
73
+ options,
74
+ }),
75
+ bulkOverwriteGlobalApplicationCommands: (applicationId, options) => fetch({
76
+ method: "PUT",
77
+ url: `/applications/${applicationId}/commands`,
78
+ options,
79
+ }),
80
+ bulkOverwriteGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
81
+ method: "PUT",
82
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
83
+ params,
84
+ options,
85
+ }),
86
+ createAutoModerationRule: (guildId, params, options) => fetch({
87
+ method: "POST",
88
+ url: `/guilds/${guildId}/auto-moderation/rules`,
89
+ params,
90
+ options,
91
+ }),
92
+ createChannelInvite: (channelId, params, options) => fetch({
93
+ method: "POST",
94
+ url: `/channels/${channelId}/invites`,
95
+ params,
96
+ options,
97
+ }),
98
+ createDm: (params, options) => fetch({
99
+ method: "POST",
100
+ url: `/users/@me/channels`,
101
+ params,
102
+ options,
103
+ }),
104
+ createFollowupMessage: (applicationId, interactionToken, options) => fetch({
105
+ method: "POST",
106
+ url: `/webhooks/${applicationId}/${interactionToken}`,
107
+ options,
108
+ }),
109
+ createGlobalApplicationCommand: (applicationId, params, options) => fetch({
110
+ method: "POST",
111
+ url: `/applications/${applicationId}/commands`,
112
+ params,
113
+ options,
114
+ }),
115
+ createGroupDm: (params, options) => fetch({
116
+ method: "POST",
117
+ url: `/users/@me/channels`,
118
+ params,
119
+ options,
120
+ }),
121
+ createGuild: (params, options) => fetch({
122
+ method: "POST",
123
+ url: `/guilds`,
124
+ params,
125
+ options,
126
+ }),
127
+ createGuildApplicationCommand: (applicationId, guildId, params, options) => fetch({
128
+ method: "POST",
129
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
130
+ params,
131
+ options,
132
+ }),
133
+ createGuildBan: (guildId, userId, params, options) => fetch({
134
+ method: "PUT",
135
+ url: `/guilds/${guildId}/bans/${userId}`,
136
+ params,
137
+ options,
138
+ }),
139
+ createGuildChannel: (guildId, params, options) => fetch({
140
+ method: "POST",
141
+ url: `/guilds/${guildId}/channels`,
142
+ params,
143
+ options,
144
+ }),
145
+ createGuildEmoji: (guildId, params, options) => fetch({
146
+ method: "POST",
147
+ url: `/guilds/${guildId}/emojis`,
148
+ params,
149
+ options,
150
+ }),
151
+ createGuildFromGuildTemplate: (templateCode, params, options) => fetch({
152
+ method: "POST",
153
+ url: `/guilds/templates/${templateCode}`,
154
+ params,
155
+ options,
156
+ }),
157
+ createGuildRole: (guildId, params, options) => fetch({
158
+ method: "POST",
159
+ url: `/guilds/${guildId}/roles`,
160
+ params,
161
+ options,
162
+ }),
163
+ createGuildScheduledEvent: (guildId, params, options) => fetch({
164
+ method: "POST",
165
+ url: `/guilds/${guildId}/scheduled-events`,
166
+ params,
167
+ options,
168
+ }),
169
+ createGuildSticker: (guildId, params, options) => fetch({
170
+ method: "POST",
171
+ url: `/guilds/${guildId}/stickers`,
172
+ params,
173
+ options,
174
+ }),
175
+ createGuildTemplate: (guildId, params, options) => fetch({
176
+ method: "POST",
177
+ url: `/guilds/${guildId}/templates`,
178
+ params,
179
+ options,
180
+ }),
181
+ createInteractionResponse: (interactionId, interactionToken, params, options) => fetch({
182
+ method: "POST",
183
+ url: `/interactions/${interactionId}/${interactionToken}/callback`,
184
+ params,
185
+ options,
186
+ }),
187
+ createMessage: (channelId, params, options) => fetch({
188
+ method: "POST",
189
+ url: `/channels/${channelId}/messages`,
190
+ params,
191
+ options,
192
+ }),
193
+ createReaction: (channelId, messageId, emoji, options) => fetch({
194
+ method: "PUT",
195
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
196
+ options,
197
+ }),
198
+ createStageInstance: (params, options) => fetch({
199
+ method: "POST",
200
+ url: `/stage-instances`,
201
+ params,
202
+ options,
203
+ }),
204
+ createWebhook: (channelId, params, options) => fetch({
205
+ method: "POST",
206
+ url: `/channels/${channelId}/webhooks`,
207
+ params,
208
+ options,
209
+ }),
210
+ crosspostMessage: (channelId, messageId, options) => fetch({
211
+ method: "POST",
212
+ url: `/channels/${channelId}/messages/${messageId}/crosspost`,
213
+ options,
214
+ }),
215
+ deleteAllReactions: (channelId, messageId, options) => fetch({
216
+ method: "DELETE",
217
+ url: `/channels/${channelId}/messages/${messageId}/reactions`,
218
+ options,
219
+ }),
220
+ deleteAllReactionsForEmoji: (channelId, messageId, emoji, options) => fetch({
221
+ method: "DELETE",
222
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
223
+ options,
224
+ }),
225
+ deleteAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
226
+ method: "DELETE",
227
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
228
+ options,
229
+ }),
230
+ deleteChannelPermission: (channelId, overwriteId, options) => fetch({
231
+ method: "DELETE",
232
+ url: `/channels/${channelId}/permissions/${overwriteId}`,
233
+ options,
234
+ }),
235
+ deletecloseChannel: (channelId, options) => fetch({
236
+ method: "DELETE",
237
+ url: `/channels/${channelId}`,
238
+ options,
239
+ }),
240
+ deleteFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
241
+ method: "DELETE",
242
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
243
+ options,
244
+ }),
245
+ deleteGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
246
+ method: "DELETE",
247
+ url: `/applications/${applicationId}/commands/${commandId}`,
248
+ options,
249
+ }),
250
+ deleteGuild: (guildId, options) => fetch({
251
+ method: "DELETE",
252
+ url: `/guilds/${guildId}`,
253
+ options,
254
+ }),
255
+ deleteGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
256
+ method: "DELETE",
257
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
258
+ options,
259
+ }),
260
+ deleteGuildEmoji: (guildId, emojiId, options) => fetch({
261
+ method: "DELETE",
262
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
263
+ options,
264
+ }),
265
+ deleteGuildIntegration: (guildId, integrationId, options) => fetch({
266
+ method: "DELETE",
267
+ url: `/guilds/${guildId}/integrations/${integrationId}`,
268
+ options,
269
+ }),
270
+ deleteGuildRole: (guildId, roleId, options) => fetch({
271
+ method: "DELETE",
272
+ url: `/guilds/${guildId}/roles/${roleId}`,
273
+ options,
274
+ }),
275
+ deleteGuildScheduledEvent: (guildId, guildScheduledEventId, options) => fetch({
276
+ method: "DELETE",
277
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
278
+ options,
279
+ }),
280
+ deleteGuildSticker: (guildId, stickerId, options) => fetch({
281
+ method: "DELETE",
282
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
283
+ options,
284
+ }),
285
+ deleteGuildTemplate: (guildId, templateCode, options) => fetch({
286
+ method: "DELETE",
287
+ url: `/guilds/${guildId}/templates/${templateCode}`,
288
+ options,
289
+ }),
290
+ deleteInvite: (inviteCode, options) => fetch({
291
+ method: "DELETE",
292
+ url: `/invites/${inviteCode}`,
293
+ options,
294
+ }),
295
+ deleteMessage: (channelId, messageId, options) => fetch({
296
+ method: "DELETE",
297
+ url: `/channels/${channelId}/messages/${messageId}`,
298
+ options,
299
+ }),
300
+ deleteOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
301
+ method: "DELETE",
302
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
303
+ options,
304
+ }),
305
+ deleteOwnReaction: (channelId, messageId, emoji, options) => fetch({
306
+ method: "DELETE",
307
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
308
+ options,
309
+ }),
310
+ deleteStageInstance: (channelId, options) => fetch({
311
+ method: "DELETE",
312
+ url: `/stage-instances/${channelId}`,
313
+ options,
314
+ }),
315
+ deleteUserReaction: (channelId, messageId, emoji, userId, options) => fetch({
316
+ method: "DELETE",
317
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
318
+ options,
319
+ }),
320
+ deleteWebhook: (webhookId, options) => fetch({
321
+ method: "DELETE",
322
+ url: `/webhooks/${webhookId}`,
323
+ options,
324
+ }),
325
+ deleteWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
326
+ method: "DELETE",
327
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
328
+ params,
329
+ options,
330
+ }),
331
+ deleteWebhookWithToken: (webhookId, webhookToken, options) => fetch({
332
+ method: "DELETE",
333
+ url: `/webhooks/${webhookId}/${webhookToken}`,
334
+ options,
335
+ }),
336
+ editApplicationCommandPermissions: (applicationId, guildId, commandId, params, options) => fetch({
337
+ method: "PUT",
338
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
339
+ params,
340
+ options,
341
+ }),
342
+ editChannelPermissions: (channelId, overwriteId, params, options) => fetch({
343
+ method: "PUT",
344
+ url: `/channels/${channelId}/permissions/${overwriteId}`,
345
+ params,
346
+ options,
347
+ }),
348
+ editFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
349
+ method: "PATCH",
350
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
351
+ options,
352
+ }),
353
+ editGlobalApplicationCommand: (applicationId, commandId, params, options) => fetch({
354
+ method: "PATCH",
355
+ url: `/applications/${applicationId}/commands/${commandId}`,
356
+ params,
357
+ options,
358
+ }),
359
+ editGuildApplicationCommand: (applicationId, guildId, commandId, params, options) => fetch({
360
+ method: "PATCH",
361
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
362
+ params,
363
+ options,
364
+ }),
365
+ editMessage: (channelId, messageId, params, options) => fetch({
366
+ method: "PATCH",
367
+ url: `/channels/${channelId}/messages/${messageId}`,
368
+ params,
369
+ options,
370
+ }),
371
+ editOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
372
+ method: "PATCH",
373
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
374
+ options,
375
+ }),
376
+ editWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
377
+ method: "PATCH",
378
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
379
+ params,
380
+ options,
381
+ }),
382
+ executeGitHubCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
383
+ method: "POST",
384
+ url: `/webhooks/${webhookId}/${webhookToken}/github`,
385
+ options,
386
+ }),
387
+ executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
388
+ method: "POST",
389
+ url: `/webhooks/${webhookId}/${webhookToken}/slack`,
390
+ options,
391
+ }),
392
+ executeWebhook: (webhookId, webhookToken, params, options) => fetch({
393
+ method: "POST",
394
+ url: `/webhooks/${webhookId}/${webhookToken}`,
395
+ params,
396
+ options,
397
+ }),
398
+ followAnnouncementChannel: (channelId, params, options) => fetch({
399
+ method: "POST",
400
+ url: `/channels/${channelId}/followers`,
401
+ params,
402
+ options,
403
+ }),
404
+ getApplicationCommandPermissions: (applicationId, guildId, commandId, options) => fetch({
405
+ method: "GET",
406
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
407
+ options,
408
+ }),
409
+ getApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
410
+ method: "GET",
411
+ url: `/applications/${applicationId}/role-connections/metadata`,
412
+ options,
413
+ }),
414
+ getAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
415
+ method: "GET",
416
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
417
+ options,
418
+ }),
419
+ getChannel: (channelId, options) => fetch({
420
+ method: "GET",
421
+ url: `/channels/${channelId}`,
422
+ options,
423
+ }),
424
+ getChannelInvites: (channelId, options) => fetch({
425
+ method: "GET",
426
+ url: `/channels/${channelId}/invites`,
427
+ options,
428
+ }),
429
+ getChannelMessage: (channelId, messageId, options) => fetch({
430
+ method: "GET",
431
+ url: `/channels/${channelId}/messages/${messageId}`,
432
+ options,
433
+ }),
434
+ getChannelMessages: (channelId, params, options) => fetch({
435
+ method: "GET",
436
+ url: `/channels/${channelId}/messages`,
437
+ params,
438
+ options,
439
+ }),
440
+ getChannelWebhooks: (channelId, options) => fetch({
441
+ method: "GET",
442
+ url: `/channels/${channelId}/webhooks`,
443
+ options,
444
+ }),
445
+ getCurrentAuthorizationInformation: options => fetch({
446
+ method: "GET",
447
+ url: `/oauth2/@me`,
448
+ options,
449
+ }),
450
+ getCurrentBotApplicationInformation: options => fetch({
451
+ method: "GET",
452
+ url: `/oauth2/applications/@me`,
453
+ options,
454
+ }),
455
+ getCurrentUser: options => fetch({
456
+ method: "GET",
457
+ url: `/users/@me`,
458
+ options,
459
+ }),
460
+ getCurrentUserGuildMember: (guildId, options) => fetch({
461
+ method: "GET",
462
+ url: `/users/@me/guilds/${guildId}/member`,
463
+ options,
464
+ }),
465
+ getCurrentUserGuilds: (params, options) => fetch({
466
+ method: "GET",
467
+ url: `/users/@me/guilds`,
468
+ params,
469
+ options,
470
+ }),
471
+ getFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
472
+ method: "GET",
473
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
474
+ options,
475
+ }),
476
+ getGateway: options => fetch({
477
+ method: "GET",
478
+ url: `/gateway`,
479
+ options,
480
+ }),
481
+ getGatewayBot: options => fetch({
482
+ method: "GET",
483
+ url: `/gateway/bot`,
484
+ options,
485
+ }),
486
+ getGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
487
+ method: "GET",
488
+ url: `/applications/${applicationId}/commands/${commandId}`,
489
+ options,
490
+ }),
491
+ getGlobalApplicationCommands: (applicationId, params, options) => fetch({
492
+ method: "GET",
493
+ url: `/applications/${applicationId}/commands`,
494
+ params,
495
+ options,
496
+ }),
497
+ getGuild: (guildId, params, options) => fetch({
498
+ method: "GET",
499
+ url: `/guilds/${guildId}`,
500
+ params,
501
+ options,
502
+ }),
503
+ getGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
504
+ method: "GET",
505
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
506
+ options,
507
+ }),
508
+ getGuildApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
509
+ method: "GET",
510
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
511
+ options,
512
+ }),
513
+ getGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
514
+ method: "GET",
515
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
516
+ params,
517
+ options,
518
+ }),
519
+ getGuildAuditLog: (guildId, params, options) => fetch({
520
+ method: "GET",
521
+ url: `/guilds/${guildId}/audit-logs`,
522
+ params,
523
+ options,
524
+ }),
525
+ getGuildBan: (guildId, userId, options) => fetch({
526
+ method: "GET",
527
+ url: `/guilds/${guildId}/bans/${userId}`,
528
+ options,
529
+ }),
530
+ getGuildBans: (guildId, params, options) => fetch({
531
+ method: "GET",
532
+ url: `/guilds/${guildId}/bans`,
533
+ params,
534
+ options,
535
+ }),
536
+ getGuildChannels: (guildId, options) => fetch({
537
+ method: "GET",
538
+ url: `/guilds/${guildId}/channels`,
539
+ options,
540
+ }),
541
+ getGuildEmoji: (guildId, emojiId, options) => fetch({
542
+ method: "GET",
543
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
544
+ options,
545
+ }),
546
+ getGuildIntegrations: (guildId, options) => fetch({
547
+ method: "GET",
548
+ url: `/guilds/${guildId}/integrations`,
549
+ options,
550
+ }),
551
+ getGuildInvites: (guildId, options) => fetch({
552
+ method: "GET",
553
+ url: `/guilds/${guildId}/invites`,
554
+ options,
555
+ }),
556
+ getGuildMember: (guildId, userId, options) => fetch({
557
+ method: "GET",
558
+ url: `/guilds/${guildId}/members/${userId}`,
559
+ options,
560
+ }),
561
+ getGuildOnboarding: (guildId, options) => fetch({
562
+ method: "GET",
563
+ url: `/guilds/${guildId}/onboarding`,
564
+ options,
565
+ }),
566
+ getGuildPreview: (guildId, options) => fetch({
567
+ method: "GET",
568
+ url: `/guilds/${guildId}/preview`,
569
+ options,
570
+ }),
571
+ getGuildPruneCount: (guildId, params, options) => fetch({
572
+ method: "GET",
573
+ url: `/guilds/${guildId}/prune`,
574
+ params,
575
+ options,
576
+ }),
577
+ getGuildRoles: (guildId, options) => fetch({
578
+ method: "GET",
579
+ url: `/guilds/${guildId}/roles`,
580
+ options,
581
+ }),
582
+ getGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
583
+ method: "GET",
584
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
585
+ params,
586
+ options,
587
+ }),
588
+ getGuildScheduledEventUsers: (guildId, guildScheduledEventId, params, options) => fetch({
589
+ method: "GET",
590
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
591
+ params,
592
+ options,
593
+ }),
594
+ getGuildSticker: (guildId, stickerId, options) => fetch({
595
+ method: "GET",
596
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
597
+ options,
598
+ }),
599
+ getGuildTemplate: (templateCode, options) => fetch({
600
+ method: "GET",
601
+ url: `/guilds/templates/${templateCode}`,
602
+ options,
603
+ }),
604
+ getGuildTemplates: (guildId, options) => fetch({
605
+ method: "GET",
606
+ url: `/guilds/${guildId}/templates`,
607
+ options,
608
+ }),
609
+ getGuildVanityUrl: (guildId, options) => fetch({
610
+ method: "GET",
611
+ url: `/guilds/${guildId}/vanity-url`,
612
+ options,
613
+ }),
614
+ getGuildVoiceRegions: (guildId, options) => fetch({
615
+ method: "GET",
616
+ url: `/guilds/${guildId}/regions`,
617
+ options,
618
+ }),
619
+ getGuildWebhooks: (guildId, options) => fetch({
620
+ method: "GET",
621
+ url: `/guilds/${guildId}/webhooks`,
622
+ options,
623
+ }),
624
+ getGuildWelcomeScreen: (guildId, options) => fetch({
625
+ method: "GET",
626
+ url: `/guilds/${guildId}/welcome-screen`,
627
+ options,
628
+ }),
629
+ getGuildWidget: (guildId, options) => fetch({
630
+ method: "GET",
631
+ url: `/guilds/${guildId}/widget.json`,
632
+ options,
633
+ }),
634
+ getGuildWidgetImage: (guildId, params, options) => fetch({
635
+ method: "GET",
636
+ url: `/guilds/${guildId}/widget.png`,
637
+ params,
638
+ options,
639
+ }),
640
+ getGuildWidgetSettings: (guildId, options) => fetch({
641
+ method: "GET",
642
+ url: `/guilds/${guildId}/widget`,
643
+ options,
644
+ }),
645
+ getInvite: (inviteCode, params, options) => fetch({
646
+ method: "GET",
647
+ url: `/invites/${inviteCode}`,
648
+ params,
649
+ options,
650
+ }),
651
+ getOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
652
+ method: "GET",
653
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
654
+ options,
655
+ }),
656
+ getPinnedMessages: (channelId, options) => fetch({
657
+ method: "GET",
658
+ url: `/channels/${channelId}/pins`,
659
+ options,
660
+ }),
661
+ getReactions: (channelId, messageId, emoji, params, options) => fetch({
662
+ method: "GET",
663
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
664
+ params,
665
+ options,
666
+ }),
667
+ getStageInstance: (channelId, options) => fetch({
668
+ method: "GET",
669
+ url: `/stage-instances/${channelId}`,
670
+ options,
671
+ }),
672
+ getSticker: (stickerId, options) => fetch({
673
+ method: "GET",
674
+ url: `/stickers/${stickerId}`,
675
+ options,
676
+ }),
677
+ getThreadMember: (channelId, userId, params, options) => fetch({
678
+ method: "GET",
679
+ url: `/channels/${channelId}/thread-members/${userId}`,
680
+ params,
681
+ options,
682
+ }),
683
+ getUser: (userId, options) => fetch({
684
+ method: "GET",
685
+ url: `/users/${userId}`,
686
+ options,
687
+ }),
688
+ getUserApplicationRoleConnection: (applicationId, options) => fetch({
689
+ method: "GET",
690
+ url: `/users/@me/applications/${applicationId}/role-connection`,
691
+ options,
692
+ }),
693
+ getUserConnections: options => fetch({
694
+ method: "GET",
695
+ url: `/users/@me/connections`,
696
+ options,
697
+ }),
698
+ getWebhook: (webhookId, options) => fetch({
699
+ method: "GET",
700
+ url: `/webhooks/${webhookId}`,
701
+ options,
702
+ }),
703
+ getWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
704
+ method: "GET",
705
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
706
+ params,
707
+ options,
708
+ }),
709
+ getWebhookWithToken: (webhookId, webhookToken, options) => fetch({
710
+ method: "GET",
711
+ url: `/webhooks/${webhookId}/${webhookToken}`,
712
+ options,
713
+ }),
714
+ groupDmAddRecipient: (channelId, userId, params, options) => fetch({
715
+ method: "PUT",
716
+ url: `/channels/${channelId}/recipients/${userId}`,
717
+ params,
718
+ options,
719
+ }),
720
+ groupDmRemoveRecipient: (channelId, userId, options) => fetch({
721
+ method: "DELETE",
722
+ url: `/channels/${channelId}/recipients/${userId}`,
723
+ options,
724
+ }),
725
+ joinThread: (channelId, options) => fetch({
726
+ method: "PUT",
727
+ url: `/channels/${channelId}/thread-members/@me`,
728
+ options,
729
+ }),
730
+ leaveGuild: (guildId, options) => fetch({
731
+ method: "DELETE",
732
+ url: `/users/@me/guilds/${guildId}`,
733
+ options,
734
+ }),
735
+ leaveThread: (channelId, options) => fetch({
736
+ method: "DELETE",
737
+ url: `/channels/${channelId}/thread-members/@me`,
738
+ options,
739
+ }),
740
+ listActiveGuildThreads: (guildId, options) => fetch({
741
+ method: "GET",
742
+ url: `/guilds/${guildId}/threads/active`,
743
+ options,
744
+ }),
745
+ listAutoModerationRulesForGuild: (guildId, options) => fetch({
746
+ method: "GET",
747
+ url: `/guilds/${guildId}/auto-moderation/rules`,
748
+ options,
749
+ }),
750
+ listGuildEmojis: (guildId, options) => fetch({
751
+ method: "GET",
752
+ url: `/guilds/${guildId}/emojis`,
753
+ options,
754
+ }),
755
+ listGuildMembers: (guildId, params, options) => fetch({
756
+ method: "GET",
757
+ url: `/guilds/${guildId}/members`,
758
+ params,
759
+ options,
760
+ }),
761
+ listGuildStickers: (guildId, options) => fetch({
762
+ method: "GET",
763
+ url: `/guilds/${guildId}/stickers`,
764
+ options,
765
+ }),
766
+ listJoinedPrivateArchivedThreads: (channelId, params, options) => fetch({
767
+ method: "GET",
768
+ url: `/channels/${channelId}/users/@me/threads/archived/private`,
769
+ params,
770
+ options,
771
+ }),
772
+ listNitroStickerPacks: options => fetch({
773
+ method: "GET",
774
+ url: `/sticker-packs`,
775
+ options,
776
+ }),
777
+ listPrivateArchivedThreads: (channelId, params, options) => fetch({
778
+ method: "GET",
779
+ url: `/channels/${channelId}/threads/archived/private`,
780
+ params,
781
+ options,
782
+ }),
783
+ listPublicArchivedThreads: (channelId, params, options) => fetch({
784
+ method: "GET",
785
+ url: `/channels/${channelId}/threads/archived/public`,
786
+ params,
787
+ options,
788
+ }),
789
+ listScheduledEventsForGuild: (guildId, params, options) => fetch({
790
+ method: "GET",
791
+ url: `/guilds/${guildId}/scheduled-events`,
792
+ params,
793
+ options,
794
+ }),
795
+ listThreadMembers: (channelId, params, options) => fetch({
796
+ method: "GET",
797
+ url: `/channels/${channelId}/thread-members`,
798
+ params,
799
+ options,
800
+ }),
801
+ listVoiceRegions: options => fetch({
802
+ method: "GET",
803
+ url: `/voice/regions`,
804
+ options,
805
+ }),
806
+ modifyAutoModerationRule: (guildId, autoModerationRuleId, params, options) => fetch({
807
+ method: "PATCH",
808
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
809
+ params,
810
+ options,
811
+ }),
812
+ modifyChannel: (channelId, params, options) => fetch({
813
+ method: "PATCH",
814
+ url: `/channels/${channelId}`,
815
+ params,
816
+ options,
817
+ }),
818
+ modifyCurrentMember: (guildId, params, options) => fetch({
819
+ method: "PATCH",
820
+ url: `/guilds/${guildId}/members/@me`,
821
+ params,
822
+ options,
823
+ }),
824
+ modifyCurrentUser: (params, options) => fetch({
825
+ method: "PATCH",
826
+ url: `/users/@me`,
827
+ params,
828
+ options,
829
+ }),
830
+ modifyCurrentUserNick: (guildId, params, options) => fetch({
831
+ method: "PATCH",
832
+ url: `/guilds/${guildId}/members/@me/nick`,
833
+ params,
834
+ options,
835
+ }),
836
+ modifyCurrentUserVoiceState: (guildId, params, options) => fetch({
837
+ method: "PATCH",
838
+ url: `/guilds/${guildId}/voice-states/@me`,
839
+ params,
840
+ options,
841
+ }),
842
+ modifyGuild: (guildId, params, options) => fetch({
843
+ method: "PATCH",
844
+ url: `/guilds/${guildId}`,
845
+ params,
846
+ options,
847
+ }),
848
+ modifyGuildChannelPositions: (guildId, params, options) => fetch({
849
+ method: "PATCH",
850
+ url: `/guilds/${guildId}/channels`,
851
+ params,
852
+ options,
853
+ }),
854
+ modifyGuildEmoji: (guildId, emojiId, params, options) => fetch({
855
+ method: "PATCH",
856
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
857
+ params,
858
+ options,
859
+ }),
860
+ modifyGuildMember: (guildId, userId, params, options) => fetch({
861
+ method: "PATCH",
862
+ url: `/guilds/${guildId}/members/${userId}`,
863
+ params,
864
+ options,
865
+ }),
866
+ modifyGuildMfaLevel: (guildId, params, options) => fetch({
867
+ method: "POST",
868
+ url: `/guilds/${guildId}/mfa`,
869
+ params,
870
+ options,
871
+ }),
872
+ modifyGuildRole: (guildId, roleId, params, options) => fetch({
873
+ method: "PATCH",
874
+ url: `/guilds/${guildId}/roles/${roleId}`,
875
+ params,
876
+ options,
877
+ }),
878
+ modifyGuildRolePositions: (guildId, params, options) => fetch({
879
+ method: "PATCH",
880
+ url: `/guilds/${guildId}/roles`,
881
+ params,
882
+ options,
883
+ }),
884
+ modifyGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
885
+ method: "PATCH",
886
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
887
+ params,
888
+ options,
889
+ }),
890
+ modifyGuildSticker: (guildId, stickerId, params, options) => fetch({
891
+ method: "PATCH",
892
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
893
+ params,
894
+ options,
895
+ }),
896
+ modifyGuildTemplate: (guildId, templateCode, params, options) => fetch({
897
+ method: "PATCH",
898
+ url: `/guilds/${guildId}/templates/${templateCode}`,
899
+ params,
900
+ options,
901
+ }),
902
+ modifyGuildWelcomeScreen: (guildId, params, options) => fetch({
903
+ method: "PATCH",
904
+ url: `/guilds/${guildId}/welcome-screen`,
905
+ params,
906
+ options,
907
+ }),
908
+ modifyGuildWidget: (guildId, options) => fetch({
909
+ method: "PATCH",
910
+ url: `/guilds/${guildId}/widget`,
911
+ options,
912
+ }),
913
+ modifyStageInstance: (channelId, params, options) => fetch({
914
+ method: "PATCH",
915
+ url: `/stage-instances/${channelId}`,
916
+ params,
917
+ options,
918
+ }),
919
+ modifyUserVoiceState: (guildId, userId, params, options) => fetch({
920
+ method: "PATCH",
921
+ url: `/guilds/${guildId}/voice-states/${userId}`,
922
+ params,
923
+ options,
924
+ }),
925
+ modifyWebhook: (webhookId, params, options) => fetch({
926
+ method: "PATCH",
927
+ url: `/webhooks/${webhookId}`,
928
+ params,
929
+ options,
930
+ }),
931
+ modifyWebhookWithToken: (webhookId, webhookToken, options) => fetch({
932
+ method: "PATCH",
933
+ url: `/webhooks/${webhookId}/${webhookToken}`,
934
+ options,
935
+ }),
936
+ pinMessage: (channelId, messageId, options) => fetch({
937
+ method: "PUT",
938
+ url: `/channels/${channelId}/pins/${messageId}`,
939
+ options,
940
+ }),
941
+ removeGuildBan: (guildId, userId, options) => fetch({
942
+ method: "DELETE",
943
+ url: `/guilds/${guildId}/bans/${userId}`,
944
+ options,
945
+ }),
946
+ removeGuildMember: (guildId, userId, options) => fetch({
947
+ method: "DELETE",
948
+ url: `/guilds/${guildId}/members/${userId}`,
949
+ options,
950
+ }),
951
+ removeGuildMemberRole: (guildId, userId, roleId, options) => fetch({
952
+ method: "DELETE",
953
+ url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
954
+ options,
955
+ }),
956
+ removeThreadMember: (channelId, userId, options) => fetch({
957
+ method: "DELETE",
958
+ url: `/channels/${channelId}/thread-members/${userId}`,
959
+ options,
960
+ }),
961
+ searchGuildMembers: (guildId, params, options) => fetch({
962
+ method: "GET",
963
+ url: `/guilds/${guildId}/members/search`,
964
+ params,
965
+ options,
966
+ }),
967
+ startThreadFromMessage: (channelId, messageId, params, options) => fetch({
968
+ method: "POST",
969
+ url: `/channels/${channelId}/messages/${messageId}/threads`,
970
+ params,
971
+ options,
972
+ }),
973
+ startThreadInForumChannel: (channelId, params, options) => fetch({
974
+ method: "POST",
975
+ url: `/channels/${channelId}/threads`,
976
+ params,
977
+ options,
978
+ }),
979
+ startThreadWithoutMessage: (channelId, params, options) => fetch({
980
+ method: "POST",
981
+ url: `/channels/${channelId}/threads`,
982
+ params,
983
+ options,
984
+ }),
985
+ syncGuildTemplate: (guildId, templateCode, options) => fetch({
986
+ method: "PUT",
987
+ url: `/guilds/${guildId}/templates/${templateCode}`,
988
+ options,
989
+ }),
990
+ triggerTypingIndicator: (channelId, options) => fetch({
991
+ method: "POST",
992
+ url: `/channels/${channelId}/typing`,
993
+ options,
994
+ }),
995
+ unpinMessage: (channelId, messageId, options) => fetch({
996
+ method: "DELETE",
997
+ url: `/channels/${channelId}/pins/${messageId}`,
998
+ options,
999
+ }),
1000
+ updateApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
1001
+ method: "PUT",
1002
+ url: `/applications/${applicationId}/role-connections/metadata`,
1003
+ options,
1004
+ }),
1005
+ updateUserApplicationRoleConnection: (applicationId, params, options) => fetch({
1006
+ method: "PUT",
1007
+ url: `/users/@me/applications/${applicationId}/role-connection`,
1008
+ params,
1009
+ options,
1010
+ }),
1011
+ };
1012
+ }
1013
+ export const GatewayIntents = {
1014
+ GUILDS: 1 << 0,
1015
+ GUILD_MEMBERS: 1 << 1,
1016
+ GUILD_MODERATION: 1 << 2,
1017
+ GUILD_EMOJIS_AND_STICKERS: 1 << 3,
1018
+ GUILD_INTEGRATIONS: 1 << 4,
1019
+ GUILD_WEBHOOKS: 1 << 5,
1020
+ GUILD_INVITES: 1 << 6,
1021
+ GUILD_VOICE_STATES: 1 << 7,
1022
+ GUILD_PRESENCES: 1 << 8,
1023
+ GUILD_MESSAGES: 1 << 9,
1024
+ GUILD_MESSAGE_REACTIONS: 1 << 10,
1025
+ GUILD_MESSAGE_TYPING: 1 << 11,
1026
+ DIRECT_MESSAGES: 1 << 12,
1027
+ DIRECT_MESSAGE_REACTIONS: 1 << 13,
1028
+ DIRECT_MESSAGE_TYPING: 1 << 14,
1029
+ MESSAGE_CONTENT: 1 << 15,
1030
+ GUILD_SCHEDULED_EVENTS: 1 << 16,
1031
+ AUTO_MODERATION_CONFIGURATION: 1 << 20,
1032
+ AUTO_MODERATION_EXECUTION: 1 << 21,
1033
+ };
1034
+ export const GuildMemberFlag = {
1035
+ /** Member has left and rejoined the guild */
1036
+ DID_REJOIN: 1 << 0,
1037
+ /** Member has completed onboarding */
1038
+ COMPLETED_ONBOARDING: 1 << 1,
1039
+ /** Member is exempt from guild verification requirements */
1040
+ BYPASSES_VERIFICATION: 1 << 2,
1041
+ /** Member has started onboarding */
1042
+ STARTED_ONBOARDING: 1 << 3,
1043
+ };
1044
+ export const MessageFlag = {
1045
+ /** this message has been published to subscribed channels (via Channel Following) */
1046
+ CROSSPOSTED: 1 << 0,
1047
+ /** this message originated from a message in another channel (via Channel Following) */
1048
+ IS_CROSSPOST: 1 << 1,
1049
+ /** do not include any embeds when serializing this message */
1050
+ SUPPRESS_EMBEDS: 1 << 2,
1051
+ /** the source message for this crosspost has been deleted (via Channel Following) */
1052
+ SOURCE_MESSAGE_DELETED: 1 << 3,
1053
+ /** this message came from the urgent message system */
1054
+ URGENT: 1 << 4,
1055
+ /** this message has an associated thread, with the same id as the message */
1056
+ HAS_THREAD: 1 << 5,
1057
+ /** this message is only visible to the user who invoked the Interaction */
1058
+ EPHEMERAL: 1 << 6,
1059
+ /** this message is an Interaction Response and the bot is "thinking" */
1060
+ LOADING: 1 << 7,
1061
+ /** this message failed to mention some roles and add their members to the thread */
1062
+ FAILED_TO_MENTION_SOME_ROLES_IN_THREAD: 1 << 8,
1063
+ /** this message will not trigger push and desktop notifications */
1064
+ SUPPRESS_NOTIFICATIONS: 1 << 12,
1065
+ /** this message is a voice message */
1066
+ IS_VOICE_MESSAGE: 1 << 13,
1067
+ };
1068
+ export const PermissionFlag = {
1069
+ /** Allows creation of instant invites */
1070
+ CREATE_INSTANT_INVITE: BigInt(1) << BigInt(0),
1071
+ /** Allows kicking members */
1072
+ KICK_MEMBERS: BigInt(1) << BigInt(1),
1073
+ /** Allows banning members */
1074
+ BAN_MEMBERS: BigInt(1) << BigInt(2),
1075
+ /** Allows all permissions and bypasses channel permission overwrites */
1076
+ ADMINISTRATOR: BigInt(1) << BigInt(3),
1077
+ /** Allows management and editing of channels */
1078
+ MANAGE_CHANNELS: BigInt(1) << BigInt(4),
1079
+ /** Allows management and editing of the guild */
1080
+ MANAGE_GUILD: BigInt(1) << BigInt(5),
1081
+ /** Allows for the addition of reactions to messages */
1082
+ ADD_REACTIONS: BigInt(1) << BigInt(6),
1083
+ /** Allows for viewing of audit logs */
1084
+ VIEW_AUDIT_LOG: BigInt(1) << BigInt(7),
1085
+ /** Allows for using priority speaker in a voice channel */
1086
+ PRIORITY_SPEAKER: BigInt(1) << BigInt(8),
1087
+ /** Allows the user to go live */
1088
+ STREAM: BigInt(1) << BigInt(9),
1089
+ /** Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels */
1090
+ VIEW_CHANNEL: BigInt(1) << BigInt(10),
1091
+ /** Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads) */
1092
+ SEND_MESSAGES: BigInt(1) << BigInt(11),
1093
+ /** Allows for sending of /tts messages */
1094
+ SEND_TTS_MESSAGES: BigInt(1) << BigInt(12),
1095
+ /** Allows for deletion of other users messages */
1096
+ MANAGE_MESSAGES: BigInt(1) << BigInt(13),
1097
+ /** Links sent by users with this permission will be auto-embedded */
1098
+ EMBED_LINKS: BigInt(1) << BigInt(14),
1099
+ /** Allows for uploading images and files */
1100
+ ATTACH_FILES: BigInt(1) << BigInt(15),
1101
+ /** Allows for reading of message history */
1102
+ READ_MESSAGE_HISTORY: BigInt(1) << BigInt(16),
1103
+ /** 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 */
1104
+ MENTION_EVERYONE: BigInt(1) << BigInt(17),
1105
+ /** Allows the usage of custom emojis from other servers */
1106
+ USE_EXTERNAL_EMOJIS: BigInt(1) << BigInt(18),
1107
+ /** Allows for viewing guild insights */
1108
+ VIEW_GUILD_INSIGHTS: BigInt(1) << BigInt(19),
1109
+ /** Allows for joining of a voice channel */
1110
+ CONNECT: BigInt(1) << BigInt(20),
1111
+ /** Allows for speaking in a voice channel */
1112
+ SPEAK: BigInt(1) << BigInt(21),
1113
+ /** Allows for muting members in a voice channel */
1114
+ MUTE_MEMBERS: BigInt(1) << BigInt(22),
1115
+ /** Allows for deafening of members in a voice channel */
1116
+ DEAFEN_MEMBERS: BigInt(1) << BigInt(23),
1117
+ /** Allows for moving of members between voice channels */
1118
+ MOVE_MEMBERS: BigInt(1) << BigInt(24),
1119
+ /** Allows for using voice-activity-detection in a voice channel */
1120
+ USE_VAD: BigInt(1) << BigInt(25),
1121
+ /** Allows for modification of own nickname */
1122
+ CHANGE_NICKNAME: BigInt(1) << BigInt(26),
1123
+ /** Allows for modification of other users nicknames */
1124
+ MANAGE_NICKNAMES: BigInt(1) << BigInt(27),
1125
+ /** Allows management and editing of roles */
1126
+ MANAGE_ROLES: BigInt(1) << BigInt(28),
1127
+ /** Allows management and editing of webhooks */
1128
+ MANAGE_WEBHOOKS: BigInt(1) << BigInt(29),
1129
+ /** Allows management and editing of emojis, stickers, and soundboard sounds */
1130
+ MANAGE_GUILD_EXPRESSIONS: BigInt(1) << BigInt(30),
1131
+ /** Allows members to use application commands, including slash commands and context menu commands. */
1132
+ USE_APPLICATION_COMMANDS: BigInt(1) << BigInt(31),
1133
+ /** Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.) */
1134
+ REQUEST_TO_SPEAK: BigInt(1) << BigInt(32),
1135
+ /** Allows for creating, editing, and deleting scheduled events */
1136
+ MANAGE_EVENTS: BigInt(1) << BigInt(33),
1137
+ /** Allows for deleting and archiving threads, and viewing all private threads */
1138
+ MANAGE_THREADS: BigInt(1) << BigInt(34),
1139
+ /** Allows for creating public and announcement threads */
1140
+ CREATE_PUBLIC_THREADS: BigInt(1) << BigInt(35),
1141
+ /** Allows for creating private threads */
1142
+ CREATE_PRIVATE_THREADS: BigInt(1) << BigInt(36),
1143
+ /** Allows the usage of custom stickers from other servers */
1144
+ USE_EXTERNAL_STICKERS: BigInt(1) << BigInt(37),
1145
+ /** Allows for sending messages in threads */
1146
+ SEND_MESSAGES_IN_THREADS: BigInt(1) << BigInt(38),
1147
+ /** Allows for using Activities (applications with the EMBEDDED flag) in a voice channel */
1148
+ USE_EMBEDDED_ACTIVITIES: BigInt(1) << BigInt(39),
1149
+ /** 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 */
1150
+ MODERATE_MEMBERS: BigInt(1) << BigInt(40),
1151
+ /** Allows for viewing role subscription insights */
1152
+ VIEW_CREATOR_MONETIZATION_ANALYTICS: BigInt(1) << BigInt(41),
1153
+ /** Allows for using soundboard in a voice channel */
1154
+ USE_SOUNDBOARD: BigInt(1) << BigInt(42),
1155
+ /** Allows sending voice messages */
1156
+ SEND_VOICE_MESSAGES: BigInt(1) << BigInt(46),
1157
+ };
1158
+ export const SystemChannelFlag = {
1159
+ /** Suppress member join notifications */
1160
+ SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
1161
+ /** Suppress server boost notifications */
1162
+ SUPPRESS_PREMIUM_SUBSCRIPTIONS: 1 << 1,
1163
+ /** Suppress server setup tips */
1164
+ SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
1165
+ /** Hide member join sticker reply buttons */
1166
+ SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
1167
+ /** Suppress role subscription purchase and renewal notifications */
1168
+ SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS: 1 << 4,
1169
+ /** Hide role subscription sticker reply buttons */
1170
+ SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5,
1171
+ };
1172
+ export const UserFlag = {
1173
+ /** Discord Employee */
1174
+ STAFF: 1 << 0,
1175
+ /** Partnered Server Owner */
1176
+ PARTNER: 1 << 1,
1177
+ /** HypeSquad Events Member */
1178
+ HYPESQUAD: 1 << 2,
1179
+ /** Bug Hunter Level 1 */
1180
+ BUG_HUNTER_LEVEL_1: 1 << 3,
1181
+ /** House Bravery Member */
1182
+ HYPESQUAD_ONLINE_HOUSE_1: 1 << 6,
1183
+ /** House Brilliance Member */
1184
+ HYPESQUAD_ONLINE_HOUSE_2: 1 << 7,
1185
+ /** House Balance Member */
1186
+ HYPESQUAD_ONLINE_HOUSE_3: 1 << 8,
1187
+ /** Early Nitro Supporter */
1188
+ PREMIUM_EARLY_SUPPORTER: 1 << 9,
1189
+ /** User is a team */
1190
+ TEAM_PSEUDO_USER: 1 << 10,
1191
+ /** Bug Hunter Level 2 */
1192
+ BUG_HUNTER_LEVEL_2: 1 << 14,
1193
+ /** Verified Bot */
1194
+ VERIFIED_BOT: 1 << 16,
1195
+ /** Early Verified Bot Developer */
1196
+ VERIFIED_DEVELOPER: 1 << 17,
1197
+ /** Moderator Programs Alumni */
1198
+ CERTIFIED_MODERATOR: 1 << 18,
1199
+ /** Bot uses only HTTP interactions and is shown in the online member list */
1200
+ BOT_HTTP_INTERACTIONS: 1 << 19,
1201
+ /** User is an Active Developer */
1202
+ ACTIVE_DEVELOPER: 1 << 22,
1203
+ };
1204
+ //# sourceMappingURL=types.js.map