@fluxerjs/core 3.1.0 → 3.2.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-Cj_U0V19.d.mts → SubpathMessage-DHo7ltTz.d.ts} +16 -5
- package/dist/{SubpathMessage-DaimQAd9.d.ts → SubpathMessage-DW9TgPNl.d.mts} +16 -5
- package/dist/{Sudo-fOKSPbxN.d.mts → Sudo-DwxTf-jj.d.mts} +6 -1
- package/dist/{Sudo-fOKSPbxN.d.ts → Sudo-DwxTf-jj.d.ts} +6 -1
- package/dist/client.d.mts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +12 -4
- package/dist/client.mjs +12 -4
- package/dist/cluster.d.mts +2 -2
- package/dist/cluster.d.ts +2 -2
- package/dist/cluster.js +12 -4
- package/dist/cluster.mjs +12 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -4
- package/dist/index.mjs +13 -4
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -0
- package/dist/internal.mjs +1 -0
- package/dist/message.d.mts +2 -2
- package/dist/message.d.ts +2 -2
- package/package.json +5 -5
|
@@ -7,7 +7,7 @@ import { EventEmitter } from 'node:events';
|
|
|
7
7
|
import { REST } from '@fluxerjs/rest';
|
|
8
8
|
import * as _fluxerjs_ws from '@fluxerjs/ws';
|
|
9
9
|
import { WebSocketManager } from '@fluxerjs/ws';
|
|
10
|
-
import { a as RoleEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, F as GuildChannelCreateOptions, R as RoleCreateOptions, E as DiscoveryStatusPayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, S as SudoVerificationOptions, P as PresenceUpdateOptions, O as ProfilePayload, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, Q as RtcRegionPayload, y as ChannelSlowmodePayload, x as ChannelInviteCreateOptions, C as ChannelEditOptions, G as GroupDmEditOptions, H as GuildMemberEditOptions, B as BulkFetchMessagesRequest, K as MessageSearchOptions, L as MessageSearchResponse } from './Sudo-
|
|
10
|
+
import { a as RoleEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, F as GuildChannelCreateOptions, R as RoleCreateOptions, E as DiscoveryStatusPayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, S as SudoVerificationOptions, P as PresenceUpdateOptions, O as ProfilePayload, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, Q as RtcRegionPayload, y as ChannelSlowmodePayload, x as ChannelInviteCreateOptions, C as ChannelEditOptions, G as GroupDmEditOptions, H as GuildMemberEditOptions, B as BulkFetchMessagesRequest, K as MessageSearchOptions, L as MessageSearchResponse } from './Sudo-DwxTf-jj.js';
|
|
11
11
|
import { EmbedBuilder, AttachmentBuilder, MessagePayload } from '@fluxerjs/builders';
|
|
12
12
|
|
|
13
13
|
type GuildData = Partial<APIGuild> & {
|
|
@@ -2439,6 +2439,7 @@ declare const TextChannel_base: (abstract new (...args: any[]) => {
|
|
|
2439
2439
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2440
2440
|
isGuild(): this is GuildChannel;
|
|
2441
2441
|
isText(): this is TextChannel;
|
|
2442
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2442
2443
|
isCategory(): this is CategoryChannel;
|
|
2443
2444
|
isDM(): this is DMChannel;
|
|
2444
2445
|
isPersonalNotes(): boolean;
|
|
@@ -2491,6 +2492,12 @@ declare class TextChannel extends TextChannel_base {
|
|
|
2491
2492
|
setSlowmode(seconds: number): Promise<this>;
|
|
2492
2493
|
protected applyEditPatch(data: APIChannel): void;
|
|
2493
2494
|
}
|
|
2495
|
+
/**
|
|
2496
|
+
* A guild announcement channel (type 5).
|
|
2497
|
+
* Same fields and slowmode as a text channel. Published messages are copied into channels that follow it.
|
|
2498
|
+
*/
|
|
2499
|
+
declare class AnnouncementChannel extends TextChannel {
|
|
2500
|
+
}
|
|
2494
2501
|
/** A category channel (container for organizing channels). */
|
|
2495
2502
|
declare class CategoryChannel extends GuildChannel {
|
|
2496
2503
|
}
|
|
@@ -2511,6 +2518,7 @@ declare const VoiceChannel_base: (abstract new (...args: any[]) => {
|
|
|
2511
2518
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2512
2519
|
isGuild(): this is GuildChannel;
|
|
2513
2520
|
isText(): this is TextChannel;
|
|
2521
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2514
2522
|
isCategory(): this is CategoryChannel;
|
|
2515
2523
|
isDM(): this is DMChannel;
|
|
2516
2524
|
isPersonalNotes(): boolean;
|
|
@@ -2598,6 +2606,7 @@ declare const DMChannel_base: (abstract new (...args: any[]) => {
|
|
|
2598
2606
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2599
2607
|
isGuild(): this is GuildChannel;
|
|
2600
2608
|
isText(): this is TextChannel;
|
|
2609
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2601
2610
|
isCategory(): this is CategoryChannel;
|
|
2602
2611
|
isDM(): this is DMChannel;
|
|
2603
2612
|
isPersonalNotes(): boolean;
|
|
@@ -2710,14 +2719,16 @@ declare abstract class Channel extends Base {
|
|
|
2710
2719
|
/** @internal Factory wired after subclasses load. */
|
|
2711
2720
|
static createDM(_c: Client, _d: APIChannelPartial): DMChannel;
|
|
2712
2721
|
/**
|
|
2713
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2722
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2714
2723
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2715
2724
|
*/
|
|
2716
2725
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2717
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2726
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2718
2727
|
isGuild(): this is GuildChannel;
|
|
2719
2728
|
/** Check if this is a guild text channel. */
|
|
2720
2729
|
isText(): this is TextChannel;
|
|
2730
|
+
/** Check if this is a guild announcement channel. */
|
|
2731
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2721
2732
|
/** Check if this is a category channel. */
|
|
2722
2733
|
isCategory(): this is CategoryChannel;
|
|
2723
2734
|
/** Check if this is a DM, group DM, or personal notes channel. */
|
|
@@ -2793,7 +2804,7 @@ declare abstract class Channel extends Base {
|
|
|
2793
2804
|
toString(): string;
|
|
2794
2805
|
}
|
|
2795
2806
|
|
|
2796
|
-
/** Channel types that can carry messages (guild text, guild voice, DMs). */
|
|
2807
|
+
/** Channel types that can carry messages (guild text, announcement, guild voice, DMs). */
|
|
2797
2808
|
type TextBasedChannel = TextChannel | VoiceChannel | DMChannel;
|
|
2798
2809
|
|
|
2799
2810
|
/** Member payload plus fields that exist on update/edit but not always on GET. */
|
|
@@ -3300,4 +3311,4 @@ declare class Client extends EventEmitter {
|
|
|
3300
3311
|
static get Routes(): typeof Routes;
|
|
3301
3312
|
}
|
|
3302
3313
|
|
|
3303
|
-
export {
|
|
3314
|
+
export { INSTANCE_DISCOVERY_PATH as $, AllowedMentions as A, Base as B, CacheController as C, DEFAULT_CACHE_LIMITS as D, type DiscoveryOrigin as E, Events as F, type FetchMessagesOptions as G, type FetchPinnedMessagesOptions as H, type FetchedUserWithProfile as I, Guild as J, GuildBan as K, GuildChannel as L, type GuildCountsUpdatePayload as M, GuildEmoji as N, type GuildEmojisUpdatePayload as O, GuildManager as P, GuildMember as Q, GuildMemberManager as R, GuildMemberRoleManager as S, type GuildMemberSearchHit as T, type GuildMemberSearchPayload as U, type GuildMembersChunkPayload as V, type GuildRoleDeletePayload as W, GuildRoleManager as X, type GuildRoleUpdatePayload as Y, GuildSticker as Z, type GuildStickersUpdatePayload as _, type AllowedMentionsOptions as a, type WebhooksUpdatePayload as a$, Invite as a0, type InviteChannelSnapshot as a1, type InviteDeletePayload as a2, type InviteGuildSnapshot as a3, LinkChannel as a4, Message as a5, type MessageAttachment as a6, type MessageCall as a7, MessageCollector as a8, type MessageCollectorEndReason 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, type TypingStartPayload as aR, type UploadFileForSend as aS, User as aT, UserManager as aU, type VanityURLPayload as aV, VoiceChannel as aW, Webhook as aX, type WebhookEditOptions as aY, type WebhookMessageEditOptions as aZ, type WebhookSendOptions as a_, type MessageCollectorOptions as aa, type MessageDeleteBulkPayload as ab, type MessageEditOptions as ac, type MessageEmbed as ad, type MessageEmbedAuthor as ae, type MessageEmbedField as af, type MessageEmbedFooter as ag, type MessageEmbedMedia as ah, MessageManager as ai, type MessagePrepareInput as aj, MessageReaction as ak, type MessageReactionAddManyEntry as al, type MessageReactionAddManyPayload as am, MessageReactionManager as an, type MessageReactionPayload as ao, type MessageReactionRemoveAllPayload as ap, type MessageReactionRemoveEmojiPayload as aq, type MessageReference as ar, type MessageReplyTarget as as, type MessageSendOptions as at, type MessageSnapshot as au, MessageSticker as av, PartialGuildMember as aw, PartialMessage as ax, type PartialUserGuildPayload as ay, PermissionOverwrite as az, AnnouncementChannel as b, instanceDiscoveryUrl as b0, inviteUrl as b1, normalizeApiOrigin as b2, normalizeCacheLimit as b3, parseInstanceDiscovery as b4, resolveCacheLimits as b5, resolveInstanceEndpoints as b6, type AuditLogChange as c, type AuditLogEntryPayload as d, type AuditLogFetchPayload as e, type BulkFetchMessagesChannelResult as f, type BulkFetchMessagesOptions as g, type BulkFetchMessagesResult as h, type CacheSizeLimits as i, type CacheStats as j, CategoryChannel as k, Channel as l, ChannelManager as m, type ChannelMemberCountsUpdatePayload as n, type ChannelPinsUpdatePayload as o, type ChannelRecipientPayload as p, Client as q, type ClientEventListener as r, type ClientEventMethods as s, type ClientEventName as t, type ClientEvents as u, type ClientOptions as v, ClientUser as w, type CollectedReaction as x, DEFAULT_INSTANCE_ENDPOINTS as y, DMChannel as z };
|
|
@@ -7,7 +7,7 @@ import { EventEmitter } from 'node:events';
|
|
|
7
7
|
import { REST } from '@fluxerjs/rest';
|
|
8
8
|
import * as _fluxerjs_ws from '@fluxerjs/ws';
|
|
9
9
|
import { WebSocketManager } from '@fluxerjs/ws';
|
|
10
|
-
import { a as RoleEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, F as GuildChannelCreateOptions, R as RoleCreateOptions, E as DiscoveryStatusPayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, S as SudoVerificationOptions, P as PresenceUpdateOptions, O as ProfilePayload, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, Q as RtcRegionPayload, y as ChannelSlowmodePayload, x as ChannelInviteCreateOptions, C as ChannelEditOptions, G as GroupDmEditOptions, H as GuildMemberEditOptions, B as BulkFetchMessagesRequest, K as MessageSearchOptions, L as MessageSearchResponse } from './Sudo-
|
|
10
|
+
import { a as RoleEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, F as GuildChannelCreateOptions, R as RoleCreateOptions, E as DiscoveryStatusPayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, S as SudoVerificationOptions, P as PresenceUpdateOptions, O as ProfilePayload, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, Q as RtcRegionPayload, y as ChannelSlowmodePayload, x as ChannelInviteCreateOptions, C as ChannelEditOptions, G as GroupDmEditOptions, H as GuildMemberEditOptions, B as BulkFetchMessagesRequest, K as MessageSearchOptions, L as MessageSearchResponse } from './Sudo-DwxTf-jj.mjs';
|
|
11
11
|
import { EmbedBuilder, AttachmentBuilder, MessagePayload } from '@fluxerjs/builders';
|
|
12
12
|
|
|
13
13
|
type GuildData = Partial<APIGuild> & {
|
|
@@ -2439,6 +2439,7 @@ declare const TextChannel_base: (abstract new (...args: any[]) => {
|
|
|
2439
2439
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2440
2440
|
isGuild(): this is GuildChannel;
|
|
2441
2441
|
isText(): this is TextChannel;
|
|
2442
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2442
2443
|
isCategory(): this is CategoryChannel;
|
|
2443
2444
|
isDM(): this is DMChannel;
|
|
2444
2445
|
isPersonalNotes(): boolean;
|
|
@@ -2491,6 +2492,12 @@ declare class TextChannel extends TextChannel_base {
|
|
|
2491
2492
|
setSlowmode(seconds: number): Promise<this>;
|
|
2492
2493
|
protected applyEditPatch(data: APIChannel): void;
|
|
2493
2494
|
}
|
|
2495
|
+
/**
|
|
2496
|
+
* A guild announcement channel (type 5).
|
|
2497
|
+
* Same fields and slowmode as a text channel. Published messages are copied into channels that follow it.
|
|
2498
|
+
*/
|
|
2499
|
+
declare class AnnouncementChannel extends TextChannel {
|
|
2500
|
+
}
|
|
2494
2501
|
/** A category channel (container for organizing channels). */
|
|
2495
2502
|
declare class CategoryChannel extends GuildChannel {
|
|
2496
2503
|
}
|
|
@@ -2511,6 +2518,7 @@ declare const VoiceChannel_base: (abstract new (...args: any[]) => {
|
|
|
2511
2518
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2512
2519
|
isGuild(): this is GuildChannel;
|
|
2513
2520
|
isText(): this is TextChannel;
|
|
2521
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2514
2522
|
isCategory(): this is CategoryChannel;
|
|
2515
2523
|
isDM(): this is DMChannel;
|
|
2516
2524
|
isPersonalNotes(): boolean;
|
|
@@ -2598,6 +2606,7 @@ declare const DMChannel_base: (abstract new (...args: any[]) => {
|
|
|
2598
2606
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2599
2607
|
isGuild(): this is GuildChannel;
|
|
2600
2608
|
isText(): this is TextChannel;
|
|
2609
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2601
2610
|
isCategory(): this is CategoryChannel;
|
|
2602
2611
|
isDM(): this is DMChannel;
|
|
2603
2612
|
isPersonalNotes(): boolean;
|
|
@@ -2710,14 +2719,16 @@ declare abstract class Channel extends Base {
|
|
|
2710
2719
|
/** @internal Factory wired after subclasses load. */
|
|
2711
2720
|
static createDM(_c: Client, _d: APIChannelPartial): DMChannel;
|
|
2712
2721
|
/**
|
|
2713
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2722
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2714
2723
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2715
2724
|
*/
|
|
2716
2725
|
isTextBased(): this is TextChannel | VoiceChannel | DMChannel;
|
|
2717
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2726
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2718
2727
|
isGuild(): this is GuildChannel;
|
|
2719
2728
|
/** Check if this is a guild text channel. */
|
|
2720
2729
|
isText(): this is TextChannel;
|
|
2730
|
+
/** Check if this is a guild announcement channel. */
|
|
2731
|
+
isAnnouncement(): this is AnnouncementChannel;
|
|
2721
2732
|
/** Check if this is a category channel. */
|
|
2722
2733
|
isCategory(): this is CategoryChannel;
|
|
2723
2734
|
/** Check if this is a DM, group DM, or personal notes channel. */
|
|
@@ -2793,7 +2804,7 @@ declare abstract class Channel extends Base {
|
|
|
2793
2804
|
toString(): string;
|
|
2794
2805
|
}
|
|
2795
2806
|
|
|
2796
|
-
/** Channel types that can carry messages (guild text, guild voice, DMs). */
|
|
2807
|
+
/** Channel types that can carry messages (guild text, announcement, guild voice, DMs). */
|
|
2797
2808
|
type TextBasedChannel = TextChannel | VoiceChannel | DMChannel;
|
|
2798
2809
|
|
|
2799
2810
|
/** Member payload plus fields that exist on update/edit but not always on GET. */
|
|
@@ -3300,4 +3311,4 @@ declare class Client extends EventEmitter {
|
|
|
3300
3311
|
static get Routes(): typeof Routes;
|
|
3301
3312
|
}
|
|
3302
3313
|
|
|
3303
|
-
export {
|
|
3314
|
+
export { INSTANCE_DISCOVERY_PATH as $, AllowedMentions as A, Base as B, CacheController as C, DEFAULT_CACHE_LIMITS as D, type DiscoveryOrigin as E, Events as F, type FetchMessagesOptions as G, type FetchPinnedMessagesOptions as H, type FetchedUserWithProfile as I, Guild as J, GuildBan as K, GuildChannel as L, type GuildCountsUpdatePayload as M, GuildEmoji as N, type GuildEmojisUpdatePayload as O, GuildManager as P, GuildMember as Q, GuildMemberManager as R, GuildMemberRoleManager as S, type GuildMemberSearchHit as T, type GuildMemberSearchPayload as U, type GuildMembersChunkPayload as V, type GuildRoleDeletePayload as W, GuildRoleManager as X, type GuildRoleUpdatePayload as Y, GuildSticker as Z, type GuildStickersUpdatePayload as _, type AllowedMentionsOptions as a, type WebhooksUpdatePayload as a$, Invite as a0, type InviteChannelSnapshot as a1, type InviteDeletePayload as a2, type InviteGuildSnapshot as a3, LinkChannel as a4, Message as a5, type MessageAttachment as a6, type MessageCall as a7, MessageCollector as a8, type MessageCollectorEndReason 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, type TypingStartPayload as aR, type UploadFileForSend as aS, User as aT, UserManager as aU, type VanityURLPayload as aV, VoiceChannel as aW, Webhook as aX, type WebhookEditOptions as aY, type WebhookMessageEditOptions as aZ, type WebhookSendOptions as a_, type MessageCollectorOptions as aa, type MessageDeleteBulkPayload as ab, type MessageEditOptions as ac, type MessageEmbed as ad, type MessageEmbedAuthor as ae, type MessageEmbedField as af, type MessageEmbedFooter as ag, type MessageEmbedMedia as ah, MessageManager as ai, type MessagePrepareInput as aj, MessageReaction as ak, type MessageReactionAddManyEntry as al, type MessageReactionAddManyPayload as am, MessageReactionManager as an, type MessageReactionPayload as ao, type MessageReactionRemoveAllPayload as ap, type MessageReactionRemoveEmojiPayload as aq, type MessageReference as ar, type MessageReplyTarget as as, type MessageSendOptions as at, type MessageSnapshot as au, MessageSticker as av, PartialGuildMember as aw, PartialMessage as ax, type PartialUserGuildPayload as ay, PermissionOverwrite as az, AnnouncementChannel as b, instanceDiscoveryUrl as b0, inviteUrl as b1, normalizeApiOrigin as b2, normalizeCacheLimit as b3, parseInstanceDiscovery as b4, resolveCacheLimits as b5, resolveInstanceEndpoints as b6, type AuditLogChange as c, type AuditLogEntryPayload as d, type AuditLogFetchPayload as e, type BulkFetchMessagesChannelResult as f, type BulkFetchMessagesOptions as g, type BulkFetchMessagesResult as h, type CacheSizeLimits as i, type CacheStats as j, CategoryChannel as k, Channel as l, ChannelManager as m, type ChannelMemberCountsUpdatePayload as n, type ChannelPinsUpdatePayload as o, type ChannelRecipientPayload as p, Client as q, type ClientEventListener as r, type ClientEventMethods as s, type ClientEventName as t, type ClientEvents as u, type ClientOptions as v, ClientUser as w, type CollectedReaction as x, DEFAULT_INSTANCE_ENDPOINTS as y, DMChannel as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChannelType, OverwriteType, APIMessage, APIChannel, APIMessageSearchResponse } from '@fluxerjs/types';
|
|
2
2
|
import { PermissionResolvable } from '@fluxerjs/util';
|
|
3
3
|
|
|
4
4
|
/** Attachment upload / message attachment SDK options. */
|
|
@@ -106,6 +106,11 @@ interface ChannelPermissionOverwriteOptions {
|
|
|
106
106
|
}
|
|
107
107
|
/** Options for {@link GuildChannel.edit}. */
|
|
108
108
|
interface ChannelEditOptions {
|
|
109
|
+
/**
|
|
110
|
+
* Convert between a guild text channel ({@link ChannelType.GuildText}) and an announcement
|
|
111
|
+
* channel ({@link ChannelType.GuildAnnouncement}). Any other conversion is rejected.
|
|
112
|
+
*/
|
|
113
|
+
type?: ChannelType.GuildText | ChannelType.GuildAnnouncement;
|
|
109
114
|
name?: string | null;
|
|
110
115
|
topic?: string | null;
|
|
111
116
|
url?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChannelType, OverwriteType, APIMessage, APIChannel, APIMessageSearchResponse } from '@fluxerjs/types';
|
|
2
2
|
import { PermissionResolvable } from '@fluxerjs/util';
|
|
3
3
|
|
|
4
4
|
/** Attachment upload / message attachment SDK options. */
|
|
@@ -106,6 +106,11 @@ interface ChannelPermissionOverwriteOptions {
|
|
|
106
106
|
}
|
|
107
107
|
/** Options for {@link GuildChannel.edit}. */
|
|
108
108
|
interface ChannelEditOptions {
|
|
109
|
+
/**
|
|
110
|
+
* Convert between a guild text channel ({@link ChannelType.GuildText}) and an announcement
|
|
111
|
+
* channel ({@link ChannelType.GuildAnnouncement}). Any other conversion is rejected.
|
|
112
|
+
*/
|
|
113
|
+
type?: ChannelType.GuildText | ChannelType.GuildAnnouncement;
|
|
109
114
|
name?: string | null;
|
|
110
115
|
topic?: string | null;
|
|
111
116
|
url?: string | null;
|
package/dist/client.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { c as AuditLogChange, d as AuditLogEntryPayload, i as CacheSizeLimits, n as ChannelMemberCountsUpdatePayload, o as ChannelPinsUpdatePayload, p as ChannelRecipientPayload, q as Client, r as ClientEventListener, s as ClientEventMethods, t as ClientEventName, u as ClientEvents, v as ClientOptions, F as Events, M as GuildCountsUpdatePayload, O as GuildEmojisUpdatePayload, V as GuildMembersChunkPayload, W as GuildRoleDeletePayload, Y as GuildRoleUpdatePayload, _ as GuildStickersUpdatePayload, a2 as InviteDeletePayload, ab as MessageDeleteBulkPayload, al as MessageReactionAddManyEntry, am as MessageReactionAddManyPayload, ao as MessageReactionPayload, ap as MessageReactionRemoveAllPayload, aq as MessageReactionRemoveEmojiPayload, aD as PresenceActivity, aE as PresenceUpdateBulkPayload, aF as PresenceUpdatePayload, aJ as ReactionEmojiPayload, aR as TypingStartPayload, a$ as WebhooksUpdatePayload } from './SubpathMessage-DW9TgPNl.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-DwxTf-jj.mjs';
|
|
9
9
|
import '@fluxerjs/builders';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { c as AuditLogChange, d as AuditLogEntryPayload, i as CacheSizeLimits, n as ChannelMemberCountsUpdatePayload, o as ChannelPinsUpdatePayload, p as ChannelRecipientPayload, q as Client, r as ClientEventListener, s as ClientEventMethods, t as ClientEventName, u as ClientEvents, v as ClientOptions, F as Events, M as GuildCountsUpdatePayload, O as GuildEmojisUpdatePayload, V as GuildMembersChunkPayload, W as GuildRoleDeletePayload, Y as GuildRoleUpdatePayload, _ as GuildStickersUpdatePayload, a2 as InviteDeletePayload, ab as MessageDeleteBulkPayload, al as MessageReactionAddManyEntry, am as MessageReactionAddManyPayload, ao as MessageReactionPayload, ap as MessageReactionRemoveAllPayload, aq as MessageReactionRemoveEmojiPayload, aD as PresenceActivity, aE as PresenceUpdateBulkPayload, aF as PresenceUpdatePayload, aJ as ReactionEmojiPayload, aR as TypingStartPayload, a$ as WebhooksUpdatePayload } from './SubpathMessage-DHo7ltTz.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-DwxTf-jj.js';
|
|
9
9
|
import '@fluxerjs/builders';
|
package/dist/client.js
CHANGED
|
@@ -113,6 +113,7 @@ function toOverwriteWire(overwrite) {
|
|
|
113
113
|
}
|
|
114
114
|
function toChannelEditBody(options) {
|
|
115
115
|
const body = {};
|
|
116
|
+
if (options.type !== void 0) body.type = options.type;
|
|
116
117
|
if (options.name !== void 0) body.name = options.name;
|
|
117
118
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
118
119
|
if (options.url !== void 0) body.url = options.url;
|
|
@@ -2114,20 +2115,24 @@ var Channel = class extends Base {
|
|
|
2114
2115
|
throw new Error("Channel.createDM not initialized");
|
|
2115
2116
|
}
|
|
2116
2117
|
/**
|
|
2117
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2118
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2118
2119
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2119
2120
|
*/
|
|
2120
2121
|
isTextBased() {
|
|
2121
|
-
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.DM || this.type === import_types8.ChannelType.GroupDM || this.type === import_types8.ChannelType.DMPersonalNotes;
|
|
2122
|
+
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildAnnouncement || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.DM || this.type === import_types8.ChannelType.GroupDM || this.type === import_types8.ChannelType.DMPersonalNotes;
|
|
2122
2123
|
}
|
|
2123
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2124
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2124
2125
|
isGuild() {
|
|
2125
|
-
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.GuildCategory || this.type === import_types8.ChannelType.GuildLink;
|
|
2126
|
+
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildAnnouncement || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.GuildCategory || this.type === import_types8.ChannelType.GuildLink;
|
|
2126
2127
|
}
|
|
2127
2128
|
/** Check if this is a guild text channel. */
|
|
2128
2129
|
isText() {
|
|
2129
2130
|
return this.type === import_types8.ChannelType.GuildText;
|
|
2130
2131
|
}
|
|
2132
|
+
/** Check if this is a guild announcement channel. */
|
|
2133
|
+
isAnnouncement() {
|
|
2134
|
+
return this.type === import_types8.ChannelType.GuildAnnouncement;
|
|
2135
|
+
}
|
|
2131
2136
|
/** Check if this is a category channel. */
|
|
2132
2137
|
isCategory() {
|
|
2133
2138
|
return this.type === import_types8.ChannelType.GuildCategory;
|
|
@@ -3167,6 +3172,8 @@ var TextChannel = class extends TextCapable(GuildChannel) {
|
|
|
3167
3172
|
}
|
|
3168
3173
|
}
|
|
3169
3174
|
};
|
|
3175
|
+
var AnnouncementChannel = class extends TextChannel {
|
|
3176
|
+
};
|
|
3170
3177
|
var CategoryChannel = class extends GuildChannel {
|
|
3171
3178
|
};
|
|
3172
3179
|
var VoiceChannel = class extends TextCapable(GuildChannel) {
|
|
@@ -3249,6 +3256,7 @@ var LinkChannel = class extends GuildChannel {
|
|
|
3249
3256
|
var import_types15 = require("@fluxerjs/types");
|
|
3250
3257
|
var GUILD_FACTORIES = {
|
|
3251
3258
|
[import_types15.ChannelType.GuildText]: (c, d) => new TextChannel(c, d),
|
|
3259
|
+
[import_types15.ChannelType.GuildAnnouncement]: (c, d) => new AnnouncementChannel(c, d),
|
|
3252
3260
|
[import_types15.ChannelType.GuildCategory]: (c, d) => new CategoryChannel(c, d),
|
|
3253
3261
|
[import_types15.ChannelType.GuildVoice]: (c, d) => new VoiceChannel(c, d),
|
|
3254
3262
|
[import_types15.ChannelType.GuildLink]: (c, d) => new LinkChannel(c, d)
|
package/dist/client.mjs
CHANGED
|
@@ -89,6 +89,7 @@ function toOverwriteWire(overwrite) {
|
|
|
89
89
|
}
|
|
90
90
|
function toChannelEditBody(options) {
|
|
91
91
|
const body = {};
|
|
92
|
+
if (options.type !== void 0) body.type = options.type;
|
|
92
93
|
if (options.name !== void 0) body.name = options.name;
|
|
93
94
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
94
95
|
if (options.url !== void 0) body.url = options.url;
|
|
@@ -2090,20 +2091,24 @@ var Channel = class extends Base {
|
|
|
2090
2091
|
throw new Error("Channel.createDM not initialized");
|
|
2091
2092
|
}
|
|
2092
2093
|
/**
|
|
2093
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2094
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2094
2095
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2095
2096
|
*/
|
|
2096
2097
|
isTextBased() {
|
|
2097
|
-
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildVoice || this.type === ChannelType.DM || this.type === ChannelType.GroupDM || this.type === ChannelType.DMPersonalNotes;
|
|
2098
|
+
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildAnnouncement || this.type === ChannelType.GuildVoice || this.type === ChannelType.DM || this.type === ChannelType.GroupDM || this.type === ChannelType.DMPersonalNotes;
|
|
2098
2099
|
}
|
|
2099
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2100
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2100
2101
|
isGuild() {
|
|
2101
|
-
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildVoice || this.type === ChannelType.GuildCategory || this.type === ChannelType.GuildLink;
|
|
2102
|
+
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildAnnouncement || this.type === ChannelType.GuildVoice || this.type === ChannelType.GuildCategory || this.type === ChannelType.GuildLink;
|
|
2102
2103
|
}
|
|
2103
2104
|
/** Check if this is a guild text channel. */
|
|
2104
2105
|
isText() {
|
|
2105
2106
|
return this.type === ChannelType.GuildText;
|
|
2106
2107
|
}
|
|
2108
|
+
/** Check if this is a guild announcement channel. */
|
|
2109
|
+
isAnnouncement() {
|
|
2110
|
+
return this.type === ChannelType.GuildAnnouncement;
|
|
2111
|
+
}
|
|
2107
2112
|
/** Check if this is a category channel. */
|
|
2108
2113
|
isCategory() {
|
|
2109
2114
|
return this.type === ChannelType.GuildCategory;
|
|
@@ -3150,6 +3155,8 @@ var TextChannel = class extends TextCapable(GuildChannel) {
|
|
|
3150
3155
|
}
|
|
3151
3156
|
}
|
|
3152
3157
|
};
|
|
3158
|
+
var AnnouncementChannel = class extends TextChannel {
|
|
3159
|
+
};
|
|
3153
3160
|
var CategoryChannel = class extends GuildChannel {
|
|
3154
3161
|
};
|
|
3155
3162
|
var VoiceChannel = class extends TextCapable(GuildChannel) {
|
|
@@ -3232,6 +3239,7 @@ var LinkChannel = class extends GuildChannel {
|
|
|
3232
3239
|
import { ChannelType as ChannelType3 } from "@fluxerjs/types";
|
|
3233
3240
|
var GUILD_FACTORIES = {
|
|
3234
3241
|
[ChannelType3.GuildText]: (c, d) => new TextChannel(c, d),
|
|
3242
|
+
[ChannelType3.GuildAnnouncement]: (c, d) => new AnnouncementChannel(c, d),
|
|
3235
3243
|
[ChannelType3.GuildCategory]: (c, d) => new CategoryChannel(c, d),
|
|
3236
3244
|
[ChannelType3.GuildVoice]: (c, d) => new VoiceChannel(c, d),
|
|
3237
3245
|
[ChannelType3.GuildLink]: (c, d) => new LinkChannel(c, d)
|
package/dist/cluster.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import {
|
|
2
|
+
import { E as DiscoveryOrigin, v as ClientOptions, q as Client } from './SubpathMessage-DW9TgPNl.mjs';
|
|
3
3
|
import '@fluxerjs/types';
|
|
4
4
|
import '@fluxerjs/collection';
|
|
5
5
|
import '@fluxerjs/util';
|
|
6
6
|
import '@fluxerjs/rest';
|
|
7
7
|
import '@fluxerjs/ws';
|
|
8
|
-
import './Sudo-
|
|
8
|
+
import './Sudo-DwxTf-jj.mjs';
|
|
9
9
|
import '@fluxerjs/builders';
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/cluster.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import {
|
|
2
|
+
import { E as DiscoveryOrigin, v as ClientOptions, q as Client } from './SubpathMessage-DHo7ltTz.js';
|
|
3
3
|
import '@fluxerjs/types';
|
|
4
4
|
import '@fluxerjs/collection';
|
|
5
5
|
import '@fluxerjs/util';
|
|
6
6
|
import '@fluxerjs/rest';
|
|
7
7
|
import '@fluxerjs/ws';
|
|
8
|
-
import './Sudo-
|
|
8
|
+
import './Sudo-DwxTf-jj.js';
|
|
9
9
|
import '@fluxerjs/builders';
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/cluster.js
CHANGED
|
@@ -186,6 +186,7 @@ function toOverwriteWire(overwrite) {
|
|
|
186
186
|
}
|
|
187
187
|
function toChannelEditBody(options) {
|
|
188
188
|
const body = {};
|
|
189
|
+
if (options.type !== void 0) body.type = options.type;
|
|
189
190
|
if (options.name !== void 0) body.name = options.name;
|
|
190
191
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
191
192
|
if (options.url !== void 0) body.url = options.url;
|
|
@@ -2119,20 +2120,24 @@ var Channel = class extends Base {
|
|
|
2119
2120
|
throw new Error("Channel.createDM not initialized");
|
|
2120
2121
|
}
|
|
2121
2122
|
/**
|
|
2122
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2123
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2123
2124
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2124
2125
|
*/
|
|
2125
2126
|
isTextBased() {
|
|
2126
|
-
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.DM || this.type === import_types8.ChannelType.GroupDM || this.type === import_types8.ChannelType.DMPersonalNotes;
|
|
2127
|
+
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildAnnouncement || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.DM || this.type === import_types8.ChannelType.GroupDM || this.type === import_types8.ChannelType.DMPersonalNotes;
|
|
2127
2128
|
}
|
|
2128
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2129
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2129
2130
|
isGuild() {
|
|
2130
|
-
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.GuildCategory || this.type === import_types8.ChannelType.GuildLink;
|
|
2131
|
+
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildAnnouncement || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.GuildCategory || this.type === import_types8.ChannelType.GuildLink;
|
|
2131
2132
|
}
|
|
2132
2133
|
/** Check if this is a guild text channel. */
|
|
2133
2134
|
isText() {
|
|
2134
2135
|
return this.type === import_types8.ChannelType.GuildText;
|
|
2135
2136
|
}
|
|
2137
|
+
/** Check if this is a guild announcement channel. */
|
|
2138
|
+
isAnnouncement() {
|
|
2139
|
+
return this.type === import_types8.ChannelType.GuildAnnouncement;
|
|
2140
|
+
}
|
|
2136
2141
|
/** Check if this is a category channel. */
|
|
2137
2142
|
isCategory() {
|
|
2138
2143
|
return this.type === import_types8.ChannelType.GuildCategory;
|
|
@@ -3172,6 +3177,8 @@ var TextChannel = class extends TextCapable(GuildChannel) {
|
|
|
3172
3177
|
}
|
|
3173
3178
|
}
|
|
3174
3179
|
};
|
|
3180
|
+
var AnnouncementChannel = class extends TextChannel {
|
|
3181
|
+
};
|
|
3175
3182
|
var CategoryChannel = class extends GuildChannel {
|
|
3176
3183
|
};
|
|
3177
3184
|
var VoiceChannel = class extends TextCapable(GuildChannel) {
|
|
@@ -3254,6 +3261,7 @@ var LinkChannel = class extends GuildChannel {
|
|
|
3254
3261
|
var import_types15 = require("@fluxerjs/types");
|
|
3255
3262
|
var GUILD_FACTORIES = {
|
|
3256
3263
|
[import_types15.ChannelType.GuildText]: (c, d) => new TextChannel(c, d),
|
|
3264
|
+
[import_types15.ChannelType.GuildAnnouncement]: (c, d) => new AnnouncementChannel(c, d),
|
|
3257
3265
|
[import_types15.ChannelType.GuildCategory]: (c, d) => new CategoryChannel(c, d),
|
|
3258
3266
|
[import_types15.ChannelType.GuildVoice]: (c, d) => new VoiceChannel(c, d),
|
|
3259
3267
|
[import_types15.ChannelType.GuildLink]: (c, d) => new LinkChannel(c, d)
|
package/dist/cluster.mjs
CHANGED
|
@@ -160,6 +160,7 @@ function toOverwriteWire(overwrite) {
|
|
|
160
160
|
}
|
|
161
161
|
function toChannelEditBody(options) {
|
|
162
162
|
const body = {};
|
|
163
|
+
if (options.type !== void 0) body.type = options.type;
|
|
163
164
|
if (options.name !== void 0) body.name = options.name;
|
|
164
165
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
165
166
|
if (options.url !== void 0) body.url = options.url;
|
|
@@ -2093,20 +2094,24 @@ var Channel = class extends Base {
|
|
|
2093
2094
|
throw new Error("Channel.createDM not initialized");
|
|
2094
2095
|
}
|
|
2095
2096
|
/**
|
|
2096
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2097
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2097
2098
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2098
2099
|
*/
|
|
2099
2100
|
isTextBased() {
|
|
2100
|
-
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildVoice || this.type === ChannelType.DM || this.type === ChannelType.GroupDM || this.type === ChannelType.DMPersonalNotes;
|
|
2101
|
+
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildAnnouncement || this.type === ChannelType.GuildVoice || this.type === ChannelType.DM || this.type === ChannelType.GroupDM || this.type === ChannelType.DMPersonalNotes;
|
|
2101
2102
|
}
|
|
2102
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2103
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2103
2104
|
isGuild() {
|
|
2104
|
-
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildVoice || this.type === ChannelType.GuildCategory || this.type === ChannelType.GuildLink;
|
|
2105
|
+
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildAnnouncement || this.type === ChannelType.GuildVoice || this.type === ChannelType.GuildCategory || this.type === ChannelType.GuildLink;
|
|
2105
2106
|
}
|
|
2106
2107
|
/** Check if this is a guild text channel. */
|
|
2107
2108
|
isText() {
|
|
2108
2109
|
return this.type === ChannelType.GuildText;
|
|
2109
2110
|
}
|
|
2111
|
+
/** Check if this is a guild announcement channel. */
|
|
2112
|
+
isAnnouncement() {
|
|
2113
|
+
return this.type === ChannelType.GuildAnnouncement;
|
|
2114
|
+
}
|
|
2110
2115
|
/** Check if this is a category channel. */
|
|
2111
2116
|
isCategory() {
|
|
2112
2117
|
return this.type === ChannelType.GuildCategory;
|
|
@@ -3153,6 +3158,8 @@ var TextChannel = class extends TextCapable(GuildChannel) {
|
|
|
3153
3158
|
}
|
|
3154
3159
|
}
|
|
3155
3160
|
};
|
|
3161
|
+
var AnnouncementChannel = class extends TextChannel {
|
|
3162
|
+
};
|
|
3156
3163
|
var CategoryChannel = class extends GuildChannel {
|
|
3157
3164
|
};
|
|
3158
3165
|
var VoiceChannel = class extends TextCapable(GuildChannel) {
|
|
@@ -3235,6 +3242,7 @@ var LinkChannel = class extends GuildChannel {
|
|
|
3235
3242
|
import { ChannelType as ChannelType3 } from "@fluxerjs/types";
|
|
3236
3243
|
var GUILD_FACTORIES = {
|
|
3237
3244
|
[ChannelType3.GuildText]: (c, d) => new TextChannel(c, d),
|
|
3245
|
+
[ChannelType3.GuildAnnouncement]: (c, d) => new AnnouncementChannel(c, d),
|
|
3238
3246
|
[ChannelType3.GuildCategory]: (c, d) => new CategoryChannel(c, d),
|
|
3239
3247
|
[ChannelType3.GuildVoice]: (c, d) => new VoiceChannel(c, d),
|
|
3240
3248
|
[ChannelType3.GuildLink]: (c, d) => new LinkChannel(c, d)
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { AttachmentBuilder, AttachmentMeta, EmbedBuilder, MessagePayload } from '@fluxerjs/builders';
|
|
2
2
|
export { APIAllowedMentions, APIBulkMessageFetchRequest, APIBulkMessageFetchResponse, APIBulkMessageFetchResponseChannel, APIGuildMemberSearchResponse, APIInstance, APIInstanceEndpoints, APIWellKnownFluxer, AllowedMentionType, AuditLogActionType, ChannelType, ContentWarningLevel, GatewayOpcodes, GuildMemberProfileFlags, GuildNSFWLevel, GuildOperations, InviteType, MessageAttachmentFlags, MessageFlags, MessageReferenceType, MessageType, OverwriteType, PublicUserFlags, RelationshipType, Routes, SplashCardAlignment, SystemChannelFlags } from '@fluxerjs/types';
|
|
3
3
|
export { ErrorCodes, FluxerError, FluxerErrorOptions, LogFields, LogLevel, Logger, LoggerOptions, MessageFlagsBitField, MessageFlagsBits, MessageFlagsResolvable, MessageFlagsString, PermissionFlags, PermissionResolvable, PermissionString, PermissionsBitField, UserFlagsBitField, UserFlagsBits, UserFlagsResolvable, UserFlagsString, createLogger, parsePrefixCommand, parseUserMention, resolveKlipyToImageUrl, resolvePermissionsToBitfield, serializeError } from '@fluxerjs/util';
|
|
4
|
-
export { A as AllowedMentions, a as AllowedMentionsOptions, b as
|
|
4
|
+
export { A as AllowedMentions, a as AllowedMentionsOptions, b as AnnouncementChannel, c as AuditLogChange, d as AuditLogEntryPayload, e as AuditLogFetchPayload, B as Base, f as BulkFetchMessagesChannelResult, g as BulkFetchMessagesOptions, h as BulkFetchMessagesResult, C as CacheController, i as CacheSizeLimits, j as CacheStats, k as CategoryChannel, l as Channel, m as ChannelManager, n as ChannelMemberCountsUpdatePayload, o as ChannelPinsUpdatePayload, p as ChannelRecipientPayload, q as Client, r as ClientEventListener, s as ClientEventMethods, t as ClientEventName, u as ClientEvents, v as ClientOptions, w as ClientUser, x as CollectedReaction, D as DEFAULT_CACHE_LIMITS, y as DEFAULT_INSTANCE_ENDPOINTS, z as DMChannel, E as DiscoveryOrigin, F as Events, G as FetchMessagesOptions, H as FetchPinnedMessagesOptions, I as FetchedUserWithProfile, J as Guild, K as GuildBan, L as GuildChannel, M as GuildCountsUpdatePayload, N as GuildEmoji, O as GuildEmojisUpdatePayload, P as GuildManager, Q as GuildMember, R as GuildMemberManager, S as GuildMemberRoleManager, T as GuildMemberSearchHit, U as GuildMemberSearchPayload, V as GuildMembersChunkPayload, W as GuildRoleDeletePayload, X as GuildRoleManager, Y as GuildRoleUpdatePayload, Z as GuildSticker, _ as GuildStickersUpdatePayload, $ as INSTANCE_DISCOVERY_PATH, a0 as Invite, a1 as InviteChannelSnapshot, a2 as InviteDeletePayload, a3 as InviteGuildSnapshot, a4 as LinkChannel, a5 as Message, a6 as MessageAttachment, a7 as MessageCall, a8 as MessageCollector, a9 as MessageCollectorEndReason, aa as MessageCollectorOptions, ab as MessageDeleteBulkPayload, ac as MessageEditOptions, ad as MessageEmbed, ae as MessageEmbedAuthor, af as MessageEmbedField, ag as MessageEmbedFooter, ah as MessageEmbedMedia, ai as MessageManager, aj as MessagePrepareInput, ak as MessageReaction, al as MessageReactionAddManyEntry, am as MessageReactionAddManyPayload, an as MessageReactionManager, ao as MessageReactionPayload, ap as MessageReactionRemoveAllPayload, aq as MessageReactionRemoveEmojiPayload, ar as MessageReference, as as MessageReplyTarget, at as MessageSendOptions, au as MessageSnapshot, av as MessageSticker, aw as PartialGuildMember, ax as PartialMessage, ay as PartialUserGuildPayload, az as PermissionOverwrite, aA as PermissionOverwriteEditOptions, aB as PermissionOverwriteManager, aC as PinnedMessagesPage, aD as PresenceActivity, aE as PresenceUpdateBulkPayload, aF as PresenceUpdatePayload, aG as ReactionCollector, aH as ReactionCollectorEndReason, aI as ReactionCollectorOptions, aJ as ReactionEmojiPayload, aK as ReplyOptions, aL as ResolvedCacheLimits, aM as ResolvedInstance, aN as Role, aO as RoleResolvable, aP as TextBasedChannel, aQ as TextChannel, aR as TypingStartPayload, aS as UploadFileForSend, aT as User, aU as UserManager, aV as VanityURLPayload, aW as VoiceChannel, aX as Webhook, aY as WebhookEditOptions, aZ as WebhookMessageEditOptions, a_ as WebhookSendOptions, a$ as WebhooksUpdatePayload, b0 as instanceDiscoveryUrl, b1 as inviteUrl, b2 as normalizeApiOrigin, b3 as normalizeCacheLimit, b4 as parseInstanceDiscovery, b5 as resolveCacheLimits, b6 as resolveInstanceEndpoints } from './SubpathMessage-DW9TgPNl.mjs';
|
|
5
5
|
export { AddClientRuntimeOptions, BETA_CLIENT_CLUSTER_WARNING, ClientCluster, ClientClusterEventListener, ClientClusterEventMap, ClientClusterEventName, ClientClusterEvents, ClientClusterOptions, ClientRuntime, ClientRuntimeStatus, RestartClientRuntimeOptions } from './cluster.mjs';
|
|
6
|
-
export { A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, B as BulkFetchMessagesRequest, C as ChannelEditOptions, x as ChannelInviteCreateOptions, y as ChannelSlowmodePayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, E as DiscoveryStatusPayload, G as GroupDmEditOptions, F as GuildChannelCreateOptions, H as GuildMemberEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, J as MessageSearchIndexing, K as MessageSearchOptions, L as MessageSearchResponse, N as MessageSearchResults, P as PresenceUpdateOptions, O as ProfilePayload, R as RoleCreateOptions, a as RoleEditOptions, Q as RtcRegionPayload, S as SudoVerificationOptions } from './Sudo-
|
|
6
|
+
export { A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, B as BulkFetchMessagesRequest, C as ChannelEditOptions, x as ChannelInviteCreateOptions, y as ChannelSlowmodePayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, E as DiscoveryStatusPayload, G as GroupDmEditOptions, F as GuildChannelCreateOptions, H as GuildMemberEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, J as MessageSearchIndexing, K as MessageSearchOptions, L as MessageSearchResponse, N as MessageSearchResults, P as PresenceUpdateOptions, O as ProfilePayload, R as RoleCreateOptions, a as RoleEditOptions, Q as RtcRegionPayload, S as SudoVerificationOptions } from './Sudo-DwxTf-jj.mjs';
|
|
7
7
|
export { E as ExpressionCreateOptions, d as ExpressionEditOptions, S as StickerCreateOptions, e as StickerEditOptions } from './Expressions-Bdgo72qI.mjs';
|
|
8
8
|
import '@fluxerjs/collection';
|
|
9
9
|
import 'node:events';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { AttachmentBuilder, AttachmentMeta, EmbedBuilder, MessagePayload } from '@fluxerjs/builders';
|
|
2
2
|
export { APIAllowedMentions, APIBulkMessageFetchRequest, APIBulkMessageFetchResponse, APIBulkMessageFetchResponseChannel, APIGuildMemberSearchResponse, APIInstance, APIInstanceEndpoints, APIWellKnownFluxer, AllowedMentionType, AuditLogActionType, ChannelType, ContentWarningLevel, GatewayOpcodes, GuildMemberProfileFlags, GuildNSFWLevel, GuildOperations, InviteType, MessageAttachmentFlags, MessageFlags, MessageReferenceType, MessageType, OverwriteType, PublicUserFlags, RelationshipType, Routes, SplashCardAlignment, SystemChannelFlags } from '@fluxerjs/types';
|
|
3
3
|
export { ErrorCodes, FluxerError, FluxerErrorOptions, LogFields, LogLevel, Logger, LoggerOptions, MessageFlagsBitField, MessageFlagsBits, MessageFlagsResolvable, MessageFlagsString, PermissionFlags, PermissionResolvable, PermissionString, PermissionsBitField, UserFlagsBitField, UserFlagsBits, UserFlagsResolvable, UserFlagsString, createLogger, parsePrefixCommand, parseUserMention, resolveKlipyToImageUrl, resolvePermissionsToBitfield, serializeError } from '@fluxerjs/util';
|
|
4
|
-
export { A as AllowedMentions, a as AllowedMentionsOptions, b as
|
|
4
|
+
export { A as AllowedMentions, a as AllowedMentionsOptions, b as AnnouncementChannel, c as AuditLogChange, d as AuditLogEntryPayload, e as AuditLogFetchPayload, B as Base, f as BulkFetchMessagesChannelResult, g as BulkFetchMessagesOptions, h as BulkFetchMessagesResult, C as CacheController, i as CacheSizeLimits, j as CacheStats, k as CategoryChannel, l as Channel, m as ChannelManager, n as ChannelMemberCountsUpdatePayload, o as ChannelPinsUpdatePayload, p as ChannelRecipientPayload, q as Client, r as ClientEventListener, s as ClientEventMethods, t as ClientEventName, u as ClientEvents, v as ClientOptions, w as ClientUser, x as CollectedReaction, D as DEFAULT_CACHE_LIMITS, y as DEFAULT_INSTANCE_ENDPOINTS, z as DMChannel, E as DiscoveryOrigin, F as Events, G as FetchMessagesOptions, H as FetchPinnedMessagesOptions, I as FetchedUserWithProfile, J as Guild, K as GuildBan, L as GuildChannel, M as GuildCountsUpdatePayload, N as GuildEmoji, O as GuildEmojisUpdatePayload, P as GuildManager, Q as GuildMember, R as GuildMemberManager, S as GuildMemberRoleManager, T as GuildMemberSearchHit, U as GuildMemberSearchPayload, V as GuildMembersChunkPayload, W as GuildRoleDeletePayload, X as GuildRoleManager, Y as GuildRoleUpdatePayload, Z as GuildSticker, _ as GuildStickersUpdatePayload, $ as INSTANCE_DISCOVERY_PATH, a0 as Invite, a1 as InviteChannelSnapshot, a2 as InviteDeletePayload, a3 as InviteGuildSnapshot, a4 as LinkChannel, a5 as Message, a6 as MessageAttachment, a7 as MessageCall, a8 as MessageCollector, a9 as MessageCollectorEndReason, aa as MessageCollectorOptions, ab as MessageDeleteBulkPayload, ac as MessageEditOptions, ad as MessageEmbed, ae as MessageEmbedAuthor, af as MessageEmbedField, ag as MessageEmbedFooter, ah as MessageEmbedMedia, ai as MessageManager, aj as MessagePrepareInput, ak as MessageReaction, al as MessageReactionAddManyEntry, am as MessageReactionAddManyPayload, an as MessageReactionManager, ao as MessageReactionPayload, ap as MessageReactionRemoveAllPayload, aq as MessageReactionRemoveEmojiPayload, ar as MessageReference, as as MessageReplyTarget, at as MessageSendOptions, au as MessageSnapshot, av as MessageSticker, aw as PartialGuildMember, ax as PartialMessage, ay as PartialUserGuildPayload, az as PermissionOverwrite, aA as PermissionOverwriteEditOptions, aB as PermissionOverwriteManager, aC as PinnedMessagesPage, aD as PresenceActivity, aE as PresenceUpdateBulkPayload, aF as PresenceUpdatePayload, aG as ReactionCollector, aH as ReactionCollectorEndReason, aI as ReactionCollectorOptions, aJ as ReactionEmojiPayload, aK as ReplyOptions, aL as ResolvedCacheLimits, aM as ResolvedInstance, aN as Role, aO as RoleResolvable, aP as TextBasedChannel, aQ as TextChannel, aR as TypingStartPayload, aS as UploadFileForSend, aT as User, aU as UserManager, aV as VanityURLPayload, aW as VoiceChannel, aX as Webhook, aY as WebhookEditOptions, aZ as WebhookMessageEditOptions, a_ as WebhookSendOptions, a$ as WebhooksUpdatePayload, b0 as instanceDiscoveryUrl, b1 as inviteUrl, b2 as normalizeApiOrigin, b3 as normalizeCacheLimit, b4 as parseInstanceDiscovery, b5 as resolveCacheLimits, b6 as resolveInstanceEndpoints } from './SubpathMessage-DHo7ltTz.js';
|
|
5
5
|
export { AddClientRuntimeOptions, BETA_CLIENT_CLUSTER_WARNING, ClientCluster, ClientClusterEventListener, ClientClusterEventMap, ClientClusterEventName, ClientClusterEvents, ClientClusterOptions, ClientRuntime, ClientRuntimeStatus, RestartClientRuntimeOptions } from './cluster.js';
|
|
6
|
-
export { A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, B as BulkFetchMessagesRequest, C as ChannelEditOptions, x as ChannelInviteCreateOptions, y as ChannelSlowmodePayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, E as DiscoveryStatusPayload, G as GroupDmEditOptions, F as GuildChannelCreateOptions, H as GuildMemberEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, J as MessageSearchIndexing, K as MessageSearchOptions, L as MessageSearchResponse, N as MessageSearchResults, P as PresenceUpdateOptions, O as ProfilePayload, R as RoleCreateOptions, a as RoleEditOptions, Q as RtcRegionPayload, S as SudoVerificationOptions } from './Sudo-
|
|
6
|
+
export { A as AttachmentUploadCompleteItem, u as AttachmentUploadCompleteResponse, v as AttachmentUploadPlanItem, w as AttachmentUploadPlanResponse, B as BulkFetchMessagesRequest, C as ChannelEditOptions, x as ChannelInviteCreateOptions, y as ChannelSlowmodePayload, D as DiscoveryApplicationOptions, z as DiscoveryApplicationPayload, E as DiscoveryStatusPayload, G as GroupDmEditOptions, F as GuildChannelCreateOptions, H as GuildMemberEditOptions, I as GuildMemberSearchOptions, M as MessageAttachmentEdit, J as MessageSearchIndexing, K as MessageSearchOptions, L as MessageSearchResponse, N as MessageSearchResults, P as PresenceUpdateOptions, O as ProfilePayload, R as RoleCreateOptions, a as RoleEditOptions, Q as RtcRegionPayload, S as SudoVerificationOptions } from './Sudo-DwxTf-jj.js';
|
|
7
7
|
export { E as ExpressionCreateOptions, d as ExpressionEditOptions, S as StickerCreateOptions, e as StickerEditOptions } from './Expressions-Bdgo72qI.js';
|
|
8
8
|
import '@fluxerjs/collection';
|
|
9
9
|
import 'node:events';
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
AllowedMentions: () => AllowedMentions,
|
|
24
|
+
AnnouncementChannel: () => AnnouncementChannel,
|
|
24
25
|
AttachmentBuilder: () => import_builders5.AttachmentBuilder,
|
|
25
26
|
AttachmentMeta: () => import_builders5.AttachmentMeta,
|
|
26
27
|
AuditLogActionType: () => import_types40.AuditLogActionType,
|
|
@@ -358,6 +359,7 @@ function toOverwriteWire(overwrite) {
|
|
|
358
359
|
}
|
|
359
360
|
function toChannelEditBody(options) {
|
|
360
361
|
const body = {};
|
|
362
|
+
if (options.type !== void 0) body.type = options.type;
|
|
361
363
|
if (options.name !== void 0) body.name = options.name;
|
|
362
364
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
363
365
|
if (options.url !== void 0) body.url = options.url;
|
|
@@ -2359,20 +2361,24 @@ var Channel = class extends Base {
|
|
|
2359
2361
|
throw new Error("Channel.createDM not initialized");
|
|
2360
2362
|
}
|
|
2361
2363
|
/**
|
|
2362
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2364
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2363
2365
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2364
2366
|
*/
|
|
2365
2367
|
isTextBased() {
|
|
2366
|
-
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.DM || this.type === import_types8.ChannelType.GroupDM || this.type === import_types8.ChannelType.DMPersonalNotes;
|
|
2368
|
+
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildAnnouncement || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.DM || this.type === import_types8.ChannelType.GroupDM || this.type === import_types8.ChannelType.DMPersonalNotes;
|
|
2367
2369
|
}
|
|
2368
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2370
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2369
2371
|
isGuild() {
|
|
2370
|
-
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.GuildCategory || this.type === import_types8.ChannelType.GuildLink;
|
|
2372
|
+
return this.type === import_types8.ChannelType.GuildText || this.type === import_types8.ChannelType.GuildAnnouncement || this.type === import_types8.ChannelType.GuildVoice || this.type === import_types8.ChannelType.GuildCategory || this.type === import_types8.ChannelType.GuildLink;
|
|
2371
2373
|
}
|
|
2372
2374
|
/** Check if this is a guild text channel. */
|
|
2373
2375
|
isText() {
|
|
2374
2376
|
return this.type === import_types8.ChannelType.GuildText;
|
|
2375
2377
|
}
|
|
2378
|
+
/** Check if this is a guild announcement channel. */
|
|
2379
|
+
isAnnouncement() {
|
|
2380
|
+
return this.type === import_types8.ChannelType.GuildAnnouncement;
|
|
2381
|
+
}
|
|
2376
2382
|
/** Check if this is a category channel. */
|
|
2377
2383
|
isCategory() {
|
|
2378
2384
|
return this.type === import_types8.ChannelType.GuildCategory;
|
|
@@ -3412,6 +3418,8 @@ var TextChannel = class extends TextCapable(GuildChannel) {
|
|
|
3412
3418
|
}
|
|
3413
3419
|
}
|
|
3414
3420
|
};
|
|
3421
|
+
var AnnouncementChannel = class extends TextChannel {
|
|
3422
|
+
};
|
|
3415
3423
|
var CategoryChannel = class extends GuildChannel {
|
|
3416
3424
|
};
|
|
3417
3425
|
var VoiceChannel = class extends TextCapable(GuildChannel) {
|
|
@@ -3494,6 +3502,7 @@ var LinkChannel = class extends GuildChannel {
|
|
|
3494
3502
|
var import_types15 = require("@fluxerjs/types");
|
|
3495
3503
|
var GUILD_FACTORIES = {
|
|
3496
3504
|
[import_types15.ChannelType.GuildText]: (c, d) => new TextChannel(c, d),
|
|
3505
|
+
[import_types15.ChannelType.GuildAnnouncement]: (c, d) => new AnnouncementChannel(c, d),
|
|
3497
3506
|
[import_types15.ChannelType.GuildCategory]: (c, d) => new CategoryChannel(c, d),
|
|
3498
3507
|
[import_types15.ChannelType.GuildVoice]: (c, d) => new VoiceChannel(c, d),
|
|
3499
3508
|
[import_types15.ChannelType.GuildLink]: (c, d) => new LinkChannel(c, d)
|
|
@@ -7692,6 +7701,7 @@ var ClientCluster = class extends import_node_events4.EventEmitter {
|
|
|
7692
7701
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7693
7702
|
0 && (module.exports = {
|
|
7694
7703
|
AllowedMentions,
|
|
7704
|
+
AnnouncementChannel,
|
|
7695
7705
|
AttachmentBuilder,
|
|
7696
7706
|
AttachmentMeta,
|
|
7697
7707
|
AuditLogActionType,
|
package/dist/index.mjs
CHANGED
|
@@ -276,6 +276,7 @@ function toOverwriteWire(overwrite) {
|
|
|
276
276
|
}
|
|
277
277
|
function toChannelEditBody(options) {
|
|
278
278
|
const body = {};
|
|
279
|
+
if (options.type !== void 0) body.type = options.type;
|
|
279
280
|
if (options.name !== void 0) body.name = options.name;
|
|
280
281
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
281
282
|
if (options.url !== void 0) body.url = options.url;
|
|
@@ -2277,20 +2278,24 @@ var Channel = class extends Base {
|
|
|
2277
2278
|
throw new Error("Channel.createDM not initialized");
|
|
2278
2279
|
}
|
|
2279
2280
|
/**
|
|
2280
|
-
* Whether this channel type can carry messages (text, voice, DM, group DM, notes).
|
|
2281
|
+
* Whether this channel type can carry messages (text, announcement, voice, DM, group DM, notes).
|
|
2281
2282
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
2282
2283
|
*/
|
|
2283
2284
|
isTextBased() {
|
|
2284
|
-
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildVoice || this.type === ChannelType.DM || this.type === ChannelType.GroupDM || this.type === ChannelType.DMPersonalNotes;
|
|
2285
|
+
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildAnnouncement || this.type === ChannelType.GuildVoice || this.type === ChannelType.DM || this.type === ChannelType.GroupDM || this.type === ChannelType.DMPersonalNotes;
|
|
2285
2286
|
}
|
|
2286
|
-
/** Check if this is a guild channel (text, voice, category, or link). */
|
|
2287
|
+
/** Check if this is a guild channel (text, announcement, voice, category, or link). */
|
|
2287
2288
|
isGuild() {
|
|
2288
|
-
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildVoice || this.type === ChannelType.GuildCategory || this.type === ChannelType.GuildLink;
|
|
2289
|
+
return this.type === ChannelType.GuildText || this.type === ChannelType.GuildAnnouncement || this.type === ChannelType.GuildVoice || this.type === ChannelType.GuildCategory || this.type === ChannelType.GuildLink;
|
|
2289
2290
|
}
|
|
2290
2291
|
/** Check if this is a guild text channel. */
|
|
2291
2292
|
isText() {
|
|
2292
2293
|
return this.type === ChannelType.GuildText;
|
|
2293
2294
|
}
|
|
2295
|
+
/** Check if this is a guild announcement channel. */
|
|
2296
|
+
isAnnouncement() {
|
|
2297
|
+
return this.type === ChannelType.GuildAnnouncement;
|
|
2298
|
+
}
|
|
2294
2299
|
/** Check if this is a category channel. */
|
|
2295
2300
|
isCategory() {
|
|
2296
2301
|
return this.type === ChannelType.GuildCategory;
|
|
@@ -3337,6 +3342,8 @@ var TextChannel = class extends TextCapable(GuildChannel) {
|
|
|
3337
3342
|
}
|
|
3338
3343
|
}
|
|
3339
3344
|
};
|
|
3345
|
+
var AnnouncementChannel = class extends TextChannel {
|
|
3346
|
+
};
|
|
3340
3347
|
var CategoryChannel = class extends GuildChannel {
|
|
3341
3348
|
};
|
|
3342
3349
|
var VoiceChannel = class extends TextCapable(GuildChannel) {
|
|
@@ -3419,6 +3426,7 @@ var LinkChannel = class extends GuildChannel {
|
|
|
3419
3426
|
import { ChannelType as ChannelType3 } from "@fluxerjs/types";
|
|
3420
3427
|
var GUILD_FACTORIES = {
|
|
3421
3428
|
[ChannelType3.GuildText]: (c, d) => new TextChannel(c, d),
|
|
3429
|
+
[ChannelType3.GuildAnnouncement]: (c, d) => new AnnouncementChannel(c, d),
|
|
3422
3430
|
[ChannelType3.GuildCategory]: (c, d) => new CategoryChannel(c, d),
|
|
3423
3431
|
[ChannelType3.GuildVoice]: (c, d) => new VoiceChannel(c, d),
|
|
3424
3432
|
[ChannelType3.GuildLink]: (c, d) => new LinkChannel(c, d)
|
|
@@ -7626,6 +7634,7 @@ var ClientCluster = class extends EventEmitter4 {
|
|
|
7626
7634
|
};
|
|
7627
7635
|
export {
|
|
7628
7636
|
AllowedMentions,
|
|
7637
|
+
AnnouncementChannel,
|
|
7629
7638
|
AttachmentBuilder2 as AttachmentBuilder,
|
|
7630
7639
|
AttachmentMeta,
|
|
7631
7640
|
AuditLogActionType,
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RoleCreateOptions, a as RoleEditOptions } from './Sudo-
|
|
2
|
-
export { t as toAttachmentUploadCompleteBody, b as toAttachmentUploadPlanBody, c as toAttachmentUploadPlanResponse, d as toBulkFetchWire, e as toChannelCreateBody, f as toChannelEditBody, g as toChannelInviteBody, h as toDiscoveryApplicationPayload, i as toDiscoveryBody, j as toDiscoveryStatusPayload, k as toGroupDmEditBody, l as toMemberEditBody, m as toMemberSearchBody, n as toMessageAttachmentEditWire, o as toMessageSearchBody, p as toMessageSearchResponse, q as toPresenceWire, r as toProfilePayload, s as toSudoBody } from './Sudo-
|
|
1
|
+
import { R as RoleCreateOptions, a as RoleEditOptions } from './Sudo-DwxTf-jj.mjs';
|
|
2
|
+
export { t as toAttachmentUploadCompleteBody, b as toAttachmentUploadPlanBody, c as toAttachmentUploadPlanResponse, d as toBulkFetchWire, e as toChannelCreateBody, f as toChannelEditBody, g as toChannelInviteBody, h as toDiscoveryApplicationPayload, i as toDiscoveryBody, j as toDiscoveryStatusPayload, k as toGroupDmEditBody, l as toMemberEditBody, m as toMemberSearchBody, n as toMessageAttachmentEditWire, o as toMessageSearchBody, p as toMessageSearchResponse, q as toPresenceWire, r as toProfilePayload, s as toSudoBody } from './Sudo-DwxTf-jj.mjs';
|
|
3
3
|
export { t as toEmojiCreateBody, a as toEmojiEditBody, b as toStickerCreateBody, c as toStickerEditBody } from './Expressions-Bdgo72qI.mjs';
|
|
4
4
|
import '@fluxerjs/types';
|
|
5
5
|
import '@fluxerjs/util';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RoleCreateOptions, a as RoleEditOptions } from './Sudo-
|
|
2
|
-
export { t as toAttachmentUploadCompleteBody, b as toAttachmentUploadPlanBody, c as toAttachmentUploadPlanResponse, d as toBulkFetchWire, e as toChannelCreateBody, f as toChannelEditBody, g as toChannelInviteBody, h as toDiscoveryApplicationPayload, i as toDiscoveryBody, j as toDiscoveryStatusPayload, k as toGroupDmEditBody, l as toMemberEditBody, m as toMemberSearchBody, n as toMessageAttachmentEditWire, o as toMessageSearchBody, p as toMessageSearchResponse, q as toPresenceWire, r as toProfilePayload, s as toSudoBody } from './Sudo-
|
|
1
|
+
import { R as RoleCreateOptions, a as RoleEditOptions } from './Sudo-DwxTf-jj.js';
|
|
2
|
+
export { t as toAttachmentUploadCompleteBody, b as toAttachmentUploadPlanBody, c as toAttachmentUploadPlanResponse, d as toBulkFetchWire, e as toChannelCreateBody, f as toChannelEditBody, g as toChannelInviteBody, h as toDiscoveryApplicationPayload, i as toDiscoveryBody, j as toDiscoveryStatusPayload, k as toGroupDmEditBody, l as toMemberEditBody, m as toMemberSearchBody, n as toMessageAttachmentEditWire, o as toMessageSearchBody, p as toMessageSearchResponse, q as toPresenceWire, r as toProfilePayload, s as toSudoBody } from './Sudo-DwxTf-jj.js';
|
|
3
3
|
export { t as toEmojiCreateBody, a as toEmojiEditBody, b as toStickerCreateBody, c as toStickerEditBody } from './Expressions-Bdgo72qI.js';
|
|
4
4
|
import '@fluxerjs/types';
|
|
5
5
|
import '@fluxerjs/util';
|
package/dist/internal.js
CHANGED
|
@@ -124,6 +124,7 @@ function toOverwriteWire(overwrite) {
|
|
|
124
124
|
}
|
|
125
125
|
function toChannelEditBody(options) {
|
|
126
126
|
const body = {};
|
|
127
|
+
if (options.type !== void 0) body.type = options.type;
|
|
127
128
|
if (options.name !== void 0) body.name = options.name;
|
|
128
129
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
129
130
|
if (options.url !== void 0) body.url = options.url;
|
package/dist/internal.mjs
CHANGED
|
@@ -74,6 +74,7 @@ function toOverwriteWire(overwrite) {
|
|
|
74
74
|
}
|
|
75
75
|
function toChannelEditBody(options) {
|
|
76
76
|
const body = {};
|
|
77
|
+
if (options.type !== void 0) body.type = options.type;
|
|
77
78
|
if (options.name !== void 0) body.name = options.name;
|
|
78
79
|
if (options.topic !== void 0) body.topic = options.topic;
|
|
79
80
|
if (options.url !== void 0) body.url = options.url;
|
package/dist/message.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a5 as Message, a6 as MessageAttachment, ac as MessageEditOptions, ad as MessageEmbed, ae as MessageEmbedAuthor, af as MessageEmbedField, ag as MessageEmbedFooter, ah as MessageEmbedMedia, ar as MessageReference, at as MessageSendOptions, ax as PartialMessage, aK as ReplyOptions } from './SubpathMessage-DW9TgPNl.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-DwxTf-jj.mjs';
|
|
9
9
|
import '@fluxerjs/builders';
|
package/dist/message.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a5 as Message, a6 as MessageAttachment, ac as MessageEditOptions, ad as MessageEmbed, ae as MessageEmbedAuthor, af as MessageEmbedField, ag as MessageEmbedFooter, ah as MessageEmbedMedia, ar as MessageReference, at as MessageSendOptions, ax as PartialMessage, aK as ReplyOptions } from './SubpathMessage-DHo7ltTz.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-DwxTf-jj.js';
|
|
9
9
|
import '@fluxerjs/builders';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.2.0",
|
|
7
7
|
"description": "A fully-featured SDK for Fluxer bots",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"dist"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@fluxerjs/builders": "3.0.0",
|
|
63
62
|
"@fluxerjs/rest": "3.1.0",
|
|
64
|
-
"@fluxerjs/
|
|
63
|
+
"@fluxerjs/ws": "3.1.0",
|
|
64
|
+
"@fluxerjs/builders": "3.0.0",
|
|
65
65
|
"@fluxerjs/util": "3.1.0",
|
|
66
|
-
"@fluxerjs/types": "3.
|
|
67
|
-
"@fluxerjs/
|
|
66
|
+
"@fluxerjs/types": "3.2.0",
|
|
67
|
+
"@fluxerjs/collection": "3.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "^20.0.0",
|