@fluxerjs/core 3.2.0 → 3.4.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-DHo7ltTz.d.ts → SubpathMessage-BAwFSagN.d.mts} +2426 -2104
- package/dist/{SubpathMessage-DW9TgPNl.d.mts → SubpathMessage-Dq-1tI7E.d.ts} +2426 -2104
- package/dist/{Sudo-DwxTf-jj.d.mts → Sudo-mzPLv6YU.d.mts} +339 -3
- package/dist/{Sudo-DwxTf-jj.d.ts → Sudo-mzPLv6YU.d.ts} +339 -3
- package/dist/client.d.mts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2787 -1424
- package/dist/client.mjs +2738 -1369
- package/dist/cluster.d.mts +2 -2
- package/dist/cluster.d.ts +2 -2
- package/dist/cluster.js +2787 -1424
- package/dist/cluster.mjs +2738 -1369
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1750 -365
- package/dist/index.mjs +1654 -270
- package/dist/internal.d.mts +3 -2
- package/dist/internal.d.ts +3 -2
- package/dist/internal.js +52 -0
- package/dist/internal.mjs +54 -0
- package/dist/message.d.mts +2 -2
- package/dist/message.d.ts +2 -2
- package/dist/message.js +846 -63
- package/dist/message.mjs +838 -53
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ChannelType, OverwriteType, APIMessage, APIChannel, APIMessageSearchResponse } from '@fluxerjs/types';
|
|
1
|
+
import { RESTPostAPIEmbed, RESTPostAPIMessageUploadedAttachment, APIAllowedMentions, MessageReferenceType, APIMessageReference, ChannelType, ThreadAutoArchiveDuration, ForumTagSetting, ForumSortOrder, ForumLayout, OverwriteType, APIMessage, APIChannel, APIMessageSearchResponse } from '@fluxerjs/types';
|
|
2
2
|
import { PermissionResolvable } from '@fluxerjs/util';
|
|
3
|
+
import { EmbedBuilder, AttachmentBuilder, MessagePayload } from '@fluxerjs/builders';
|
|
3
4
|
|
|
4
5
|
/** Attachment upload / message attachment SDK options. */
|
|
5
6
|
/** Edits to an existing message attachment (by `id`) when editing a message. */
|
|
@@ -95,6 +96,341 @@ declare function toAttachmentUploadPlanResponse(data: {
|
|
|
95
96
|
}>;
|
|
96
97
|
}): AttachmentUploadPlanResponse;
|
|
97
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
|
+
|
|
98
434
|
/** Channel edit / invite / RTC / slowmode SDK options. */
|
|
99
435
|
|
|
100
436
|
/** A single permission overwrite for channel create/edit (`allow`/`deny` as {@link PermissionResolvable}). */
|
|
@@ -131,7 +467,7 @@ interface ChannelEditOptions {
|
|
|
131
467
|
reason?: string;
|
|
132
468
|
}
|
|
133
469
|
/** Options for {@link Guild.createChannel}. */
|
|
134
|
-
interface GuildChannelCreateOptions {
|
|
470
|
+
interface GuildChannelCreateOptions extends ForumParentFields {
|
|
135
471
|
name: string;
|
|
136
472
|
type: ChannelType;
|
|
137
473
|
topic?: string | null;
|
|
@@ -463,4 +799,4 @@ interface SudoVerificationOptions {
|
|
|
463
799
|
/** Convert {@link SudoVerificationOptions} to the wire sudo body. */
|
|
464
800
|
declare function toSudoBody(options: SudoVerificationOptions): Record<string, unknown>;
|
|
465
801
|
|
|
466
|
-
export { type
|
|
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 };
|
package/dist/client.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as AuditLogChange, b as AuditLogEntryPayload, g as CacheSizeLimits, l as ChannelMemberCountsUpdatePayload, m as ChannelPinsUpdatePayload, n as ChannelRecipientPayload, o as Client, p as ClientEventListener, q as ClientEventMethods, r as ClientEventName, s as ClientEvents, t as ClientOptions, E as Events, O as GuildCountsUpdatePayload, Q as GuildEmojisUpdatePayload, X as GuildMembersChunkPayload, Y as GuildRoleDeletePayload, _ as GuildRoleUpdatePayload, a0 as GuildStickersUpdatePayload, a4 as InviteDeletePayload, ae as MessageDeleteBulkPayload, an as MessageReactionAddManyEntry, ao as MessageReactionAddManyPayload, aq as MessageReactionPayload, ar as MessageReactionRemoveAllPayload, as as MessageReactionRemoveEmojiPayload, aD as PresenceActivity, aE as PresenceUpdateBulkPayload, aF as PresenceUpdatePayload, aJ as ReactionEmojiPayload, a_ as TypingStartPayload, b8 as WebhooksUpdatePayload } from './SubpathMessage-BAwFSagN.mjs';
|
|
2
2
|
import '@fluxerjs/types';
|
|
3
3
|
import '@fluxerjs/collection';
|
|
4
4
|
import '@fluxerjs/util';
|
|
5
5
|
import 'node:events';
|
|
6
6
|
import '@fluxerjs/rest';
|
|
7
7
|
import '@fluxerjs/ws';
|
|
8
|
-
import './Sudo-
|
|
8
|
+
import './Sudo-mzPLv6YU.mjs';
|
|
9
9
|
import '@fluxerjs/builders';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as AuditLogChange, b as AuditLogEntryPayload, g as CacheSizeLimits, l as ChannelMemberCountsUpdatePayload, m as ChannelPinsUpdatePayload, n as ChannelRecipientPayload, o as Client, p as ClientEventListener, q as ClientEventMethods, r as ClientEventName, s as ClientEvents, t as ClientOptions, E as Events, O as GuildCountsUpdatePayload, Q as GuildEmojisUpdatePayload, X as GuildMembersChunkPayload, Y as GuildRoleDeletePayload, _ as GuildRoleUpdatePayload, a0 as GuildStickersUpdatePayload, a4 as InviteDeletePayload, ae as MessageDeleteBulkPayload, an as MessageReactionAddManyEntry, ao as MessageReactionAddManyPayload, aq as MessageReactionPayload, ar as MessageReactionRemoveAllPayload, as as MessageReactionRemoveEmojiPayload, aD as PresenceActivity, aE as PresenceUpdateBulkPayload, aF as PresenceUpdatePayload, aJ as ReactionEmojiPayload, a_ as TypingStartPayload, b8 as WebhooksUpdatePayload } from './SubpathMessage-Dq-1tI7E.js';
|
|
2
2
|
import '@fluxerjs/types';
|
|
3
3
|
import '@fluxerjs/collection';
|
|
4
4
|
import '@fluxerjs/util';
|
|
5
5
|
import 'node:events';
|
|
6
6
|
import '@fluxerjs/rest';
|
|
7
7
|
import '@fluxerjs/ws';
|
|
8
|
-
import './Sudo-
|
|
8
|
+
import './Sudo-mzPLv6YU.js';
|
|
9
9
|
import '@fluxerjs/builders';
|