@fluxerjs/core 3.4.0 → 3.5.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.
@@ -1,5 +1,5 @@
1
1
  import * as _fluxerjs_types from '@fluxerjs/types';
2
- import { APIGuild, APIRole, SystemChannelFlagsValue, DefaultMessageNotifications, GuildVerificationLevel, GuildMFALevel, GuildExplicitContentFilter, SplashCardAlignment, GuildNSFWLevel, ContentWarningLevel, GuildFeature, EmbedType, ChannelType, APIChannel, APIUserPartial, APIBan, APIEmoji, APISticker, InviteType, APIInvite, WebhookType, APIWebhook, RESTPostAPIEmbed, AuditLogActionType, APIInstanceEndpoints, APIInstance, APIGuildMember, APIMessageReaction, APIMessageSticker, MessageType, APIChannelPartial, OverwriteType, APIChannelOverwrite, APIForumTag, APIDefaultReactionEmoji, ForumSortOrder, ForumTagSetting, ForumLayout, APIThreadMember, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveDispatchData, APIMessage, GatewayVoiceStateUpdateDispatchData, GatewayVoiceStateAckDispatchData, GatewayVoiceServerUpdateDispatchData, GatewayEntranceSoundPlayDispatchData, GatewayVoiceSignalDispatchData, GatewayGuildHealthUpdateDispatchData, GatewayOperatorPassUpdateDispatchData, GatewayVoiceStatesSyncData, GatewayUserConnectionsUpdateDispatchData, GatewayWebAuthnCredentialsUpdateDispatchData, GatewayReceivePayload, APIGatewayBotResponse, APIEmojiMetadata, APIStickerMetadata, APIApplicationMe, APIOAuthApplication, APIPreloadMessagesResponse, APIBulkMessageFetchResponse, GatewaySendPayload, Routes } from '@fluxerjs/types';
2
+ import { APIGuild, APIRole, SystemChannelFlagsValue, DefaultMessageNotifications, GuildVerificationLevel, GuildMFALevel, GuildExplicitContentFilter, SplashCardAlignment, GuildNSFWLevel, ContentWarningLevel, GuildFeature, EmbedType, ChannelType, APIChannel, APIUserPartial, APIBan, APIEmoji, APISticker, InviteType, APIInvite, StageInstancePrivacyLevel, APIStageInstance, WebhookType, APIWebhook, RESTPostAPIEmbed, AuditLogActionType, APIInstanceEndpoints, APIInstance, APIGuildMember, APIMessageReaction, APIMessageSticker, MessageType, APIChannelPartial, OverwriteType, APIChannelOverwrite, APIStageCount, APIForumTag, APIDefaultReactionEmoji, ForumSortOrder, ForumTagSetting, ForumLayout, APIThreadMember, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveDispatchData, APIMessage, GatewayVoiceStateUpdateDispatchData, GatewayVoiceStateAckDispatchData, GatewayVoiceServerUpdateDispatchData, GatewayEntranceSoundPlayDispatchData, GatewayVoiceSignalDispatchData, GatewayGuildHealthUpdateDispatchData, GatewayOperatorPassUpdateDispatchData, GatewayVoiceStatesSyncData, GatewayVoiceJoinQueuedDispatchData, GatewayStageVoiceStatesSyncDispatchData, GatewayStageAudienceListUpdateDispatchData, GatewayUserConnectionsUpdateDispatchData, GatewayWebAuthnCredentialsUpdateDispatchData, GatewayReceivePayload, APIGatewayBotResponse, APIEmojiMetadata, APIStickerMetadata, APIApplicationMe, APIOAuthApplication, APIPreloadMessagesResponse, APIBulkMessageFetchResponse, GatewaySendPayload, Routes } from '@fluxerjs/types';
3
3
  import * as _fluxerjs_collection from '@fluxerjs/collection';
4
4
  import { LimitedCollection, Collection } from '@fluxerjs/collection';
5
5
  import { PermissionsBitField, LogLevel, Logger, MessageFlagsResolvable, PermissionResolvable, MessageFlagsBitField } from '@fluxerjs/util';
@@ -659,6 +659,61 @@ declare class Invite extends Base {
659
659
  delete(): Promise<void>;
660
660
  }
661
661
 
662
+ /** Options for {@link StageInstance.edit}. */
663
+ interface StageInstanceEditOptions {
664
+ /** New topic (1-120 characters after trimming). Posts a `StageTopic` system message. */
665
+ topic?: string;
666
+ reason?: string;
667
+ }
668
+ /** Options for {@link StageInstance.delete}. */
669
+ interface StageInstanceDeleteOptions {
670
+ /**
671
+ * Also disconnect everyone from the stage (needs `MOVE_MEMBERS`). By default speakers move to
672
+ * the audience and everyone stays connected.
673
+ */
674
+ disconnectAll?: boolean;
675
+ reason?: string;
676
+ }
677
+ /**
678
+ * A live stage in a stage channel. A stage channel has at most one instance, and the stage is live
679
+ * while it has one. Starting, editing and ending a stage needs a stage moderator
680
+ * (`MANAGE_CHANNELS`, `MUTE_MEMBERS` and `MOVE_MEMBERS` in the channel, or `ADMINISTRATOR`).
681
+ */
682
+ declare class StageInstance extends Base {
683
+ readonly client: Client;
684
+ readonly id: string;
685
+ readonly guildId: string;
686
+ readonly channelId: string;
687
+ topic: string;
688
+ /** Always {@link StageInstancePrivacyLevel.GuildOnly} on Fluxer. */
689
+ privacyLevel: StageInstancePrivacyLevel;
690
+ /** Always `true` on Fluxer. */
691
+ discoverableDisabled: boolean;
692
+ /** Always null on Fluxer. */
693
+ guildScheduledEventId: string | null;
694
+ constructor(client: Client, data: APIStageInstance);
695
+ /** @internal Patch in place from a newer payload. */
696
+ _patch(data: Partial<APIStageInstance>): void;
697
+ get guild(): Guild | null;
698
+ get channel(): StageChannel | null;
699
+ /** Unix timestamp (ms) when the stage started, from its snowflake ID. */
700
+ get createdTimestamp(): number;
701
+ get createdAt(): Date;
702
+ /**
703
+ * Change the live stage. Needs a stage moderator.
704
+ * Fires `STAGE_INSTANCE_UPDATE`.
705
+ */
706
+ edit(options: StageInstanceEditOptions): Promise<this>;
707
+ /** Change the stage topic. Shorthand for {@link edit}. */
708
+ setTopic(topic: string, reason?: string): Promise<this>;
709
+ /**
710
+ * End the stage. Needs a stage moderator. Speakers move to the audience, raised hands are
711
+ * lowered, and everyone stays connected unless `disconnectAll` is set.
712
+ */
713
+ delete(options?: StageInstanceDeleteOptions): Promise<void>;
714
+ toJSON(): APIStageInstance;
715
+ }
716
+
662
717
  /** Execute-webhook options: shared message fields plus username/avatar overrides. */
663
718
  type WebhookSendOptions = Pick<MessageSendOptions, 'content' | 'embeds' | 'tts' | 'allowedMentions' | 'files' | 'attachments'> & {
664
719
  username?: string;
@@ -823,6 +878,10 @@ declare class Guild extends Base {
823
878
  emojis: LimitedCollection<string, GuildEmoji>;
824
879
  /** Cached stickers in this guild. */
825
880
  stickers: LimitedCollection<string, GuildSticker>;
881
+ /** Live stages in this guild's stage channels, keyed by stage instance ID. */
882
+ stageInstances: Collection<string, StageInstance>;
883
+ /** Most participants a stage can have while speakers use video, or null if unknown. */
884
+ maxStageVideoChannelUsers: number | null;
826
885
  /**
827
886
  * Construct a guild from API data.
828
887
  * @param data - API guild from GET /guilds/{id} or gateway GUILD_CREATE
@@ -1571,6 +1630,13 @@ declare const Events: {
1571
1630
  readonly VoiceSignal: "voiceSignal";
1572
1631
  readonly OperatorPassUpdate: "operatorPassUpdate";
1573
1632
  readonly VoiceStatesSync: "voiceStatesSync";
1633
+ readonly VoiceJoinQueued: "voiceJoinQueued";
1634
+ readonly StageInstanceCreate: "stageInstanceCreate";
1635
+ readonly StageInstanceUpdate: "stageInstanceUpdate";
1636
+ readonly StageInstanceDelete: "stageInstanceDelete";
1637
+ readonly StageCountsUpdate: "stageCountsUpdate";
1638
+ readonly StageVoiceStatesSync: "stageVoiceStatesSync";
1639
+ readonly StageAudienceListUpdate: "stageAudienceListUpdate";
1574
1640
  readonly WebhooksUpdate: "webhooksUpdate";
1575
1641
  readonly Resumed: "resumed";
1576
1642
  readonly Error: "error";
@@ -1739,6 +1805,8 @@ declare const DMChannel_base: (abstract new (...args: any[]) => {
1739
1805
  isDM(): this is DMChannel;
1740
1806
  isPersonalNotes(): boolean;
1741
1807
  isVoice(): this is VoiceChannel;
1808
+ isStage(): this is StageChannel;
1809
+ isVoiceBased(): this is VoiceChannel | StageChannel;
1742
1810
  isLink(): this is LinkChannel;
1743
1811
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
1744
1812
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -1920,6 +1988,8 @@ declare const TextChannel_base: (abstract new (...args: any[]) => {
1920
1988
  isDM(): this is DMChannel;
1921
1989
  isPersonalNotes(): boolean;
1922
1990
  isVoice(): this is VoiceChannel;
1991
+ isStage(): this is StageChannel;
1992
+ isVoiceBased(): this is VoiceChannel | StageChannel;
1923
1993
  isLink(): this is LinkChannel;
1924
1994
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
1925
1995
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -2021,6 +2091,8 @@ declare const VoiceChannel_base: (abstract new (...args: any[]) => {
2021
2091
  isDM(): this is DMChannel;
2022
2092
  isPersonalNotes(): boolean;
2023
2093
  isVoice(): this is VoiceChannel;
2094
+ isStage(): this is StageChannel;
2095
+ isVoiceBased(): this is VoiceChannel | StageChannel;
2024
2096
  isLink(): this is LinkChannel;
2025
2097
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
2026
2098
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -2081,6 +2153,70 @@ declare class VoiceChannel extends VoiceChannel_base {
2081
2153
  setSlowmode(seconds: number): Promise<this>;
2082
2154
  protected applyEditPatch(data: APIChannel): void;
2083
2155
  }
2156
+ /** Speaker, audience and raised-hand counts of a stage channel (from `STAGE_COUNTS_UPDATE`). */
2157
+ interface StageCounts {
2158
+ listenerCount: number;
2159
+ speakerCount: number;
2160
+ requestCount: number;
2161
+ /** Whether speakers can share video right now (null when not sent). */
2162
+ videoEnabled: boolean | null;
2163
+ }
2164
+ /** Options for {@link StageChannel.createStageInstance}. */
2165
+ interface StageInstanceCreateOptions {
2166
+ /** Stage topic (1-120 characters after trimming). */
2167
+ topic: string;
2168
+ /** Mention everyone who can view the channel in the start message. Needs `MENTION_EVERYONE`. */
2169
+ sendStartNotification?: boolean;
2170
+ reason?: string;
2171
+ }
2172
+ /**
2173
+ * A stage channel (type 13): a voice channel for events where a few speakers talk to an audience.
2174
+ * It has text chat like a voice channel, and a stage is live while it has a {@link StageInstance}.
2175
+ *
2176
+ * Everyone joins in the audience. Bots with `MUTE_MEMBERS` can make themselves speakers with
2177
+ * {@link setSuppressed}`(false)`; `@fluxerjs/voice` can do it on join with `{ speaker: true }`.
2178
+ */
2179
+ declare class StageChannel extends VoiceChannel {
2180
+ /** Last known stage counts, or null until Fluxer sends them. */
2181
+ counts: StageCounts | null;
2182
+ /** The cached live stage of this channel, or null when the stage isn't live (or not cached). */
2183
+ get stageInstance(): StageInstance | null;
2184
+ /** Whether the stage is live according to the cache. */
2185
+ get isLive(): boolean;
2186
+ /**
2187
+ * Start a stage in this channel. Needs a stage moderator (`MANAGE_CHANNELS`, `MUTE_MEMBERS` and
2188
+ * `MOVE_MEMBERS`). When the caller is connected to the stage, they become a speaker.
2189
+ */
2190
+ createStageInstance(options: StageInstanceCreateOptions): Promise<StageInstance>;
2191
+ /** Fetch the live stage of this channel. Rejects with `UNKNOWN_STAGE_INSTANCE` when not live. */
2192
+ fetchStageInstance(): Promise<StageInstance>;
2193
+ /**
2194
+ * Move a member (or yourself when `user` is omitted) between the audience and the speakers.
2195
+ *
2196
+ * - Yourself, `false`: become a speaker (needs `MUTE_MEMBERS`), or accept an open invite.
2197
+ * - Yourself, `true`: move to the audience, or decline an invite.
2198
+ * - Another member, `false`: invite them to speak (a bot becomes a speaker at once). Needs `MUTE_MEMBERS`.
2199
+ * - Another member, `true`: move them to the audience and clear a raised hand or invite.
2200
+ */
2201
+ setSuppressed(suppressed: boolean, user?: string | {
2202
+ id: string;
2203
+ }): Promise<void>;
2204
+ /** Invite a member to speak (a bot becomes a speaker at once). Needs `MUTE_MEMBERS`. */
2205
+ inviteToSpeak(user: string | {
2206
+ id: string;
2207
+ }): Promise<void>;
2208
+ /** Move a speaker (or yourself when `user` is omitted) to the audience. */
2209
+ moveToAudience(user?: string | {
2210
+ id: string;
2211
+ }): Promise<void>;
2212
+ /**
2213
+ * Raise (`true`) or lower (`false`) your hand. Raising needs a live stage and
2214
+ * `REQUEST_TO_SPEAK`; lowering also accepts an open invite to speak.
2215
+ */
2216
+ setRequestToSpeak(raised?: boolean): Promise<void>;
2217
+ /** @internal Apply a stage count object. */
2218
+ _patchCounts(data: APIStageCount): void;
2219
+ }
2084
2220
  /** A link channel (redirects to an external URL). */
2085
2221
  declare class LinkChannel extends GuildChannel {
2086
2222
  /** External URL this channel links to. */
@@ -2194,6 +2330,8 @@ declare const ThreadChannel_base: (abstract new (...args: any[]) => {
2194
2330
  isDM(): this is DMChannel;
2195
2331
  isPersonalNotes(): boolean;
2196
2332
  isVoice(): this is VoiceChannel;
2333
+ isStage(): this is StageChannel;
2334
+ isVoiceBased(): this is VoiceChannel | StageChannel;
2197
2335
  isLink(): this is LinkChannel;
2198
2336
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
2199
2337
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -2495,6 +2633,16 @@ interface ChannelMemberCountsUpdatePayload {
2495
2633
  onlineCount: number;
2496
2634
  }>;
2497
2635
  }
2636
+ /** Counts of a stage channel changed (`STAGE_COUNTS_UPDATE`). */
2637
+ interface StageCountsUpdatePayload {
2638
+ guildId: string;
2639
+ channelId: string;
2640
+ listenerCount: number;
2641
+ speakerCount: number;
2642
+ requestCount: number;
2643
+ /** Whether speakers can share video right now (null when not sent). */
2644
+ videoEnabled: boolean | null;
2645
+ }
2498
2646
  /** Role update with optional previous snapshot. */
2499
2647
  interface GuildRoleUpdatePayload {
2500
2648
  /** Role after the update (cached instance). */
@@ -3001,8 +3149,12 @@ declare abstract class Channel extends Base {
3001
3149
  isDM(): this is DMChannel;
3002
3150
  /** Check if this is a personal notes channel. */
3003
3151
  isPersonalNotes(): boolean;
3004
- /** Check if this is a voice channel. */
3152
+ /** Check if this is a voice channel (type 2 only; see {@link isVoiceBased} to include stages). */
3005
3153
  isVoice(): this is VoiceChannel;
3154
+ /** Check if this is a stage channel (type 13). */
3155
+ isStage(): this is StageChannel;
3156
+ /** Check if this is a voice or stage channel, i.e. one `@fluxerjs/voice` can join. */
3157
+ isVoiceBased(): this is VoiceChannel | StageChannel;
3006
3158
  /** Check if this is a link channel. */
3007
3159
  isLink(): this is LinkChannel;
3008
3160
  /**
@@ -3247,6 +3399,16 @@ interface ClientEvents {
3247
3399
  [Events.GuildHealthUpdate]: [data: GatewayGuildHealthUpdateDispatchData];
3248
3400
  [Events.OperatorPassUpdate]: [data: GatewayOperatorPassUpdateDispatchData];
3249
3401
  [Events.VoiceStatesSync]: [data: GatewayVoiceStatesSyncData];
3402
+ [Events.VoiceJoinQueued]: [data: GatewayVoiceJoinQueuedDispatchData];
3403
+ [Events.StageInstanceCreate]: [stageInstance: StageInstance];
3404
+ [Events.StageInstanceUpdate]: [
3405
+ oldStageInstance: StageInstance | null,
3406
+ newStageInstance: StageInstance
3407
+ ];
3408
+ [Events.StageInstanceDelete]: [stageInstance: StageInstance];
3409
+ [Events.StageCountsUpdate]: [payload: StageCountsUpdatePayload];
3410
+ [Events.StageVoiceStatesSync]: [data: GatewayStageVoiceStatesSyncDispatchData];
3411
+ [Events.StageAudienceListUpdate]: [data: GatewayStageAudienceListUpdateDispatchData];
3250
3412
  [Events.MessageDeleteBulk]: [payload: MessageDeleteBulkPayload];
3251
3413
  [Events.GuildBanAdd]: [ban: GuildBan];
3252
3414
  [Events.GuildBanRemove]: [ban: GuildBan];
@@ -3633,4 +3795,4 @@ declare class Client extends EventEmitter {
3633
3795
  static get Routes(): typeof Routes;
3634
3796
  }
3635
3797
 
3636
- export { GuildSticker as $, AnnouncementChannel as A, Base as B, CacheController as C, DEFAULT_CACHE_LIMITS as D, Events as E, type FetchMessagesOptions as F, type FetchedThreads as G, type FetchedUserWithProfile as H, ForumChannel as I, type ForumUnreadEntry as J, type ForumUnreadsPayload as K, Guild as L, GuildBan as M, GuildChannel as N, type GuildCountsUpdatePayload as O, GuildEmoji as P, type GuildEmojisUpdatePayload as Q, GuildManager as R, GuildMember as S, GuildMemberManager as T, GuildMemberRoleManager as U, type GuildMemberSearchHit as V, type GuildMemberSearchPayload as W, type GuildMembersChunkPayload as X, type GuildRoleDeletePayload as Y, GuildRoleManager as Z, type GuildRoleUpdatePayload as _, type AuditLogChange as a, type UploadFileForSend as a$, type GuildStickersUpdatePayload as a0, INSTANCE_DISCOVERY_PATH as a1, Invite as a2, type InviteChannelSnapshot as a3, type InviteDeletePayload as a4, type InviteGuildSnapshot as a5, LinkChannel as a6, MediaChannel as a7, Message as a8, type MessageAttachment as a9, type PermissionOverwriteEditOptions as aA, PermissionOverwriteManager as aB, type PinnedMessagesPage as aC, type PresenceActivity as aD, type PresenceUpdateBulkPayload as aE, type PresenceUpdatePayload as aF, ReactionCollector as aG, type ReactionCollectorEndReason as aH, type ReactionCollectorOptions as aI, type ReactionEmojiPayload as aJ, type ReplyOptions as aK, type ResolvedCacheLimits as aL, type ResolvedInstance as aM, Role as aN, type RoleResolvable as aO, type TextBasedChannel as aP, TextChannel as aQ, ThreadChannel as aR, type ThreadListSyncPayload as aS, ThreadManager as aT, ThreadMember as aU, type ThreadMemberListEntry as aV, type ThreadMemberListUpdatePayload as aW, ThreadMemberManager as aX, type ThreadMembersUpdatePayload as aY, type ThreadSearchPage as aZ, type TypingStartPayload as a_, type MessageCall as aa, MessageCollector as ab, type MessageCollectorEndReason as ac, type MessageCollectorOptions as ad, type MessageDeleteBulkPayload as ae, type MessageEditOptions as af, type MessageEmbed as ag, type MessageEmbedAuthor as ah, type MessageEmbedField as ai, type MessageEmbedFooter as aj, type MessageEmbedMedia as ak, MessageManager as al, MessageReaction as am, type MessageReactionAddManyEntry as an, type MessageReactionAddManyPayload as ao, MessageReactionManager as ap, type MessageReactionPayload as aq, type MessageReactionRemoveAllPayload as ar, type MessageReactionRemoveEmojiPayload as as, type MessageReference as at, type MessageSnapshot as au, MessageSticker as av, PartialGuildMember as aw, PartialMessage as ax, type PartialUserGuildPayload as ay, PermissionOverwrite as az, type AuditLogEntryPayload as b, User as b0, UserManager as b1, type VanityURLPayload as b2, VoiceChannel as b3, Webhook as b4, type WebhookEditOptions as b5, type WebhookMessageEditOptions as b6, type WebhookSendOptions as b7, type WebhooksUpdatePayload as b8, fetchActiveThreads as b9, instanceDiscoveryUrl as ba, inviteUrl as bb, normalizeApiOrigin as bc, normalizeCacheLimit as bd, parseInstanceDiscovery as be, resolveCacheLimits as bf, resolveInstanceEndpoints as bg, type AuditLogFetchPayload as c, type BulkFetchMessagesChannelResult as d, type BulkFetchMessagesOptions as e, type BulkFetchMessagesResult as f, type CacheSizeLimits as g, type CacheStats as h, CategoryChannel as i, Channel as j, ChannelManager as k, type ChannelMemberCountsUpdatePayload as l, type ChannelPinsUpdatePayload as m, type ChannelRecipientPayload as n, Client as o, type ClientEventListener as p, type ClientEventMethods as q, type ClientEventName as r, type ClientEvents as s, type ClientOptions as t, ClientUser as u, type CollectedReaction as v, DEFAULT_INSTANCE_ENDPOINTS as w, DMChannel as x, type DiscoveryOrigin as y, type FetchPinnedMessagesOptions as z };
3798
+ export { GuildSticker as $, AnnouncementChannel as A, Base as B, CacheController as C, DEFAULT_CACHE_LIMITS as D, Events as E, type FetchMessagesOptions as F, type FetchedThreads as G, type FetchedUserWithProfile as H, ForumChannel as I, type ForumUnreadEntry as J, type ForumUnreadsPayload as K, Guild as L, GuildBan as M, GuildChannel as N, type GuildCountsUpdatePayload as O, GuildEmoji as P, type GuildEmojisUpdatePayload as Q, GuildManager as R, GuildMember as S, GuildMemberManager as T, GuildMemberRoleManager as U, type GuildMemberSearchHit as V, type GuildMemberSearchPayload as W, type GuildMembersChunkPayload as X, type GuildRoleDeletePayload as Y, GuildRoleManager as Z, type GuildRoleUpdatePayload as _, type AuditLogChange as a, ThreadMember as a$, type GuildStickersUpdatePayload as a0, INSTANCE_DISCOVERY_PATH as a1, Invite as a2, type InviteChannelSnapshot as a3, type InviteDeletePayload as a4, type InviteGuildSnapshot as a5, LinkChannel as a6, MediaChannel as a7, Message as a8, type MessageAttachment as a9, type PermissionOverwriteEditOptions as aA, PermissionOverwriteManager as aB, type PinnedMessagesPage as aC, type PresenceActivity as aD, type PresenceUpdateBulkPayload as aE, type PresenceUpdatePayload as aF, ReactionCollector as aG, type ReactionCollectorEndReason as aH, type ReactionCollectorOptions as aI, type ReactionEmojiPayload as aJ, type ReplyOptions as aK, type ResolvedCacheLimits as aL, type ResolvedInstance as aM, Role as aN, type RoleResolvable as aO, StageChannel as aP, type StageCounts as aQ, type StageCountsUpdatePayload as aR, StageInstance as aS, type StageInstanceCreateOptions as aT, type StageInstanceDeleteOptions as aU, type StageInstanceEditOptions as aV, type TextBasedChannel as aW, TextChannel as aX, ThreadChannel as aY, type ThreadListSyncPayload as aZ, ThreadManager as a_, type MessageCall as aa, MessageCollector as ab, type MessageCollectorEndReason as ac, type MessageCollectorOptions as ad, type MessageDeleteBulkPayload as ae, type MessageEditOptions as af, type MessageEmbed as ag, type MessageEmbedAuthor as ah, type MessageEmbedField as ai, type MessageEmbedFooter as aj, type MessageEmbedMedia as ak, MessageManager as al, MessageReaction as am, type MessageReactionAddManyEntry as an, type MessageReactionAddManyPayload as ao, MessageReactionManager as ap, type MessageReactionPayload as aq, type MessageReactionRemoveAllPayload as ar, type MessageReactionRemoveEmojiPayload as as, type MessageReference as at, type MessageSnapshot as au, MessageSticker as av, PartialGuildMember as aw, PartialMessage as ax, type PartialUserGuildPayload as ay, PermissionOverwrite as az, type AuditLogEntryPayload as b, type ThreadMemberListEntry as b0, type ThreadMemberListUpdatePayload as b1, ThreadMemberManager as b2, type ThreadMembersUpdatePayload as b3, type ThreadSearchPage as b4, type TypingStartPayload as b5, type UploadFileForSend as b6, User as b7, UserManager as b8, type VanityURLPayload as b9, VoiceChannel as ba, Webhook as bb, type WebhookEditOptions as bc, type WebhookMessageEditOptions as bd, type WebhookSendOptions as be, type WebhooksUpdatePayload as bf, fetchActiveThreads as bg, instanceDiscoveryUrl as bh, inviteUrl as bi, normalizeApiOrigin as bj, normalizeCacheLimit as bk, parseInstanceDiscovery as bl, resolveCacheLimits as bm, resolveInstanceEndpoints as bn, type AuditLogFetchPayload as c, type BulkFetchMessagesChannelResult as d, type BulkFetchMessagesOptions as e, type BulkFetchMessagesResult as f, type CacheSizeLimits as g, type CacheStats as h, CategoryChannel as i, Channel as j, ChannelManager as k, type ChannelMemberCountsUpdatePayload as l, type ChannelPinsUpdatePayload as m, type ChannelRecipientPayload as n, Client as o, type ClientEventListener as p, type ClientEventMethods as q, type ClientEventName as r, type ClientEvents as s, type ClientOptions as t, ClientUser as u, type CollectedReaction as v, DEFAULT_INSTANCE_ENDPOINTS as w, DMChannel as x, type DiscoveryOrigin as y, type FetchPinnedMessagesOptions as z };
@@ -1,5 +1,5 @@
1
1
  import * as _fluxerjs_types from '@fluxerjs/types';
2
- import { APIGuild, APIRole, SystemChannelFlagsValue, DefaultMessageNotifications, GuildVerificationLevel, GuildMFALevel, GuildExplicitContentFilter, SplashCardAlignment, GuildNSFWLevel, ContentWarningLevel, GuildFeature, EmbedType, ChannelType, APIChannel, APIUserPartial, APIBan, APIEmoji, APISticker, InviteType, APIInvite, WebhookType, APIWebhook, RESTPostAPIEmbed, AuditLogActionType, APIInstanceEndpoints, APIInstance, APIGuildMember, APIMessageReaction, APIMessageSticker, MessageType, APIChannelPartial, OverwriteType, APIChannelOverwrite, APIForumTag, APIDefaultReactionEmoji, ForumSortOrder, ForumTagSetting, ForumLayout, APIThreadMember, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveDispatchData, APIMessage, GatewayVoiceStateUpdateDispatchData, GatewayVoiceStateAckDispatchData, GatewayVoiceServerUpdateDispatchData, GatewayEntranceSoundPlayDispatchData, GatewayVoiceSignalDispatchData, GatewayGuildHealthUpdateDispatchData, GatewayOperatorPassUpdateDispatchData, GatewayVoiceStatesSyncData, GatewayUserConnectionsUpdateDispatchData, GatewayWebAuthnCredentialsUpdateDispatchData, GatewayReceivePayload, APIGatewayBotResponse, APIEmojiMetadata, APIStickerMetadata, APIApplicationMe, APIOAuthApplication, APIPreloadMessagesResponse, APIBulkMessageFetchResponse, GatewaySendPayload, Routes } from '@fluxerjs/types';
2
+ import { APIGuild, APIRole, SystemChannelFlagsValue, DefaultMessageNotifications, GuildVerificationLevel, GuildMFALevel, GuildExplicitContentFilter, SplashCardAlignment, GuildNSFWLevel, ContentWarningLevel, GuildFeature, EmbedType, ChannelType, APIChannel, APIUserPartial, APIBan, APIEmoji, APISticker, InviteType, APIInvite, StageInstancePrivacyLevel, APIStageInstance, WebhookType, APIWebhook, RESTPostAPIEmbed, AuditLogActionType, APIInstanceEndpoints, APIInstance, APIGuildMember, APIMessageReaction, APIMessageSticker, MessageType, APIChannelPartial, OverwriteType, APIChannelOverwrite, APIStageCount, APIForumTag, APIDefaultReactionEmoji, ForumSortOrder, ForumTagSetting, ForumLayout, APIThreadMember, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveDispatchData, APIMessage, GatewayVoiceStateUpdateDispatchData, GatewayVoiceStateAckDispatchData, GatewayVoiceServerUpdateDispatchData, GatewayEntranceSoundPlayDispatchData, GatewayVoiceSignalDispatchData, GatewayGuildHealthUpdateDispatchData, GatewayOperatorPassUpdateDispatchData, GatewayVoiceStatesSyncData, GatewayVoiceJoinQueuedDispatchData, GatewayStageVoiceStatesSyncDispatchData, GatewayStageAudienceListUpdateDispatchData, GatewayUserConnectionsUpdateDispatchData, GatewayWebAuthnCredentialsUpdateDispatchData, GatewayReceivePayload, APIGatewayBotResponse, APIEmojiMetadata, APIStickerMetadata, APIApplicationMe, APIOAuthApplication, APIPreloadMessagesResponse, APIBulkMessageFetchResponse, GatewaySendPayload, Routes } from '@fluxerjs/types';
3
3
  import * as _fluxerjs_collection from '@fluxerjs/collection';
4
4
  import { LimitedCollection, Collection } from '@fluxerjs/collection';
5
5
  import { PermissionsBitField, LogLevel, Logger, MessageFlagsResolvable, PermissionResolvable, MessageFlagsBitField } from '@fluxerjs/util';
@@ -659,6 +659,61 @@ declare class Invite extends Base {
659
659
  delete(): Promise<void>;
660
660
  }
661
661
 
662
+ /** Options for {@link StageInstance.edit}. */
663
+ interface StageInstanceEditOptions {
664
+ /** New topic (1-120 characters after trimming). Posts a `StageTopic` system message. */
665
+ topic?: string;
666
+ reason?: string;
667
+ }
668
+ /** Options for {@link StageInstance.delete}. */
669
+ interface StageInstanceDeleteOptions {
670
+ /**
671
+ * Also disconnect everyone from the stage (needs `MOVE_MEMBERS`). By default speakers move to
672
+ * the audience and everyone stays connected.
673
+ */
674
+ disconnectAll?: boolean;
675
+ reason?: string;
676
+ }
677
+ /**
678
+ * A live stage in a stage channel. A stage channel has at most one instance, and the stage is live
679
+ * while it has one. Starting, editing and ending a stage needs a stage moderator
680
+ * (`MANAGE_CHANNELS`, `MUTE_MEMBERS` and `MOVE_MEMBERS` in the channel, or `ADMINISTRATOR`).
681
+ */
682
+ declare class StageInstance extends Base {
683
+ readonly client: Client;
684
+ readonly id: string;
685
+ readonly guildId: string;
686
+ readonly channelId: string;
687
+ topic: string;
688
+ /** Always {@link StageInstancePrivacyLevel.GuildOnly} on Fluxer. */
689
+ privacyLevel: StageInstancePrivacyLevel;
690
+ /** Always `true` on Fluxer. */
691
+ discoverableDisabled: boolean;
692
+ /** Always null on Fluxer. */
693
+ guildScheduledEventId: string | null;
694
+ constructor(client: Client, data: APIStageInstance);
695
+ /** @internal Patch in place from a newer payload. */
696
+ _patch(data: Partial<APIStageInstance>): void;
697
+ get guild(): Guild | null;
698
+ get channel(): StageChannel | null;
699
+ /** Unix timestamp (ms) when the stage started, from its snowflake ID. */
700
+ get createdTimestamp(): number;
701
+ get createdAt(): Date;
702
+ /**
703
+ * Change the live stage. Needs a stage moderator.
704
+ * Fires `STAGE_INSTANCE_UPDATE`.
705
+ */
706
+ edit(options: StageInstanceEditOptions): Promise<this>;
707
+ /** Change the stage topic. Shorthand for {@link edit}. */
708
+ setTopic(topic: string, reason?: string): Promise<this>;
709
+ /**
710
+ * End the stage. Needs a stage moderator. Speakers move to the audience, raised hands are
711
+ * lowered, and everyone stays connected unless `disconnectAll` is set.
712
+ */
713
+ delete(options?: StageInstanceDeleteOptions): Promise<void>;
714
+ toJSON(): APIStageInstance;
715
+ }
716
+
662
717
  /** Execute-webhook options: shared message fields plus username/avatar overrides. */
663
718
  type WebhookSendOptions = Pick<MessageSendOptions, 'content' | 'embeds' | 'tts' | 'allowedMentions' | 'files' | 'attachments'> & {
664
719
  username?: string;
@@ -823,6 +878,10 @@ declare class Guild extends Base {
823
878
  emojis: LimitedCollection<string, GuildEmoji>;
824
879
  /** Cached stickers in this guild. */
825
880
  stickers: LimitedCollection<string, GuildSticker>;
881
+ /** Live stages in this guild's stage channels, keyed by stage instance ID. */
882
+ stageInstances: Collection<string, StageInstance>;
883
+ /** Most participants a stage can have while speakers use video, or null if unknown. */
884
+ maxStageVideoChannelUsers: number | null;
826
885
  /**
827
886
  * Construct a guild from API data.
828
887
  * @param data - API guild from GET /guilds/{id} or gateway GUILD_CREATE
@@ -1571,6 +1630,13 @@ declare const Events: {
1571
1630
  readonly VoiceSignal: "voiceSignal";
1572
1631
  readonly OperatorPassUpdate: "operatorPassUpdate";
1573
1632
  readonly VoiceStatesSync: "voiceStatesSync";
1633
+ readonly VoiceJoinQueued: "voiceJoinQueued";
1634
+ readonly StageInstanceCreate: "stageInstanceCreate";
1635
+ readonly StageInstanceUpdate: "stageInstanceUpdate";
1636
+ readonly StageInstanceDelete: "stageInstanceDelete";
1637
+ readonly StageCountsUpdate: "stageCountsUpdate";
1638
+ readonly StageVoiceStatesSync: "stageVoiceStatesSync";
1639
+ readonly StageAudienceListUpdate: "stageAudienceListUpdate";
1574
1640
  readonly WebhooksUpdate: "webhooksUpdate";
1575
1641
  readonly Resumed: "resumed";
1576
1642
  readonly Error: "error";
@@ -1739,6 +1805,8 @@ declare const DMChannel_base: (abstract new (...args: any[]) => {
1739
1805
  isDM(): this is DMChannel;
1740
1806
  isPersonalNotes(): boolean;
1741
1807
  isVoice(): this is VoiceChannel;
1808
+ isStage(): this is StageChannel;
1809
+ isVoiceBased(): this is VoiceChannel | StageChannel;
1742
1810
  isLink(): this is LinkChannel;
1743
1811
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
1744
1812
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -1920,6 +1988,8 @@ declare const TextChannel_base: (abstract new (...args: any[]) => {
1920
1988
  isDM(): this is DMChannel;
1921
1989
  isPersonalNotes(): boolean;
1922
1990
  isVoice(): this is VoiceChannel;
1991
+ isStage(): this is StageChannel;
1992
+ isVoiceBased(): this is VoiceChannel | StageChannel;
1923
1993
  isLink(): this is LinkChannel;
1924
1994
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
1925
1995
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -2021,6 +2091,8 @@ declare const VoiceChannel_base: (abstract new (...args: any[]) => {
2021
2091
  isDM(): this is DMChannel;
2022
2092
  isPersonalNotes(): boolean;
2023
2093
  isVoice(): this is VoiceChannel;
2094
+ isStage(): this is StageChannel;
2095
+ isVoiceBased(): this is VoiceChannel | StageChannel;
2024
2096
  isLink(): this is LinkChannel;
2025
2097
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
2026
2098
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -2081,6 +2153,70 @@ declare class VoiceChannel extends VoiceChannel_base {
2081
2153
  setSlowmode(seconds: number): Promise<this>;
2082
2154
  protected applyEditPatch(data: APIChannel): void;
2083
2155
  }
2156
+ /** Speaker, audience and raised-hand counts of a stage channel (from `STAGE_COUNTS_UPDATE`). */
2157
+ interface StageCounts {
2158
+ listenerCount: number;
2159
+ speakerCount: number;
2160
+ requestCount: number;
2161
+ /** Whether speakers can share video right now (null when not sent). */
2162
+ videoEnabled: boolean | null;
2163
+ }
2164
+ /** Options for {@link StageChannel.createStageInstance}. */
2165
+ interface StageInstanceCreateOptions {
2166
+ /** Stage topic (1-120 characters after trimming). */
2167
+ topic: string;
2168
+ /** Mention everyone who can view the channel in the start message. Needs `MENTION_EVERYONE`. */
2169
+ sendStartNotification?: boolean;
2170
+ reason?: string;
2171
+ }
2172
+ /**
2173
+ * A stage channel (type 13): a voice channel for events where a few speakers talk to an audience.
2174
+ * It has text chat like a voice channel, and a stage is live while it has a {@link StageInstance}.
2175
+ *
2176
+ * Everyone joins in the audience. Bots with `MUTE_MEMBERS` can make themselves speakers with
2177
+ * {@link setSuppressed}`(false)`; `@fluxerjs/voice` can do it on join with `{ speaker: true }`.
2178
+ */
2179
+ declare class StageChannel extends VoiceChannel {
2180
+ /** Last known stage counts, or null until Fluxer sends them. */
2181
+ counts: StageCounts | null;
2182
+ /** The cached live stage of this channel, or null when the stage isn't live (or not cached). */
2183
+ get stageInstance(): StageInstance | null;
2184
+ /** Whether the stage is live according to the cache. */
2185
+ get isLive(): boolean;
2186
+ /**
2187
+ * Start a stage in this channel. Needs a stage moderator (`MANAGE_CHANNELS`, `MUTE_MEMBERS` and
2188
+ * `MOVE_MEMBERS`). When the caller is connected to the stage, they become a speaker.
2189
+ */
2190
+ createStageInstance(options: StageInstanceCreateOptions): Promise<StageInstance>;
2191
+ /** Fetch the live stage of this channel. Rejects with `UNKNOWN_STAGE_INSTANCE` when not live. */
2192
+ fetchStageInstance(): Promise<StageInstance>;
2193
+ /**
2194
+ * Move a member (or yourself when `user` is omitted) between the audience and the speakers.
2195
+ *
2196
+ * - Yourself, `false`: become a speaker (needs `MUTE_MEMBERS`), or accept an open invite.
2197
+ * - Yourself, `true`: move to the audience, or decline an invite.
2198
+ * - Another member, `false`: invite them to speak (a bot becomes a speaker at once). Needs `MUTE_MEMBERS`.
2199
+ * - Another member, `true`: move them to the audience and clear a raised hand or invite.
2200
+ */
2201
+ setSuppressed(suppressed: boolean, user?: string | {
2202
+ id: string;
2203
+ }): Promise<void>;
2204
+ /** Invite a member to speak (a bot becomes a speaker at once). Needs `MUTE_MEMBERS`. */
2205
+ inviteToSpeak(user: string | {
2206
+ id: string;
2207
+ }): Promise<void>;
2208
+ /** Move a speaker (or yourself when `user` is omitted) to the audience. */
2209
+ moveToAudience(user?: string | {
2210
+ id: string;
2211
+ }): Promise<void>;
2212
+ /**
2213
+ * Raise (`true`) or lower (`false`) your hand. Raising needs a live stage and
2214
+ * `REQUEST_TO_SPEAK`; lowering also accepts an open invite to speak.
2215
+ */
2216
+ setRequestToSpeak(raised?: boolean): Promise<void>;
2217
+ /** @internal Apply a stage count object. */
2218
+ _patchCounts(data: APIStageCount): void;
2219
+ }
2084
2220
  /** A link channel (redirects to an external URL). */
2085
2221
  declare class LinkChannel extends GuildChannel {
2086
2222
  /** External URL this channel links to. */
@@ -2194,6 +2330,8 @@ declare const ThreadChannel_base: (abstract new (...args: any[]) => {
2194
2330
  isDM(): this is DMChannel;
2195
2331
  isPersonalNotes(): boolean;
2196
2332
  isVoice(): this is VoiceChannel;
2333
+ isStage(): this is StageChannel;
2334
+ isVoiceBased(): this is VoiceChannel | StageChannel;
2197
2335
  isLink(): this is LinkChannel;
2198
2336
  bulkDelete(countOrIds: number | readonly string[]): Promise<string[]>;
2199
2337
  bulkDeleteMyMessages(options?: SudoVerificationOptions): Promise<void>;
@@ -2495,6 +2633,16 @@ interface ChannelMemberCountsUpdatePayload {
2495
2633
  onlineCount: number;
2496
2634
  }>;
2497
2635
  }
2636
+ /** Counts of a stage channel changed (`STAGE_COUNTS_UPDATE`). */
2637
+ interface StageCountsUpdatePayload {
2638
+ guildId: string;
2639
+ channelId: string;
2640
+ listenerCount: number;
2641
+ speakerCount: number;
2642
+ requestCount: number;
2643
+ /** Whether speakers can share video right now (null when not sent). */
2644
+ videoEnabled: boolean | null;
2645
+ }
2498
2646
  /** Role update with optional previous snapshot. */
2499
2647
  interface GuildRoleUpdatePayload {
2500
2648
  /** Role after the update (cached instance). */
@@ -3001,8 +3149,12 @@ declare abstract class Channel extends Base {
3001
3149
  isDM(): this is DMChannel;
3002
3150
  /** Check if this is a personal notes channel. */
3003
3151
  isPersonalNotes(): boolean;
3004
- /** Check if this is a voice channel. */
3152
+ /** Check if this is a voice channel (type 2 only; see {@link isVoiceBased} to include stages). */
3005
3153
  isVoice(): this is VoiceChannel;
3154
+ /** Check if this is a stage channel (type 13). */
3155
+ isStage(): this is StageChannel;
3156
+ /** Check if this is a voice or stage channel, i.e. one `@fluxerjs/voice` can join. */
3157
+ isVoiceBased(): this is VoiceChannel | StageChannel;
3006
3158
  /** Check if this is a link channel. */
3007
3159
  isLink(): this is LinkChannel;
3008
3160
  /**
@@ -3247,6 +3399,16 @@ interface ClientEvents {
3247
3399
  [Events.GuildHealthUpdate]: [data: GatewayGuildHealthUpdateDispatchData];
3248
3400
  [Events.OperatorPassUpdate]: [data: GatewayOperatorPassUpdateDispatchData];
3249
3401
  [Events.VoiceStatesSync]: [data: GatewayVoiceStatesSyncData];
3402
+ [Events.VoiceJoinQueued]: [data: GatewayVoiceJoinQueuedDispatchData];
3403
+ [Events.StageInstanceCreate]: [stageInstance: StageInstance];
3404
+ [Events.StageInstanceUpdate]: [
3405
+ oldStageInstance: StageInstance | null,
3406
+ newStageInstance: StageInstance
3407
+ ];
3408
+ [Events.StageInstanceDelete]: [stageInstance: StageInstance];
3409
+ [Events.StageCountsUpdate]: [payload: StageCountsUpdatePayload];
3410
+ [Events.StageVoiceStatesSync]: [data: GatewayStageVoiceStatesSyncDispatchData];
3411
+ [Events.StageAudienceListUpdate]: [data: GatewayStageAudienceListUpdateDispatchData];
3250
3412
  [Events.MessageDeleteBulk]: [payload: MessageDeleteBulkPayload];
3251
3413
  [Events.GuildBanAdd]: [ban: GuildBan];
3252
3414
  [Events.GuildBanRemove]: [ban: GuildBan];
@@ -3633,4 +3795,4 @@ declare class Client extends EventEmitter {
3633
3795
  static get Routes(): typeof Routes;
3634
3796
  }
3635
3797
 
3636
- export { GuildSticker as $, AnnouncementChannel as A, Base as B, CacheController as C, DEFAULT_CACHE_LIMITS as D, Events as E, type FetchMessagesOptions as F, type FetchedThreads as G, type FetchedUserWithProfile as H, ForumChannel as I, type ForumUnreadEntry as J, type ForumUnreadsPayload as K, Guild as L, GuildBan as M, GuildChannel as N, type GuildCountsUpdatePayload as O, GuildEmoji as P, type GuildEmojisUpdatePayload as Q, GuildManager as R, GuildMember as S, GuildMemberManager as T, GuildMemberRoleManager as U, type GuildMemberSearchHit as V, type GuildMemberSearchPayload as W, type GuildMembersChunkPayload as X, type GuildRoleDeletePayload as Y, GuildRoleManager as Z, type GuildRoleUpdatePayload as _, type AuditLogChange as a, type UploadFileForSend as a$, type GuildStickersUpdatePayload as a0, INSTANCE_DISCOVERY_PATH as a1, Invite as a2, type InviteChannelSnapshot as a3, type InviteDeletePayload as a4, type InviteGuildSnapshot as a5, LinkChannel as a6, MediaChannel as a7, Message as a8, type MessageAttachment as a9, type PermissionOverwriteEditOptions as aA, PermissionOverwriteManager as aB, type PinnedMessagesPage as aC, type PresenceActivity as aD, type PresenceUpdateBulkPayload as aE, type PresenceUpdatePayload as aF, ReactionCollector as aG, type ReactionCollectorEndReason as aH, type ReactionCollectorOptions as aI, type ReactionEmojiPayload as aJ, type ReplyOptions as aK, type ResolvedCacheLimits as aL, type ResolvedInstance as aM, Role as aN, type RoleResolvable as aO, type TextBasedChannel as aP, TextChannel as aQ, ThreadChannel as aR, type ThreadListSyncPayload as aS, ThreadManager as aT, ThreadMember as aU, type ThreadMemberListEntry as aV, type ThreadMemberListUpdatePayload as aW, ThreadMemberManager as aX, type ThreadMembersUpdatePayload as aY, type ThreadSearchPage as aZ, type TypingStartPayload as a_, type MessageCall as aa, MessageCollector as ab, type MessageCollectorEndReason as ac, type MessageCollectorOptions as ad, type MessageDeleteBulkPayload as ae, type MessageEditOptions as af, type MessageEmbed as ag, type MessageEmbedAuthor as ah, type MessageEmbedField as ai, type MessageEmbedFooter as aj, type MessageEmbedMedia as ak, MessageManager as al, MessageReaction as am, type MessageReactionAddManyEntry as an, type MessageReactionAddManyPayload as ao, MessageReactionManager as ap, type MessageReactionPayload as aq, type MessageReactionRemoveAllPayload as ar, type MessageReactionRemoveEmojiPayload as as, type MessageReference as at, type MessageSnapshot as au, MessageSticker as av, PartialGuildMember as aw, PartialMessage as ax, type PartialUserGuildPayload as ay, PermissionOverwrite as az, type AuditLogEntryPayload as b, User as b0, UserManager as b1, type VanityURLPayload as b2, VoiceChannel as b3, Webhook as b4, type WebhookEditOptions as b5, type WebhookMessageEditOptions as b6, type WebhookSendOptions as b7, type WebhooksUpdatePayload as b8, fetchActiveThreads as b9, instanceDiscoveryUrl as ba, inviteUrl as bb, normalizeApiOrigin as bc, normalizeCacheLimit as bd, parseInstanceDiscovery as be, resolveCacheLimits as bf, resolveInstanceEndpoints as bg, type AuditLogFetchPayload as c, type BulkFetchMessagesChannelResult as d, type BulkFetchMessagesOptions as e, type BulkFetchMessagesResult as f, type CacheSizeLimits as g, type CacheStats as h, CategoryChannel as i, Channel as j, ChannelManager as k, type ChannelMemberCountsUpdatePayload as l, type ChannelPinsUpdatePayload as m, type ChannelRecipientPayload as n, Client as o, type ClientEventListener as p, type ClientEventMethods as q, type ClientEventName as r, type ClientEvents as s, type ClientOptions as t, ClientUser as u, type CollectedReaction as v, DEFAULT_INSTANCE_ENDPOINTS as w, DMChannel as x, type DiscoveryOrigin as y, type FetchPinnedMessagesOptions as z };
3798
+ export { GuildSticker as $, AnnouncementChannel as A, Base as B, CacheController as C, DEFAULT_CACHE_LIMITS as D, Events as E, type FetchMessagesOptions as F, type FetchedThreads as G, type FetchedUserWithProfile as H, ForumChannel as I, type ForumUnreadEntry as J, type ForumUnreadsPayload as K, Guild as L, GuildBan as M, GuildChannel as N, type GuildCountsUpdatePayload as O, GuildEmoji as P, type GuildEmojisUpdatePayload as Q, GuildManager as R, GuildMember as S, GuildMemberManager as T, GuildMemberRoleManager as U, type GuildMemberSearchHit as V, type GuildMemberSearchPayload as W, type GuildMembersChunkPayload as X, type GuildRoleDeletePayload as Y, GuildRoleManager as Z, type GuildRoleUpdatePayload as _, type AuditLogChange as a, ThreadMember as a$, type GuildStickersUpdatePayload as a0, INSTANCE_DISCOVERY_PATH as a1, Invite as a2, type InviteChannelSnapshot as a3, type InviteDeletePayload as a4, type InviteGuildSnapshot as a5, LinkChannel as a6, MediaChannel as a7, Message as a8, type MessageAttachment as a9, type PermissionOverwriteEditOptions as aA, PermissionOverwriteManager as aB, type PinnedMessagesPage as aC, type PresenceActivity as aD, type PresenceUpdateBulkPayload as aE, type PresenceUpdatePayload as aF, ReactionCollector as aG, type ReactionCollectorEndReason as aH, type ReactionCollectorOptions as aI, type ReactionEmojiPayload as aJ, type ReplyOptions as aK, type ResolvedCacheLimits as aL, type ResolvedInstance as aM, Role as aN, type RoleResolvable as aO, StageChannel as aP, type StageCounts as aQ, type StageCountsUpdatePayload as aR, StageInstance as aS, type StageInstanceCreateOptions as aT, type StageInstanceDeleteOptions as aU, type StageInstanceEditOptions as aV, type TextBasedChannel as aW, TextChannel as aX, ThreadChannel as aY, type ThreadListSyncPayload as aZ, ThreadManager as a_, type MessageCall as aa, MessageCollector as ab, type MessageCollectorEndReason as ac, type MessageCollectorOptions as ad, type MessageDeleteBulkPayload as ae, type MessageEditOptions as af, type MessageEmbed as ag, type MessageEmbedAuthor as ah, type MessageEmbedField as ai, type MessageEmbedFooter as aj, type MessageEmbedMedia as ak, MessageManager as al, MessageReaction as am, type MessageReactionAddManyEntry as an, type MessageReactionAddManyPayload as ao, MessageReactionManager as ap, type MessageReactionPayload as aq, type MessageReactionRemoveAllPayload as ar, type MessageReactionRemoveEmojiPayload as as, type MessageReference as at, type MessageSnapshot as au, MessageSticker as av, PartialGuildMember as aw, PartialMessage as ax, type PartialUserGuildPayload as ay, PermissionOverwrite as az, type AuditLogEntryPayload as b, type ThreadMemberListEntry as b0, type ThreadMemberListUpdatePayload as b1, ThreadMemberManager as b2, type ThreadMembersUpdatePayload as b3, type ThreadSearchPage as b4, type TypingStartPayload as b5, type UploadFileForSend as b6, User as b7, UserManager as b8, type VanityURLPayload as b9, VoiceChannel as ba, Webhook as bb, type WebhookEditOptions as bc, type WebhookMessageEditOptions as bd, type WebhookSendOptions as be, type WebhooksUpdatePayload as bf, fetchActiveThreads as bg, instanceDiscoveryUrl as bh, inviteUrl as bi, normalizeApiOrigin as bj, normalizeCacheLimit as bk, parseInstanceDiscovery as bl, resolveCacheLimits as bm, resolveInstanceEndpoints as bn, type AuditLogFetchPayload as c, type BulkFetchMessagesChannelResult as d, type BulkFetchMessagesOptions as e, type BulkFetchMessagesResult as f, type CacheSizeLimits as g, type CacheStats as h, CategoryChannel as i, Channel as j, ChannelManager as k, type ChannelMemberCountsUpdatePayload as l, type ChannelPinsUpdatePayload as m, type ChannelRecipientPayload as n, Client as o, type ClientEventListener as p, type ClientEventMethods as q, type ClientEventName as r, type ClientEvents as s, type ClientOptions as t, ClientUser as u, type CollectedReaction as v, DEFAULT_INSTANCE_ENDPOINTS as w, DMChannel as x, type DiscoveryOrigin as y, type FetchPinnedMessagesOptions as z };
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
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';
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, b5 as TypingStartPayload, bf as WebhooksUpdatePayload } from './SubpathMessage-3ykAJr_F.mjs';
2
2
  import '@fluxerjs/types';
3
3
  import '@fluxerjs/collection';
4
4
  import '@fluxerjs/util';
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
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';
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, b5 as TypingStartPayload, bf as WebhooksUpdatePayload } from './SubpathMessage-nY2WQ8V1.js';
2
2
  import '@fluxerjs/types';
3
3
  import '@fluxerjs/collection';
4
4
  import '@fluxerjs/util';