@fluxerjs/core 3.1.0 → 3.3.0
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.
- package/dist/{SubpathMessage-DaimQAd9.d.ts → SubpathMessage-CNJlnR6y.d.mts} +2391 -2134
- package/dist/{SubpathMessage-Cj_U0V19.d.mts → SubpathMessage-DjLo6il5.d.ts} +2391 -2134
- package/dist/Sudo-mzPLv6YU.d.mts +802 -0
- package/dist/Sudo-mzPLv6YU.d.ts +802 -0
- package/dist/client.d.mts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2378 -1407
- package/dist/client.mjs +2346 -1369
- package/dist/cluster.d.mts +2 -2
- package/dist/cluster.d.ts +2 -2
- package/dist/cluster.js +2378 -1407
- package/dist/cluster.mjs +2346 -1369
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1227 -230
- package/dist/index.mjs +1129 -134
- package/dist/internal.d.mts +3 -2
- package/dist/internal.d.ts +3 -2
- package/dist/internal.js +53 -0
- package/dist/internal.mjs +55 -0
- package/dist/message.d.mts +2 -2
- package/dist/message.d.ts +2 -2
- package/dist/message.js +717 -34
- package/dist/message.mjs +708 -23
- package/package.json +4 -4
- package/dist/Sudo-fOKSPbxN.d.mts +0 -461
- package/dist/Sudo-fOKSPbxN.d.ts +0 -461
|
@@ -0,0 +1,802 @@
|
|
|
1
|
+
import { RESTPostAPIEmbed, RESTPostAPIMessageUploadedAttachment, APIAllowedMentions, MessageReferenceType, APIMessageReference, ChannelType, ThreadAutoArchiveDuration, ForumTagSetting, ForumSortOrder, ForumLayout, OverwriteType, APIMessage, APIChannel, APIMessageSearchResponse } from '@fluxerjs/types';
|
|
2
|
+
import { PermissionResolvable } from '@fluxerjs/util';
|
|
3
|
+
import { EmbedBuilder, AttachmentBuilder, MessagePayload } from '@fluxerjs/builders';
|
|
4
|
+
|
|
5
|
+
/** Attachment upload / message attachment SDK options. */
|
|
6
|
+
/** Edits to an existing message attachment (by `id`) when editing a message. */
|
|
7
|
+
interface MessageAttachmentEdit {
|
|
8
|
+
id: number | string;
|
|
9
|
+
filename?: string;
|
|
10
|
+
uploadFilename?: string;
|
|
11
|
+
fileSize?: number;
|
|
12
|
+
contentType?: string;
|
|
13
|
+
title?: string | null;
|
|
14
|
+
description?: string | null;
|
|
15
|
+
flags?: number;
|
|
16
|
+
}
|
|
17
|
+
/** Convert {@link MessageAttachmentEdit} entries to wire attachment objects. */
|
|
18
|
+
declare function toMessageAttachmentEditWire(attachments: readonly MessageAttachmentEdit[]): Array<Record<string, unknown>>;
|
|
19
|
+
/** Plan item for {@link Channel.requestAttachmentUploads}. */
|
|
20
|
+
interface AttachmentUploadPlanItem {
|
|
21
|
+
id: number;
|
|
22
|
+
filename: string;
|
|
23
|
+
fileSize: number;
|
|
24
|
+
contentType: string;
|
|
25
|
+
}
|
|
26
|
+
/** Convert plan items to the attachments request wire body. */
|
|
27
|
+
declare function toAttachmentUploadPlanBody(attachments: readonly AttachmentUploadPlanItem[]): {
|
|
28
|
+
attachments: Array<Record<string, unknown>>;
|
|
29
|
+
};
|
|
30
|
+
/** Multipart complete item for {@link Channel.completeAttachmentUploads}. */
|
|
31
|
+
interface AttachmentUploadCompleteItem {
|
|
32
|
+
uploadFilename: string;
|
|
33
|
+
uploadId: string;
|
|
34
|
+
}
|
|
35
|
+
/** Convert complete items to the attachments/complete wire body. */
|
|
36
|
+
declare function toAttachmentUploadCompleteBody(uploads: readonly AttachmentUploadCompleteItem[]): {
|
|
37
|
+
uploads: Array<{
|
|
38
|
+
upload_filename: string;
|
|
39
|
+
upload_id: string;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
/** Part in a multipart upload plan response. */
|
|
43
|
+
interface AttachmentUploadPartPayload {
|
|
44
|
+
partNumber: number;
|
|
45
|
+
uploadUrl: string;
|
|
46
|
+
}
|
|
47
|
+
/** Singlepart plan response item. */
|
|
48
|
+
interface AttachmentUploadSinglepartPayload {
|
|
49
|
+
id: number;
|
|
50
|
+
filename: string;
|
|
51
|
+
uploadFilename: string;
|
|
52
|
+
fileSize: number;
|
|
53
|
+
contentType: string;
|
|
54
|
+
uploadMode: 'singlepart';
|
|
55
|
+
uploadUrl: string;
|
|
56
|
+
}
|
|
57
|
+
/** Multipart plan response item. */
|
|
58
|
+
interface AttachmentUploadMultipartPayload {
|
|
59
|
+
id: number;
|
|
60
|
+
filename: string;
|
|
61
|
+
uploadFilename: string;
|
|
62
|
+
fileSize: number;
|
|
63
|
+
contentType: string;
|
|
64
|
+
uploadMode: 'multipart';
|
|
65
|
+
uploadId: string;
|
|
66
|
+
partSize: number;
|
|
67
|
+
parts: AttachmentUploadPartPayload[];
|
|
68
|
+
}
|
|
69
|
+
type AttachmentUploadPlanResponseItem = AttachmentUploadSinglepartPayload | AttachmentUploadMultipartPayload;
|
|
70
|
+
/** CamelCase response from {@link Channel.requestAttachmentUploads}. */
|
|
71
|
+
interface AttachmentUploadPlanResponse {
|
|
72
|
+
attachments: AttachmentUploadPlanResponseItem[];
|
|
73
|
+
}
|
|
74
|
+
/** CamelCase response from {@link Channel.completeAttachmentUploads}. */
|
|
75
|
+
interface AttachmentUploadCompleteResponse {
|
|
76
|
+
uploads: Array<{
|
|
77
|
+
uploadFilename: string;
|
|
78
|
+
}>;
|
|
79
|
+
}
|
|
80
|
+
/** Map wire attachment plan response → camelCase. */
|
|
81
|
+
declare function toAttachmentUploadPlanResponse(data: {
|
|
82
|
+
attachments: Array<{
|
|
83
|
+
id: number;
|
|
84
|
+
filename: string;
|
|
85
|
+
upload_filename: string;
|
|
86
|
+
file_size: number;
|
|
87
|
+
content_type: string;
|
|
88
|
+
upload_mode: 'singlepart' | 'multipart';
|
|
89
|
+
upload_url?: string;
|
|
90
|
+
upload_id?: string;
|
|
91
|
+
part_size?: number;
|
|
92
|
+
parts?: Array<{
|
|
93
|
+
part_number: number;
|
|
94
|
+
upload_url: string;
|
|
95
|
+
}>;
|
|
96
|
+
}>;
|
|
97
|
+
}): AttachmentUploadPlanResponse;
|
|
98
|
+
|
|
99
|
+
/** Resolved file data (after URL fetch). Used internally by REST layer. */
|
|
100
|
+
interface ResolvedMessageFile {
|
|
101
|
+
name: string;
|
|
102
|
+
data: Blob | ArrayBuffer | Uint8Array | Buffer;
|
|
103
|
+
filename?: string;
|
|
104
|
+
}
|
|
105
|
+
/** File data for message attachment uploads. Use `data` for buffers or `url` to fetch from a URL. */
|
|
106
|
+
type MessageFileData = {
|
|
107
|
+
name: string;
|
|
108
|
+
data: Blob | ArrayBuffer | Uint8Array | Buffer;
|
|
109
|
+
filename?: string;
|
|
110
|
+
} | {
|
|
111
|
+
name: string;
|
|
112
|
+
url: string;
|
|
113
|
+
filename?: string;
|
|
114
|
+
};
|
|
115
|
+
/** Attachment metadata for file uploads (id matches FormData index). */
|
|
116
|
+
interface MessageAttachmentMeta {
|
|
117
|
+
id: number;
|
|
118
|
+
filename: string;
|
|
119
|
+
title?: string | null;
|
|
120
|
+
description?: string | null;
|
|
121
|
+
/** MessageAttachmentFlags: IS_SPOILER (8), CONTAINS_EXPLICIT_MEDIA (16), IS_ANIMATED (32) */
|
|
122
|
+
flags?: number;
|
|
123
|
+
}
|
|
124
|
+
/** SDK options for allowed mentions (camelCase). Converted to APIAllowedMentions on send. */
|
|
125
|
+
type AllowedMentionsOptions = {
|
|
126
|
+
/** Mention parse groups to allow (`users`, `roles`, `everyone`). Empty array suppresses all. */
|
|
127
|
+
parse?: APIAllowedMentions['parse'];
|
|
128
|
+
/** Explicit user IDs that may be mentioned. */
|
|
129
|
+
users?: string[];
|
|
130
|
+
/** Explicit role IDs that may be mentioned. */
|
|
131
|
+
roles?: string[];
|
|
132
|
+
/** Whether to @mention and notify the author of the replied-to message. */
|
|
133
|
+
repliedUser?: boolean;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Common allowed-mentions presets.
|
|
137
|
+
* @example
|
|
138
|
+
* await message.reply('Got it!', { ping: false });
|
|
139
|
+
* await message.reply({ content: 'Got it!', allowedMentions: AllowedMentions.suppressReplyPing });
|
|
140
|
+
*/
|
|
141
|
+
declare const AllowedMentions: {
|
|
142
|
+
readonly suppressReplyPing: {
|
|
143
|
+
repliedUser: false;
|
|
144
|
+
};
|
|
145
|
+
readonly none: {
|
|
146
|
+
parse: never[];
|
|
147
|
+
};
|
|
148
|
+
readonly all: {
|
|
149
|
+
parse: ("users" | "roles" | "everyone")[];
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/** Target message for `replyTo` / `forward` on send options. */
|
|
153
|
+
type MessageReplyTarget = {
|
|
154
|
+
/** Channel that owns the target message. */
|
|
155
|
+
channelId: string;
|
|
156
|
+
/** Target message snowflake. */
|
|
157
|
+
messageId: string;
|
|
158
|
+
/** Guild id when known (optional for DMs / partials). */
|
|
159
|
+
guildId?: string | null;
|
|
160
|
+
/** {@link MessageReferenceType.Default} = reply, {@link MessageReferenceType.Forward} = forward */
|
|
161
|
+
type?: MessageReferenceType;
|
|
162
|
+
/** Attachment ids to include when forwarding. */
|
|
163
|
+
attachmentIds?: string[];
|
|
164
|
+
/** Embed indices to include when forwarding. */
|
|
165
|
+
embedIndices?: number[];
|
|
166
|
+
};
|
|
167
|
+
/** Options for sending a message via channel/message helpers. */
|
|
168
|
+
type MessageSendOptions = {
|
|
169
|
+
/** Plain text body. */
|
|
170
|
+
content?: string;
|
|
171
|
+
/** Embed payloads or {@link EmbedBuilder} instances. */
|
|
172
|
+
embeds?: (RESTPostAPIEmbed | EmbedBuilder)[];
|
|
173
|
+
/** Local files, remote URLs, or {@link AttachmentBuilder} instances. */
|
|
174
|
+
files?: Array<MessageFileData | AttachmentBuilder>;
|
|
175
|
+
/** Attachment metadata aligned with uploaded `files` indices (or {@link AttachmentMeta}). */
|
|
176
|
+
attachments?: MessageAttachmentMeta[];
|
|
177
|
+
/** Already-uploaded CDN attachments (skip multipart). */
|
|
178
|
+
uploadedAttachments?: RESTPostAPIMessageUploadedAttachment[];
|
|
179
|
+
/** Who may be mentioned; see {@link AllowedMentionsOptions}. */
|
|
180
|
+
allowedMentions?: AllowedMentionsOptions;
|
|
181
|
+
/** Reply to an existing message (sets message_reference). */
|
|
182
|
+
replyTo?: MessageReplyTarget;
|
|
183
|
+
/** Forward an existing message into this channel. */
|
|
184
|
+
forward?: MessageReplyTarget;
|
|
185
|
+
/**
|
|
186
|
+
* Shortcut for reply pings. `false` sets `allowedMentions.repliedUser` to false.
|
|
187
|
+
* Prefer explicit {@link AllowedMentionsOptions} when you need full control.
|
|
188
|
+
*/
|
|
189
|
+
ping?: boolean;
|
|
190
|
+
/** Text-to-speech flag. */
|
|
191
|
+
tts?: boolean;
|
|
192
|
+
/** Sticker snowflakes to attach. */
|
|
193
|
+
stickerIds?: string[];
|
|
194
|
+
/** Client-generated nonce for deduplication. */
|
|
195
|
+
nonce?: string;
|
|
196
|
+
/** Favorite meme id when sending a saved meme. */
|
|
197
|
+
favoriteMemeId?: string;
|
|
198
|
+
/** Message flags bitfield. */
|
|
199
|
+
flags?: number;
|
|
200
|
+
};
|
|
201
|
+
/** API-ready body from MessageSendOptions. */
|
|
202
|
+
interface SendBodyResult {
|
|
203
|
+
content?: string;
|
|
204
|
+
embeds?: RESTPostAPIEmbed[];
|
|
205
|
+
attachments?: Array<{
|
|
206
|
+
id: number;
|
|
207
|
+
filename: string;
|
|
208
|
+
title?: string | null;
|
|
209
|
+
description?: string | null;
|
|
210
|
+
flags?: number;
|
|
211
|
+
} | RESTPostAPIMessageUploadedAttachment>;
|
|
212
|
+
allowed_mentions?: APIAllowedMentions;
|
|
213
|
+
message_reference?: APIMessageReference;
|
|
214
|
+
sticker_ids?: string[];
|
|
215
|
+
nonce?: string;
|
|
216
|
+
favorite_meme_id?: string;
|
|
217
|
+
tts?: boolean;
|
|
218
|
+
flags?: number;
|
|
219
|
+
}
|
|
220
|
+
/** REST post payload for POST /channels/{id}/messages. */
|
|
221
|
+
interface MessagePostPayload {
|
|
222
|
+
body: SendBodyResult;
|
|
223
|
+
files?: ResolvedMessageFile[];
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/** Optional client defaults applied when a send omits the matching field. */
|
|
227
|
+
type MessagePrepareDefaults = {
|
|
228
|
+
defaultAllowedMentions?: AllowedMentionsOptions;
|
|
229
|
+
};
|
|
230
|
+
/** Input accepted by {@link prepareMessagePostPayload} and channel send helpers. */
|
|
231
|
+
type MessagePrepareInput = string | MessageSendOptions | MessagePayload;
|
|
232
|
+
/**
|
|
233
|
+
* Build a full message POST payload (body + optional files) from send options
|
|
234
|
+
* or a builders {@link MessagePayload}.
|
|
235
|
+
* Applies {@link MessagePrepareDefaults.defaultAllowedMentions} when the call omits `allowedMentions`.
|
|
236
|
+
*/
|
|
237
|
+
declare function prepareMessagePostPayload(options: MessagePrepareInput, defaults?: MessagePrepareDefaults): Promise<MessagePostPayload>;
|
|
238
|
+
|
|
239
|
+
/** Thread create / edit / search options and wire bodies. */
|
|
240
|
+
|
|
241
|
+
/** Parent-channel defaults copied onto new threads. */
|
|
242
|
+
interface ThreadParentEditOptions {
|
|
243
|
+
/** Minutes of inactivity before new threads archive. `null` clears the default. */
|
|
244
|
+
autoArchiveDuration?: ThreadAutoArchiveDuration | null;
|
|
245
|
+
/** Slowmode in seconds copied onto new threads (0-21600). `null` clears it. */
|
|
246
|
+
rateLimitPerUser?: number | null;
|
|
247
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
248
|
+
reason?: string;
|
|
249
|
+
}
|
|
250
|
+
/** Options for {@link ThreadChannel.edit}. */
|
|
251
|
+
interface ThreadEditOptions {
|
|
252
|
+
/** Thread name (1-100 characters). */
|
|
253
|
+
name?: string;
|
|
254
|
+
/** Archive or unarchive the thread. */
|
|
255
|
+
archived?: boolean | null;
|
|
256
|
+
/** Minutes of inactivity before the thread archives. */
|
|
257
|
+
autoArchiveDuration?: ThreadAutoArchiveDuration;
|
|
258
|
+
/** When true, only moderators can unarchive the thread. */
|
|
259
|
+
locked?: boolean | null;
|
|
260
|
+
/** Slowmode in seconds (0-21600). */
|
|
261
|
+
rateLimitPerUser?: number | null;
|
|
262
|
+
/** Channel flags bitfield. */
|
|
263
|
+
flags?: number;
|
|
264
|
+
/** Tag IDs on a public forum or media post (max 5). */
|
|
265
|
+
appliedTags?: string[];
|
|
266
|
+
/** Whether non-moderators can add other non-moderators. Private threads only. */
|
|
267
|
+
invitable?: boolean | null;
|
|
268
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
269
|
+
reason?: string;
|
|
270
|
+
}
|
|
271
|
+
/** Options for starting a thread in a text or announcement channel. */
|
|
272
|
+
interface StartThreadOptions {
|
|
273
|
+
/** Thread name (1-100 characters). */
|
|
274
|
+
name: string;
|
|
275
|
+
/**
|
|
276
|
+
* Public, private, or announcement thread.
|
|
277
|
+
* Defaults to an announcement thread in announcement channels and a public thread elsewhere.
|
|
278
|
+
*/
|
|
279
|
+
type?: ChannelType.AnnouncementThread | ChannelType.PublicThread | ChannelType.PrivateThread;
|
|
280
|
+
/** Minutes of inactivity before the thread archives. */
|
|
281
|
+
autoArchiveDuration?: ThreadAutoArchiveDuration;
|
|
282
|
+
/** Slowmode in seconds (0-21600). */
|
|
283
|
+
rateLimitPerUser?: number;
|
|
284
|
+
/** Whether non-moderators can add other non-moderators. Private threads only. */
|
|
285
|
+
invitable?: boolean;
|
|
286
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
287
|
+
reason?: string;
|
|
288
|
+
}
|
|
289
|
+
/** Options for starting a thread from an existing message. */
|
|
290
|
+
interface StartThreadFromMessageOptions {
|
|
291
|
+
/** Thread name (1-100 characters). */
|
|
292
|
+
name: string;
|
|
293
|
+
autoArchiveDuration?: ThreadAutoArchiveDuration;
|
|
294
|
+
rateLimitPerUser?: number;
|
|
295
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
296
|
+
reason?: string;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Options for creating a post in a forum or media channel.
|
|
300
|
+
* The post is a public thread whose first message is {@link message}.
|
|
301
|
+
*/
|
|
302
|
+
interface StartForumThreadOptions {
|
|
303
|
+
/** Post name (1-100 characters). */
|
|
304
|
+
name: string;
|
|
305
|
+
/** First message of the post. */
|
|
306
|
+
message: MessagePrepareInput;
|
|
307
|
+
autoArchiveDuration?: ThreadAutoArchiveDuration;
|
|
308
|
+
rateLimitPerUser?: number;
|
|
309
|
+
/** Tag IDs applied to the post (max 5). */
|
|
310
|
+
appliedTags?: string[];
|
|
311
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
312
|
+
reason?: string;
|
|
313
|
+
}
|
|
314
|
+
/** Options for listing archived threads. `before` is an ISO-8601 archive timestamp. */
|
|
315
|
+
interface FetchArchivedThreadsOptions {
|
|
316
|
+
/** Public or private archived threads. */
|
|
317
|
+
type: 'public' | 'private';
|
|
318
|
+
/** Return threads archived before this ISO-8601 timestamp. */
|
|
319
|
+
before?: string;
|
|
320
|
+
/** Page size (2-100). Defaults to 50. */
|
|
321
|
+
limit?: number;
|
|
322
|
+
}
|
|
323
|
+
/** Options for listing joined private archived threads. `before` is a thread snowflake. */
|
|
324
|
+
interface FetchJoinedArchivedThreadsOptions {
|
|
325
|
+
/** Return threads before this thread ID. */
|
|
326
|
+
before?: string;
|
|
327
|
+
/** Page size (2-100). Defaults to 50. */
|
|
328
|
+
limit?: number;
|
|
329
|
+
}
|
|
330
|
+
/** Options for GET /channels/{id}/threads/search. */
|
|
331
|
+
interface ThreadSearchOptions {
|
|
332
|
+
/** Text to look for in thread names (max 100 characters). */
|
|
333
|
+
name?: string;
|
|
334
|
+
/** Tag IDs to filter by (max 20). */
|
|
335
|
+
tag?: string[];
|
|
336
|
+
/** How several tags are combined. */
|
|
337
|
+
tagSetting?: ForumTagSetting;
|
|
338
|
+
/** `true` returns only archived threads. `false` returns only active threads. */
|
|
339
|
+
archived?: boolean;
|
|
340
|
+
sortBy?: 'last_message_time' | 'archive_time' | 'relevance' | 'creation_time';
|
|
341
|
+
sortOrder?: 'asc' | 'desc';
|
|
342
|
+
/** Page size (1-25). Defaults to 25. */
|
|
343
|
+
limit?: number;
|
|
344
|
+
/** Number of threads to skip (max 9975). */
|
|
345
|
+
offset?: number;
|
|
346
|
+
/** Return threads before this thread ID. */
|
|
347
|
+
maxId?: string;
|
|
348
|
+
/** Return threads after this thread ID. */
|
|
349
|
+
minId?: string;
|
|
350
|
+
}
|
|
351
|
+
/** Options for listing thread members. */
|
|
352
|
+
interface FetchThreadMembersOptions {
|
|
353
|
+
/** Include a guild member object for each thread member. */
|
|
354
|
+
withMember?: boolean;
|
|
355
|
+
/** Return members after this user ID. */
|
|
356
|
+
after?: string;
|
|
357
|
+
/** Page size (1-100). Defaults to 100. */
|
|
358
|
+
limit?: number;
|
|
359
|
+
}
|
|
360
|
+
/** Options for the current user's thread notification settings. */
|
|
361
|
+
interface ThreadMemberSettingsOptions {
|
|
362
|
+
/** Notification flags. See {@link import('@fluxerjs/types').ThreadMemberFlags}. */
|
|
363
|
+
flags?: number;
|
|
364
|
+
/** Whether the thread is muted. */
|
|
365
|
+
muted?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Mute window. `null` clears it.
|
|
368
|
+
* `selectedTimeWindow` is the duration in seconds.
|
|
369
|
+
*/
|
|
370
|
+
muteConfig?: {
|
|
371
|
+
endTime?: string | number | null;
|
|
372
|
+
selectedTimeWindow: number;
|
|
373
|
+
} | null;
|
|
374
|
+
}
|
|
375
|
+
/** One tag in a forum or media channel's tag list. Include `id` to keep an existing tag. */
|
|
376
|
+
interface ForumAvailableTag {
|
|
377
|
+
/** Existing tag ID. Omit to create the tag as part of the list. */
|
|
378
|
+
id?: string;
|
|
379
|
+
/** Tag name (1-50 characters). */
|
|
380
|
+
name: string;
|
|
381
|
+
/** Whether only moderators can apply or remove this tag. */
|
|
382
|
+
moderated?: boolean;
|
|
383
|
+
/** Custom guild emoji ID. `null` clears it. */
|
|
384
|
+
emojiId?: string | null;
|
|
385
|
+
/** Unicode emoji. `null` clears it. */
|
|
386
|
+
emojiName?: string | null;
|
|
387
|
+
}
|
|
388
|
+
/** Default reaction shown on new forum or media posts. */
|
|
389
|
+
interface DefaultReactionEmojiInput {
|
|
390
|
+
/** Custom guild emoji ID. `null` clears it. */
|
|
391
|
+
emojiId?: string | null;
|
|
392
|
+
/** Unicode emoji. `null` clears it. */
|
|
393
|
+
emojiName?: string | null;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Forum and media settings.
|
|
397
|
+
* `defaultForumLayout` is sent only for forum channels.
|
|
398
|
+
*/
|
|
399
|
+
interface ForumParentFields {
|
|
400
|
+
/** Tags that can be applied to posts (max 20). Replaces the whole list. */
|
|
401
|
+
availableTags?: ForumAvailableTag[];
|
|
402
|
+
/** Default reaction for new posts. `null` clears it. */
|
|
403
|
+
defaultReactionEmoji?: DefaultReactionEmojiInput | null;
|
|
404
|
+
/** Default sort order for posts. `null` clears it. */
|
|
405
|
+
defaultSortOrder?: ForumSortOrder | null;
|
|
406
|
+
/** How posts match when several tags are selected. `null` clears it. */
|
|
407
|
+
defaultTagSetting?: ForumTagSetting | null;
|
|
408
|
+
/** Channel flags bitfield. */
|
|
409
|
+
flags?: number;
|
|
410
|
+
/** Minutes of inactivity before new posts archive. `null` clears the default. */
|
|
411
|
+
defaultAutoArchiveDuration?: ThreadAutoArchiveDuration | null;
|
|
412
|
+
/** Slowmode in seconds copied onto new posts (0-21600). `null` clears it. */
|
|
413
|
+
defaultThreadRateLimitPerUser?: number | null;
|
|
414
|
+
/** Default layout for forum posts. Ignored on media channels. `null` clears it. */
|
|
415
|
+
defaultForumLayout?: ForumLayout | null;
|
|
416
|
+
}
|
|
417
|
+
/** Options for {@link ForumChannel.edit} and {@link MediaChannel.edit}. */
|
|
418
|
+
interface ForumParentEditOptions extends ChannelEditOptions, ForumParentFields {
|
|
419
|
+
}
|
|
420
|
+
/** Create or edit a forum/media tag. */
|
|
421
|
+
interface ForumTagOptions {
|
|
422
|
+
/** Tag name (1-50 characters). */
|
|
423
|
+
name: string;
|
|
424
|
+
/** Whether only moderators can apply or remove this tag. */
|
|
425
|
+
moderated?: boolean;
|
|
426
|
+
/** Custom guild emoji ID. `null` clears it. */
|
|
427
|
+
emojiId?: string | null;
|
|
428
|
+
/** Unicode emoji. `null` clears it. */
|
|
429
|
+
emojiName?: string | null;
|
|
430
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
431
|
+
reason?: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/** Channel edit / invite / RTC / slowmode SDK options. */
|
|
435
|
+
|
|
436
|
+
/** A single permission overwrite for channel create/edit (`allow`/`deny` as {@link PermissionResolvable}). */
|
|
437
|
+
interface ChannelPermissionOverwriteOptions {
|
|
438
|
+
id: string;
|
|
439
|
+
type: OverwriteType;
|
|
440
|
+
allow?: PermissionResolvable;
|
|
441
|
+
deny?: PermissionResolvable;
|
|
442
|
+
}
|
|
443
|
+
/** Options for {@link GuildChannel.edit}. */
|
|
444
|
+
interface ChannelEditOptions {
|
|
445
|
+
/**
|
|
446
|
+
* Convert between a guild text channel ({@link ChannelType.GuildText}) and an announcement
|
|
447
|
+
* channel ({@link ChannelType.GuildAnnouncement}). Any other conversion is rejected.
|
|
448
|
+
*/
|
|
449
|
+
type?: ChannelType.GuildText | ChannelType.GuildAnnouncement;
|
|
450
|
+
name?: string | null;
|
|
451
|
+
topic?: string | null;
|
|
452
|
+
url?: string | null;
|
|
453
|
+
parentId?: string | null;
|
|
454
|
+
bitrate?: number | null;
|
|
455
|
+
userLimit?: number | null;
|
|
456
|
+
voiceConnectionLimit?: number | null;
|
|
457
|
+
nsfw?: boolean;
|
|
458
|
+
nsfwOverride?: boolean | null;
|
|
459
|
+
contentWarningLevel?: number | null;
|
|
460
|
+
contentWarningText?: string | null;
|
|
461
|
+
rateLimitPerUser?: number;
|
|
462
|
+
rtcRegion?: string | null;
|
|
463
|
+
permissionOverwrites?: ChannelPermissionOverwriteOptions[];
|
|
464
|
+
/** Group DM icon hash (base64 image). */
|
|
465
|
+
icon?: string | null;
|
|
466
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
467
|
+
reason?: string;
|
|
468
|
+
}
|
|
469
|
+
/** Options for {@link Guild.createChannel}. */
|
|
470
|
+
interface GuildChannelCreateOptions extends ForumParentFields {
|
|
471
|
+
name: string;
|
|
472
|
+
type: ChannelType;
|
|
473
|
+
topic?: string | null;
|
|
474
|
+
url?: string | null;
|
|
475
|
+
parentId?: string | null;
|
|
476
|
+
bitrate?: number | null;
|
|
477
|
+
userLimit?: number | null;
|
|
478
|
+
voiceConnectionLimit?: number | null;
|
|
479
|
+
permissionOverwrites?: ChannelPermissionOverwriteOptions[];
|
|
480
|
+
nsfw?: boolean;
|
|
481
|
+
nsfwOverride?: boolean | null;
|
|
482
|
+
contentWarningLevel?: number | null;
|
|
483
|
+
contentWarningText?: string | null;
|
|
484
|
+
rateLimitPerUser?: number | null;
|
|
485
|
+
}
|
|
486
|
+
/** Convert {@link ChannelEditOptions} to the channel PATCH wire body. */
|
|
487
|
+
declare function toChannelEditBody(options: ChannelEditOptions): Record<string, unknown>;
|
|
488
|
+
/** Convert {@link GuildChannelCreateOptions} to the channel POST wire body. */
|
|
489
|
+
declare function toChannelCreateBody(options: GuildChannelCreateOptions): Record<string, unknown>;
|
|
490
|
+
/** Options for {@link GuildChannel.createInvite}. */
|
|
491
|
+
interface ChannelInviteCreateOptions {
|
|
492
|
+
maxUses?: number;
|
|
493
|
+
maxAge?: number;
|
|
494
|
+
unique?: boolean;
|
|
495
|
+
temporary?: boolean;
|
|
496
|
+
}
|
|
497
|
+
/** Convert {@link ChannelInviteCreateOptions} to the invite create wire body. */
|
|
498
|
+
declare function toChannelInviteBody(options: ChannelInviteCreateOptions): Record<string, unknown>;
|
|
499
|
+
/** Options for {@link DMChannel.edit} (group DM name/icon/nicks). */
|
|
500
|
+
interface GroupDmEditOptions {
|
|
501
|
+
name?: string | null;
|
|
502
|
+
icon?: string | null;
|
|
503
|
+
nicks?: Record<string, string> | null;
|
|
504
|
+
}
|
|
505
|
+
/** Convert {@link GroupDmEditOptions} to GroupDmChannelUpdateRequest. */
|
|
506
|
+
declare function toGroupDmEditBody(options: GroupDmEditOptions): Record<string, unknown>;
|
|
507
|
+
interface RtcRegionPayload {
|
|
508
|
+
id: string;
|
|
509
|
+
name: string;
|
|
510
|
+
emoji: string;
|
|
511
|
+
}
|
|
512
|
+
/** CamelCase slowmode state from {@link Channel.fetchSlowmode}. */
|
|
513
|
+
interface ChannelSlowmodePayload {
|
|
514
|
+
rateLimitPerUser: number;
|
|
515
|
+
retryAfterMs: number;
|
|
516
|
+
nextSendAllowedAt: string | null;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/** Guild discovery SDK options and payloads. */
|
|
520
|
+
/** Options for applying a guild to discovery. */
|
|
521
|
+
interface DiscoveryApplicationOptions {
|
|
522
|
+
description?: string;
|
|
523
|
+
/** Discovery category (`category_type` on the wire). */
|
|
524
|
+
primaryCategoryId?: number | string;
|
|
525
|
+
/** Custom search tags (`custom_tags` on the wire). */
|
|
526
|
+
keywords?: string[];
|
|
527
|
+
/** Primary language code (`primary_language` on the wire). */
|
|
528
|
+
primaryLanguage?: string;
|
|
529
|
+
}
|
|
530
|
+
/** Convert {@link DiscoveryApplicationOptions} to the discovery wire body. */
|
|
531
|
+
declare function toDiscoveryBody(options: DiscoveryApplicationOptions): Record<string, unknown>;
|
|
532
|
+
/** CamelCase view of a guild's discovery application record. */
|
|
533
|
+
interface DiscoveryApplicationPayload {
|
|
534
|
+
guildId: string;
|
|
535
|
+
guildNsfwLevel?: number | null;
|
|
536
|
+
status: string;
|
|
537
|
+
description: string;
|
|
538
|
+
categoryType: number;
|
|
539
|
+
primaryLanguage?: string | null;
|
|
540
|
+
customTags?: string[];
|
|
541
|
+
appliedAt?: string;
|
|
542
|
+
reviewedAt?: string | null;
|
|
543
|
+
}
|
|
544
|
+
/** CamelCase discovery status. */
|
|
545
|
+
interface DiscoveryStatusPayload {
|
|
546
|
+
application?: DiscoveryApplicationPayload | null;
|
|
547
|
+
eligible: boolean;
|
|
548
|
+
minMemberCount: number;
|
|
549
|
+
}
|
|
550
|
+
/** Map wire discovery application → camelCase. */
|
|
551
|
+
declare function toDiscoveryApplicationPayload(data: {
|
|
552
|
+
guild_id: string;
|
|
553
|
+
guild_nsfw_level?: number | null;
|
|
554
|
+
status: string;
|
|
555
|
+
description: string;
|
|
556
|
+
category_type: number;
|
|
557
|
+
primary_language?: string | null;
|
|
558
|
+
custom_tags?: string[];
|
|
559
|
+
applied_at?: string;
|
|
560
|
+
reviewed_at?: string | null;
|
|
561
|
+
}): DiscoveryApplicationPayload;
|
|
562
|
+
/** Map wire discovery status → camelCase. */
|
|
563
|
+
declare function toDiscoveryStatusPayload(data: {
|
|
564
|
+
application?: {
|
|
565
|
+
guild_id: string;
|
|
566
|
+
guild_nsfw_level?: number | null;
|
|
567
|
+
status: string;
|
|
568
|
+
description: string;
|
|
569
|
+
category_type: number;
|
|
570
|
+
primary_language?: string | null;
|
|
571
|
+
custom_tags?: string[];
|
|
572
|
+
applied_at?: string;
|
|
573
|
+
reviewed_at?: string | null;
|
|
574
|
+
} | null;
|
|
575
|
+
eligible: boolean;
|
|
576
|
+
min_member_count: number;
|
|
577
|
+
}): DiscoveryStatusPayload;
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* CamelCase options for creating a guild role.
|
|
581
|
+
* Fluxer create accepts `name`, `color`, and `permissions` only.
|
|
582
|
+
*/
|
|
583
|
+
interface RoleCreateOptions {
|
|
584
|
+
/** Role name. */
|
|
585
|
+
name?: string;
|
|
586
|
+
/** Permissions bitfield string or {@link PermissionResolvable}. */
|
|
587
|
+
permissions?: string | PermissionResolvable;
|
|
588
|
+
/** Role color as 24-bit RGB. */
|
|
589
|
+
color?: number;
|
|
590
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
591
|
+
reason?: string;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* CamelCase options for editing a guild role.
|
|
595
|
+
* Fluxer update accepts `name`, `color`, `permissions`, `hoist`, `hoist_position`, `mentionable`.
|
|
596
|
+
* `unicodeEmoji` is read-only on {@link Role}. Position changes use {@link Guild.setRolePositions}.
|
|
597
|
+
*/
|
|
598
|
+
interface RoleEditOptions {
|
|
599
|
+
/** Role name. */
|
|
600
|
+
name?: string;
|
|
601
|
+
/** Permissions bitfield string or {@link PermissionResolvable}. */
|
|
602
|
+
permissions?: string | PermissionResolvable;
|
|
603
|
+
/** Role color as 24-bit RGB. */
|
|
604
|
+
color?: number;
|
|
605
|
+
/** Whether the role is displayed separately in the member list. */
|
|
606
|
+
hoist?: boolean;
|
|
607
|
+
/** Whether the role can be @mentioned. */
|
|
608
|
+
mentionable?: boolean;
|
|
609
|
+
/** Hoisted position (visual separator group). */
|
|
610
|
+
hoistPosition?: number | null;
|
|
611
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
612
|
+
reason?: string;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/** Guild member search / edit SDK options. */
|
|
616
|
+
/** Filters and paging for {@link Guild.searchMembers}. */
|
|
617
|
+
interface GuildMemberSearchOptions {
|
|
618
|
+
query?: string;
|
|
619
|
+
limit?: number;
|
|
620
|
+
offset?: number;
|
|
621
|
+
roleIds?: string[];
|
|
622
|
+
joinedAtGte?: number;
|
|
623
|
+
joinedAtLte?: number;
|
|
624
|
+
isBot?: boolean;
|
|
625
|
+
userCreatedAtGte?: number;
|
|
626
|
+
userCreatedAtLte?: number;
|
|
627
|
+
sortBy?: 'joinedAt' | 'relevance';
|
|
628
|
+
sortOrder?: 'asc' | 'desc';
|
|
629
|
+
joinSourceType?: number[];
|
|
630
|
+
sourceInviteCode?: string[];
|
|
631
|
+
}
|
|
632
|
+
/** Convert {@link GuildMemberSearchOptions} to the wire search body. */
|
|
633
|
+
declare function toMemberSearchBody(options: GuildMemberSearchOptions): Record<string, unknown>;
|
|
634
|
+
/** Fields to update on a guild member (nick, roles, profile, voice/timeout state). */
|
|
635
|
+
interface GuildMemberEditOptions {
|
|
636
|
+
nick?: string | null;
|
|
637
|
+
roles?: string[];
|
|
638
|
+
avatar?: string | null;
|
|
639
|
+
banner?: string | null;
|
|
640
|
+
bio?: string | null;
|
|
641
|
+
pronouns?: string | null;
|
|
642
|
+
accentColor?: number | null;
|
|
643
|
+
profileFlags?: number | null;
|
|
644
|
+
mentionFlags?: number | null;
|
|
645
|
+
mute?: boolean;
|
|
646
|
+
deaf?: boolean;
|
|
647
|
+
communicationDisabledUntil?: string | null;
|
|
648
|
+
timeoutReason?: string | null;
|
|
649
|
+
channelId?: string | null;
|
|
650
|
+
connectionId?: string | null;
|
|
651
|
+
/** Audit log reason (`X-Audit-Log-Reason`). Not sent in the JSON body. */
|
|
652
|
+
reason?: string;
|
|
653
|
+
}
|
|
654
|
+
/** Convert {@link GuildMemberEditOptions} to the member PATCH wire body. */
|
|
655
|
+
declare function toMemberEditBody(options: GuildMemberEditOptions): Record<string, unknown>;
|
|
656
|
+
|
|
657
|
+
/** Message bulk-fetch SDK options. */
|
|
658
|
+
|
|
659
|
+
/** A single channel's request within a bulk message fetch. */
|
|
660
|
+
interface BulkFetchMessagesRequest {
|
|
661
|
+
channelId: string;
|
|
662
|
+
limit: number;
|
|
663
|
+
before?: string;
|
|
664
|
+
after?: string;
|
|
665
|
+
around?: string;
|
|
666
|
+
}
|
|
667
|
+
/** Convert bulk-fetch requests to wire items. */
|
|
668
|
+
declare function toBulkFetchWire(requests: readonly BulkFetchMessagesRequest[]): Array<{
|
|
669
|
+
channel_id: string;
|
|
670
|
+
limit: number;
|
|
671
|
+
before?: string;
|
|
672
|
+
after?: string;
|
|
673
|
+
around?: string;
|
|
674
|
+
}>;
|
|
675
|
+
/**
|
|
676
|
+
* CamelCase options for {@link Client.searchMessages}.
|
|
677
|
+
* The helper always sends `scope: 'current'` (the only bot-legal scope).
|
|
678
|
+
*/
|
|
679
|
+
interface MessageSearchOptions {
|
|
680
|
+
content?: string;
|
|
681
|
+
contents?: string[];
|
|
682
|
+
exactPhrases?: string[];
|
|
683
|
+
channelIds?: string[];
|
|
684
|
+
excludeChannelIds?: string[];
|
|
685
|
+
contextGuildId?: string;
|
|
686
|
+
contextChannelId?: string;
|
|
687
|
+
hitsPerPage?: number;
|
|
688
|
+
page?: number;
|
|
689
|
+
cursor?: string[];
|
|
690
|
+
minId?: string;
|
|
691
|
+
maxId?: string;
|
|
692
|
+
authorIds?: string[];
|
|
693
|
+
excludeAuthorIds?: string[];
|
|
694
|
+
authorType?: Array<'user' | 'bot' | 'webhook'>;
|
|
695
|
+
excludeAuthorType?: Array<'user' | 'bot' | 'webhook'>;
|
|
696
|
+
mentions?: string[];
|
|
697
|
+
excludeMentions?: string[];
|
|
698
|
+
mentionEveryone?: boolean;
|
|
699
|
+
pinned?: boolean;
|
|
700
|
+
includeNsfw?: boolean;
|
|
701
|
+
has?: string[];
|
|
702
|
+
excludeHas?: string[];
|
|
703
|
+
sortBy?: string;
|
|
704
|
+
sortOrder?: 'asc' | 'desc';
|
|
705
|
+
}
|
|
706
|
+
/** Convert {@link MessageSearchOptions} to GlobalSearchMessagesRequest with `scope: current`. */
|
|
707
|
+
declare function toMessageSearchBody(options?: MessageSearchOptions): Record<string, unknown>;
|
|
708
|
+
/** Search is still indexing one or more channels. */
|
|
709
|
+
interface MessageSearchIndexing {
|
|
710
|
+
indexing: true;
|
|
711
|
+
}
|
|
712
|
+
/** Successful camelCase search page from {@link Client.searchMessages}. */
|
|
713
|
+
interface MessageSearchResults {
|
|
714
|
+
messages: APIMessage[];
|
|
715
|
+
channels: APIChannel[];
|
|
716
|
+
total: number;
|
|
717
|
+
hitsPerPage: number;
|
|
718
|
+
page: number;
|
|
719
|
+
cursor?: string[];
|
|
720
|
+
}
|
|
721
|
+
/** CamelCase response from {@link Client.searchMessages}. */
|
|
722
|
+
type MessageSearchResponse = MessageSearchResults | MessageSearchIndexing;
|
|
723
|
+
/** Map wire search response to camelCase. */
|
|
724
|
+
declare function toMessageSearchResponse(data: APIMessageSearchResponse): MessageSearchResponse;
|
|
725
|
+
|
|
726
|
+
/** Presence update SDK options. */
|
|
727
|
+
/** Options for `client.user.setPresence()` (status, activities, custom status). */
|
|
728
|
+
interface PresenceUpdateOptions {
|
|
729
|
+
status: 'online' | 'idle' | 'dnd' | 'invisible';
|
|
730
|
+
since?: number | null;
|
|
731
|
+
afk?: boolean;
|
|
732
|
+
activities?: Array<{
|
|
733
|
+
name: string;
|
|
734
|
+
type: number;
|
|
735
|
+
url?: string | null;
|
|
736
|
+
}>;
|
|
737
|
+
customStatus?: {
|
|
738
|
+
text?: string | null;
|
|
739
|
+
emojiName?: string | null;
|
|
740
|
+
emojiId?: string | null;
|
|
741
|
+
} | null;
|
|
742
|
+
}
|
|
743
|
+
/** Convert presence options to gateway opcode 3 payload. */
|
|
744
|
+
declare function toPresenceWire(options: PresenceUpdateOptions): Record<string, unknown>;
|
|
745
|
+
|
|
746
|
+
/** User profile SDK payloads. */
|
|
747
|
+
/** CamelCase user profile fields (pronouns, bio, banner, colors, theme). */
|
|
748
|
+
interface UserProfilePayload {
|
|
749
|
+
pronouns?: string | null;
|
|
750
|
+
bio?: string | null;
|
|
751
|
+
banner?: string | null;
|
|
752
|
+
accentColor?: number | null;
|
|
753
|
+
bannerColor?: number | null;
|
|
754
|
+
theme?: string | null;
|
|
755
|
+
}
|
|
756
|
+
/** CamelCase connected account. */
|
|
757
|
+
interface ConnectedAccountPayload {
|
|
758
|
+
name?: string | null;
|
|
759
|
+
type?: string | null;
|
|
760
|
+
}
|
|
761
|
+
/** CamelCase profile response from {@link UserManager.fetchWithProfile}. */
|
|
762
|
+
interface ProfilePayload {
|
|
763
|
+
userProfile?: UserProfilePayload | null;
|
|
764
|
+
mutualGuilds?: Array<{
|
|
765
|
+
id: string;
|
|
766
|
+
}> | null;
|
|
767
|
+
mutualGuildIds?: string[] | null;
|
|
768
|
+
connectedAccounts?: ConnectedAccountPayload[] | null;
|
|
769
|
+
}
|
|
770
|
+
/** Map wire profile → camelCase. */
|
|
771
|
+
declare function toProfilePayload(data: {
|
|
772
|
+
user_profile?: {
|
|
773
|
+
pronouns?: string | null;
|
|
774
|
+
bio?: string | null;
|
|
775
|
+
banner?: string | null;
|
|
776
|
+
accent_color?: number | null;
|
|
777
|
+
banner_color?: number | null;
|
|
778
|
+
theme?: string | null;
|
|
779
|
+
} | null;
|
|
780
|
+
mutual_guilds?: Array<{
|
|
781
|
+
id: string;
|
|
782
|
+
}> | null;
|
|
783
|
+
mutual_guild_ids?: string[] | null;
|
|
784
|
+
connected_accounts?: Array<{
|
|
785
|
+
name?: string | null;
|
|
786
|
+
type?: string | null;
|
|
787
|
+
}> | null;
|
|
788
|
+
}): ProfilePayload;
|
|
789
|
+
|
|
790
|
+
/** Sudo verification SDK options. */
|
|
791
|
+
/** Credentials for a sudo (elevated-action) verification: password and/or MFA. */
|
|
792
|
+
interface SudoVerificationOptions {
|
|
793
|
+
password?: string;
|
|
794
|
+
mfaMethod?: 'totp' | 'webauthn';
|
|
795
|
+
mfaCode?: string;
|
|
796
|
+
webauthnResponse?: Record<string, unknown>;
|
|
797
|
+
webauthnChallenge?: string;
|
|
798
|
+
}
|
|
799
|
+
/** Convert {@link SudoVerificationOptions} to the wire sudo body. */
|
|
800
|
+
declare function toSudoBody(options: SudoVerificationOptions): Record<string, unknown>;
|
|
801
|
+
|
|
802
|
+
export { type MessageSendOptions as $, AllowedMentions as A, type BulkFetchMessagesRequest as B, type ChannelEditOptions as C, type ChannelSlowmodePayload as D, type DefaultReactionEmojiInput as E, type DiscoveryApplicationOptions as F, type DiscoveryApplicationPayload as G, type DiscoveryStatusPayload as H, type FetchArchivedThreadsOptions as I, type FetchJoinedArchivedThreadsOptions as J, type FetchThreadMembersOptions as K, type ForumAvailableTag as L, type ForumParentEditOptions as M, type ForumParentFields as N, type ForumTagOptions as O, type GroupDmEditOptions as P, type GuildChannelCreateOptions as Q, type RoleCreateOptions as R, type GuildMemberEditOptions as S, type GuildMemberSearchOptions as T, type MessageAttachmentEdit as U, type MessagePrepareInput as V, type MessageReplyTarget as W, type MessageSearchIndexing as X, type MessageSearchOptions as Y, type MessageSearchResponse as Z, type MessageSearchResults as _, type RoleEditOptions as a, type PresenceUpdateOptions as a0, type ProfilePayload as a1, type RtcRegionPayload as a2, type StartForumThreadOptions as a3, type StartThreadFromMessageOptions as a4, type StartThreadOptions as a5, type SudoVerificationOptions as a6, type ThreadEditOptions as a7, type ThreadMemberSettingsOptions as a8, type ThreadParentEditOptions as a9, type ThreadSearchOptions as aa, prepareMessagePostPayload as ab, toAttachmentUploadPlanBody as b, toAttachmentUploadPlanResponse as c, toBulkFetchWire as d, toChannelCreateBody as e, toChannelEditBody as f, toChannelInviteBody as g, toDiscoveryApplicationPayload as h, toDiscoveryBody as i, toDiscoveryStatusPayload as j, toGroupDmEditBody as k, toMemberEditBody as l, toMemberSearchBody as m, toMessageAttachmentEditWire as n, toMessageSearchBody as o, toMessageSearchResponse as p, toPresenceWire as q, toProfilePayload as r, toSudoBody as s, toAttachmentUploadCompleteBody as t, type AllowedMentionsOptions as u, type AttachmentUploadCompleteItem as v, type AttachmentUploadCompleteResponse as w, type AttachmentUploadPlanItem as x, type AttachmentUploadPlanResponse as y, type ChannelInviteCreateOptions as z };
|