# Fluxerly.js reference, condensed > Fluxerly.js is a Fluxer-native bot SDK for JavaScript, TypeScript and Effect. Requires Node.js 26.13 or newer, ESM and TypeScript 7 Voice: Gateway signaling works today through `client.voice` (`join`, `leave`, `updateState`) with typed `voiceServerUpdate`, `voiceSignal`, `voiceStateUpdate` and `gatewayError` events, alongside member voice controls and voice notes. Built-in audio and video transport is planned for Fluxer's upcoming native voice engine so bots avoid lock-in to a temporary media layer, and bots needing live media today can pass `voiceServerUpdate` credentials directly to their own media client These files describe SDK version 1004.0.0 ## JavaScript & TypeScript Import from `@neontechspace/fluxerly` ### Builders and Formatting #### variable AssetFormats Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#assetformats Choose the image format for an asset URL - `Apng: "apng"`: Animated PNG image, can preserve animation - `Gif: "gif"`: GIF image, can preserve animation - `Jpeg: "jpeg"`: Static JPEG image, use animated false for an animated source - `Png: "png"`: Static PNG image, use animated false for an animated source - `Webp: "webp"`: WebP image, supports static images and animation #### variable TimestampStyles Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#timestampstyles Choose how Fluxer displays a timestamp in a message - `LongDate: "D"`: Written-out date - `LongDateTime: "F"`: Written-out date and time - `LongTime: "T"`: Time including seconds - `RelativeTime: "R"`: Time relative to the viewer's current time, such as "a few minutes ago" - `ShortDate: "d"`: Compact date - `ShortDateMediumTime: "S"`: Compact date and time including seconds - `ShortDateShortTime: "s"`: Compact date and short time - `ShortDateTime: "f"`: Date and time, the default used by `format.timestamp` - `ShortTime: "t"`: Time without seconds #### variable assets Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#assets Build hosted Fluxer URLs for avatars, banners, community images, emoji and stickers - `AssetHelpers` #### variable builders Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#builders Start optional chainable builders for embed and message objects - `embed: () => EmbedBuilder`: Return a new empty EmbedBuilder - `message: () => MessageBuilder`: Return a new empty MessageBuilder #### variable colors Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#colors Convert supported RGB numbers, six-digit hex strings and RGB tuples into colors - `ColorHelpers` #### variable display Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#display Choose a display name from supplied user or member data - `DisplayHelpers` #### variable format Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#format Create Fluxer markup for mentions, timestamps, custom emoji and Markdown escaping - `FormatHelpers` #### variable links Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#links Build links to Fluxer channels, direct messages, messages and bot installation pages - `LinkHelpers` #### variable snowflakes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#snowflakes Read and convert Fluxer's IDs, called snowflakes, without losing integer precision - `SnowflakeHelpers` #### variable text Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#text Split a string into frozen pieces without dropping its text, or truncate it to a length with a marker - `TextHelpers` #### class EmbedBuilder Page: https://fluxerly.neontechspace.com/docs/api/js-ts/embedbuilder/ Assemble an embed by chaining methods, then pass the builder or `build()`'s plain object in a message operation's embeds - `constructor(): EmbedBuilder` - `addFields(...values: readonly EmbedFieldInput[]): this`: Add field objects after existing fields in argument order and return this builder - `author(value: EmbedAuthorInput | EmbedAuthor): this`: Replace the author label and optional links, copy the supplied object while omitting server-only fields, then return this builder - `build(): EmbedInput`: Return a fresh plain input snapshot for `messages.send`, `messages.reply` or `messages.edit` - `clone(): EmbedBuilder`: Return an independent deep copy of this builder, including copied author, footer, media and field objects - `color(value: ColorInput): this`: Replace the color and return this builder - `description(value: string): this`: Replace the body text and return this builder - `field(name: string, value: string, options?: EmbedFieldOptions): this`: Add a named section after existing fields and return this builder - `footer(value: string | EmbedFooterInput | EmbedFooter): this`: Replace the footer text and optional icon, then return this builder - `image(value: string | EmbedMediaInput | EmbedMedia): this`: Replace the full-size image URL and optional alternative text, then return this builder - `thumbnail(value: string | EmbedMediaInput | EmbedMedia): this`: Replace the small image URL and optional alternative text, then return this builder - `timestamp(value: string | number | Date): this`: Replace the embed's timestamp and return this builder - `title(value: string): this`: Replace the title text and return this builder - `url(value: string): this`: Replace the destination opened from the title and return this builder - `static from(embed: EmbedInput | EmbedBuilder | Embed | EmbedChild): EmbedBuilder`: Create a new mutable EmbedBuilder by deep-copying an existing EmbedInput object, received Embed, EmbedChild or EmbedBuilder #### class MessageBuilder Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messagebuilder/ Assemble a message by chaining methods, then pass the builder directly to send or reply operations or send the plain object returned by `build()` - `constructor(..._empty: [HasBody] extends [false] ? [false] extends [HasBody] ? [] : [never] : [never]): MessageBuilder`: Start with no content or settings - `build: [HasBody] extends [true] ? [true] extends [HasBody] ? () => MessageInput : MissingMessageBody : MissingMessageBody`: Return a fresh plain `MessageInput` after selecting content, an embed, an attachment or a sticker - `addAttachments(...values: [first: AttachmentInput, ...rest: AttachmentInput[]]): MessageBuilder`: Add one or more attachments in argument order and return this builder, now buildable in TypeScript - `addAttachments(...values: readonly AttachmentInput[]): MessageBuilder`: Add zero or more attachments from a dynamic array in argument order and return this builder, keeping its current buildable state - `addEmbeds(...values: [first: EmbedInput | EmbedBuilder, ...rest: (EmbedInput | EmbedBuilder)[]]): MessageBuilder`: Add one or more embeds in argument order and return this builder, now buildable in TypeScript, copying each just as `embed` does - `addEmbeds(...values: readonly (EmbedInput | EmbedBuilder)[]): MessageBuilder`: Add zero or more embeds from a dynamic array in argument order and return this builder, keeping its current buildable state and copying each just as `embed` does - `addStickers(...values: [first: string, ...rest: string[]]): MessageBuilder`: Add one or more decimal sticker IDs in argument order and return this builder, now buildable in TypeScript - `addStickers(...values: readonly string[]): MessageBuilder`: Add zero or more decimal sticker IDs from a dynamic array in argument order and return this builder, keeping its current buildable state - `allowedMentions(value: AllowedMentions): this`: Replace who may be notified by mention text, copy user/role arrays, and preserve other values for message-operation validation - `attachment(value: AttachmentInput): MessageBuilder`: Add one attachment, copying its metadata while keeping the original bytes, file or stream source - `content(value: string): MessageBuilder`: Replace the message text and return this builder, now buildable in TypeScript - `embed(value: EmbedInput | EmbedBuilder): MessageBuilder`: Add one embed and return this builder, now buildable in TypeScript - `flags(value: number): this`: Replace the numeric message flags and return this builder, without validating the value - `nonce(value: MessageNonce): this`: Replace the correlation nonce and return this builder, without validating the value - `reference(value: MessageReference): this`: Choose the message to reply to when using `messages.send`, copy its reference, then return this builder - `sticker(value: string): MessageBuilder`: Add a decimal sticker ID after existing stickers and return this builder - `suppressEmbeds(value?: boolean): this`: Set or clear MessageFlags.SuppressEmbeds on this builder's flags and return this builder - `suppressNotifications(value?: boolean): this`: Set or clear MessageFlags.SuppressNotifications on this builder's flags and return this builder - `tts(value?: boolean): this`: Request text-to-speech delivery and return this builder #### interface AssetUrlOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#asseturloptions Choose the format, size and animation to request in an asset URL - `animated?: boolean`: Request animation or a still image - `format?: AssetFormat`: Requested output encoding - `size?: number`: Requested image size in pixels, an integer from 0 through 4_294_967_295 #### interface ChannelLinkTarget Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#channellinktarget The channel information needed to make a web link: Its `id` and, for a community channel, its `guildId` - `guildId?: string`: Decimal community ID for a community channel - `id: string`: Decimal channel ID #### interface CustomEmojiMarkup Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#customemojimarkup Custom-emoji fields used by Fluxer's explicit `` or `` markup - `animated?: boolean`: Selects `` rather than `` - `id: string`: Decimal Fluxer emoji ID - `name: string`: ASCII letters, digits, underscores, or hyphens as accepted by Fluxer's message parser #### interface EmbedFieldOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#embedfieldoptions Display settings for one field added with EmbedBuilder.field - `inline?: boolean`: Request side-by-side display with neighboring inline fields #### interface InstallationLinkOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#installationlinkoptions Optional raw permission bitfield requested by a hosted bot-installation page - `permissions?: bigint`: Unsigned 64-bit Fluxer permission bitfield #### interface StickerAssetUrlOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#stickerasseturloptions Choose sticker size and animation - `animated?: boolean`: Override the sticker's animated metadata - `size?: number`: Requested size in pixels, an integer from 0 through 4_294_967_295 #### interface TextSplitOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#textsplitoptions Choose the largest piece `text.split` may return - `maxLength: number`: Maximum `string.length` of each piece, a positive safe integer with no default #### interface TextTruncateOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#texttruncateoptions Choose where `text.truncate` cuts and what it appends - `maxLength: number`: Maximum `string.length` of the result including the suffix, a positive safe integer with no default - `suffix?: string`: Text appended after a cut, a well-formed string of at most maxLength units #### interface TimestampMarkup Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#timestampmarkup One parsed timestamp markup value - `date: Date`: UTC instant represented by the markup - `style: TimestampStyle`: Explicit style, or Fluxer's default short-date-time style when omitted in the markup #### type AssetFormat Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#assetformat One image encoding the hosted Fluxer media proxy can produce - `typeof AssetFormats[keyof typeof AssetFormats]` #### type AssetHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#assethelpers Methods of the assets helper, which builds image URLs for avatars, banners, community images, emoji and stickers - `avatar(user: Pick, options?: AssetUrlOptions): string | null`: Build the user's custom-avatar URL, or null when the avatar field is null - `defaultAvatar(userId: string): string`: Build Fluxer's static default-avatar URL from a canonical user ID - `displayAvatar(user: Pick, options?: AssetUrlOptions): string`: Build a URL suitable for displaying a user avatar, using the custom avatar or a static default when avatar is null - `displayMemberAvatar(user: Pick, member: Pick, options?: AssetUrlOptions): string | undefined`: Choose an avatar to display for a user in a community - `emoji(emoji: Pick, options?: AssetUrlOptions): string`: Build a custom-emoji image URL from only its ID and animated metadata, without looking up the emoji - `guildBanner(guild: Pick, options?: AssetUrlOptions): string | null | undefined`: Build a community banner URL from the community's id and banner - `guildEmbedSplash(guild: Pick, options?: AssetUrlOptions): string | null | undefined`: Build the background image URL for an embedded community invite, using id and embedSplash - `guildIcon(guild: Pick, options?: AssetUrlOptions): string | null | undefined`: Build a community icon URL from the community's id and icon - `guildSplash(guild: Pick, options?: AssetUrlOptions): string | null | undefined`: Build the community's invite-background image URL from id and splash - `memberAvatar(member: Pick, options?: AssetUrlOptions): string | null | undefined`: Build the member's community avatar URL using only guildId, userId and avatar - `memberBanner(member: Pick, options?: AssetUrlOptions): string | null | undefined`: Build the member's community banner URL using only guildId, userId and banner - `roleIcon(role: Pick, options?: AssetUrlOptions): string | null | undefined`: Build a role icon URL from the role's id and icon - `sticker(sticker: Pick, options?: StickerAssetUrlOptions): string`: Build a custom-sticker URL from only its ID and `animated` metadata - `userBanner(profile: Readonly<{ profile: Pick; user: Pick }>, options?: AssetUrlOptions): string | null`: Build an account-banner URL from a users.fetchProfile result, using only user.id and profile.banner #### type ColorHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#colorhelpers Methods of the colors helper, which converts RGB numbers, hex strings and tuples - `parse(value: ColorInput): number`: Convert a six-digit hexadecimal string, an RGB array of three integer channels from 0 through 255, or a color number to the integer used by embeds and roles - `toHex(value: number): string`: Turn a color integer into a lowercase six-digit string such as `"#000001"`, including leading zeroes - `toRgb(value: number): RgbColor`: Split a color integer into a new frozen `[red, green, blue]` array, each from 0 through 255 - `tryParse(value: ColorInput): Result`: Convert a color with the same rules as parse, but report invalid input without throwing #### type ColorInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#colorinput A color accepted by `colors.parse`: A number from 0 through 0xffffff, six hexadecimal digits such as `"#ff8800"`, or `[255, 136, 0]` - `number | string | RgbColor` #### type DisplayHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#displayhelpers Methods of the display helper, which chooses a display name from supplied user or member data - `name(user: Pick & { readonly displayName?: string | null }, member?: Pick): string`: Return the member's nickname, otherwise the user's displayName, otherwise username #### type FormatHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#formathelpers Methods of the format helper, which creates and reads mention, timestamp and custom-emoji markup and escapes Markdown - `channelMention(id: string): string`: Create `` text linking to a channel, such as ``, and return it directly - `customEmoji(input: CustomEmojiMarkup): string`: Create `` text, or `` when animated is true - `escapeMarkdown(value: string): string`: Add backslashes so text is treated literally by Fluxer's markup parser, for example escaping `**bold**` - `parseCustomEmoji(value: string): CustomEmojiMarkup`: Read exactly one `` or `` string into frozen name, ID and animated fields - `parseMention(value: string): Mention`: Read a string containing exactly one user, role or channel mention into a frozen `{ kind, id }` object - `parseTimestamp(value: string): TimestampMarkup`: Read exactly one `` or `` string into a frozen object with a new Date and style - `roleMention(id: string): string`: Create `` text for a decimal role ID, such as ``, and return it directly - `timestamp(value: Date, style?: TimestampStyle): string`: Create `` message text from a Date, which Fluxer displays in the reader's local time - `tryParseCustomEmoji(value: string): Result`: Read custom-emoji markup with the same rules as parseCustomEmoji, but report invalid text without throwing - `tryParseMention(value: string): Result`: Read a mention with the same rules as parseMention, but report invalid text without throwing - `tryParseTimestamp(value: string): Result`: Read timestamp markup with the same rules as parseTimestamp, but report invalid text without throwing - `userMention(id: string): string`: Create `` text for a decimal user ID, such as ``, and return it directly #### type LinkHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#linkhelpers Methods of the links helper, which builds Fluxer channel, message and installation URLs - `channel(target: ChannelLinkTarget): string`: Build a hosted community-channel or direct-message URL from `{ id, guildId }` for a community channel or `{ id }` for a private conversation - `installation(applicationId: string, options?: InstallationLinkOptions): string`: Build a URL for Fluxer's bot-installation flow from an application ID, with the fixed `bot` scope and optional unsigned 64-bit permissions - `message(message: MessageReference, channel: ChannelLinkTarget): string`: Build a hosted message URL in the supplied actual community-channel or direct-message context #### type Mention Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#mention The result of `format.parseMention` - `{ readonly id: string; readonly kind: "user" } | { readonly id: string; readonly kind: "role" } | { readonly id: string; readonly kind: "channel" }` #### type MissingMessageBody Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#missingmessagebody The type of MessageBuilder.build before a body is selected - `(selectContentEmbedAttachmentOrStickerBeforeBuild: never) => never` #### type RgbColor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#rgbcolor A three-item array of red, green and blue amounts, in that order - `readonly [red: number, green: number, blue: number]` #### type SnowflakeHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#snowflakehelpers Methods of the snowflakes helper, which reads and converts decimal Fluxer IDs without losing precision - `boundary(value: Date): string`: Make the smallest ID for a Date's exact UTC millisecond, useful as a time-based pagination boundary - `createdAt(value: string): Date`: Return a new UTC Date for the creation time encoded in an ID - `isValid(value: unknown): value is string`: Return true for a decimal string from `"0"` through `"9223372036854775807"`, with no extra leading zeroes - `parse(value: string): bigint`: Convert a valid decimal-string ID to bigint without losing precision - `shardFor(guildId: string, totalShards: number): number`: Return the shard that receives a community's gateway events when the bot runs totalShards shards - `tryParse(value: string): Result`: Convert a decimal-string ID with the same rules as parse, but report an invalid ID without throwing #### type TextHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#texthelpers Methods of the text helper, which splits and truncates long strings - `split(content: string, options: TextSplitOptions): readonly string[]`: Split text into a frozen array of pieces, each with `string.length` at most `options.maxLength` UTF-16 units - `truncate(content: string, options: TextTruncateOptions): string`: Shorten text to at most `options.maxLength` UTF-16 units, ending in `options.suffix` when anything was cut #### type TimestampStyle Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#timestampstyle One Fluxer timestamp-markup display style - `typeof TimestampStyles[keyof typeof TimestampStyles]` ### Caching #### interface CacheChange Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachechange One change applied to a client-owned cache, delivered to cache.onChange listeners after it happened - `key: string | null`: Entry key in the format described for this kind, or null for a clear - `kind: CacheKind`: Cache category whose local copy changed - `op: "delete" | "set" | "clear"`: What happened to the local copy #### interface CacheDiagnostic Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachediagnostic Current snapshot count and accounted bytes for one local cache category, with running lookup and eviction totals since the client was created - `accountedBytes: number`: Accounted UTF-8 JSON bytes of retained snapshots, excluding JavaScript overhead and caller-held copies - `configured: boolean`: Whether this category was configured when the client was created - `evictions: { readonly capacity: number; readonly expiry: number }`: Snapshots this category removed on its own, by reason - `hits: number`: Local lookups, such as client.messages.get, that returned a snapshot, including lookups the SDK makes itself - `maxBytes: number | null`: Configured client-wide accounted-byte bound, or null when this category was disabled - `maxEntries: number | null`: Configured client-wide entry bound, or null when this category was disabled - `misses: number`: Local lookups that found no snapshot, including one that had just expired - `retainedEntries: number`: Snapshots still held by the SDK after expired entries are removed #### interface CacheEntriesOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cacheentriesoptions Limit the snapshots returned by one local cache enumeration, without fetching missing resources - `limit?: number`: Maximum snapshots to return, from 1 through 1,000, default 100 #### interface CacheObserver Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cacheobserver Stop receiving cache changes from client.cache.onChange - `id: string`: Identifier of this observer, such as cacheChange#3, used in its log records and failure reports - `[dispose](): void`: Close this observer, as `using` does at the end of a block - `close(): void`: Stop delivering changes, including changes recorded or waiting but not yet delivered #### interface CacheObserverOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cacheobserveroptions Bound the work one cache.onChange listener can hold, so a listener that falls behind or never finishes cannot grow memory without limit - `concurrency?: number`: Maximum unfinished listener calls, a positive safe integer, default 256 - `maxPendingChanges?: number`: Maximum changes waiting for an unfinished call, a positive safe integer, default 256 #### interface CachedResources Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachedresources Maps each cache category to the snapshot returned by its local lookup and enumeration methods - `channels: GuildChannel`: Community channels, distinct from private conversations - `directMessages: DirectMessageChannel`: Direct-message and group direct-message conversations - `emojis: GuildEmoji`: Community emoji metadata, not image bytes - `guilds: Guild`: Community identity and settings, without a preloaded member or role list - `members: GuildMember`: Individual community memberships - `messages: M`: Messages encountered by eligible REST calls or gateway events - `roles: GuildRole`: Community role definitions - `stickers: GuildSticker`: Community sticker metadata, not image bytes - `users: User`: Public account profiles, not partial message authors #### interface ClientCache Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#clientcache Inspect, clear or remove data already held in this client's caches - `clear(kind?: CacheKind): void`: Release data held by this client's caches without changing which caches are enabled - `delete(kind: CacheKind, key: string): void`: Remove one entry from a cache category by its key, without fetching, refreshing or changing the remote resource - `entries(kind: K, options?: CacheEntriesOptions): readonly CachedResources[K][]`: Return frozen snapshots from one configured cache category, ordered least to most recently used - `onChange(listener: (change: CacheChange) => unknown, options?: CacheObserverOptions): CacheObserver`: Observe every later change to this client's local caches: Stored or replaced entries, removed entries and whole-category clears #### interface MessageCacheOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#messagecacheoptions Configure the message cache in either API - Inherits from `MessageCacheSettings`: `maxAgeMs`, `maxBytes`, `maxEntries` #### interface MessageCacheSettings Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#messagecachesettings Bound the message snapshots kept for local lookups in either API style - `maxAgeMs?: number | ((message: M) => number | null) | null`: How long to keep each accepted snapshot, in milliseconds, or a synchronous function that chooses that duration - `maxBytes?: number`: Maximum UTF-8 JSON bytes of retained messages with this client's selected fields, as a positive safe integer - `maxEntries?: number`: Maximum messages kept across this client, as a positive safe integer #### interface ResourceCacheSettings Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#resourcecachesettings Set memory-only cache bounds for a resource category such as users, communities (the guilds category) or channels - `maxAgeMs?: number | ((resource: T) => number | null) | null`: How long to keep each accepted snapshot, in milliseconds, or a synchronous function that chooses that duration - `maxBytes?: number`: Maximum accounted UTF-8 JSON bytes kept for this category, as a positive safe integer - `maxEntries?: number`: Maximum snapshots kept for this category across the client, as a positive safe integer #### type CacheKind Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachekind The resource category to inspect or clear in the client's local cache, not a remote resource identifier - `"messages" | "guilds" | "members" | "roles" | "channels" | "users" | "directMessages" | "emojis" | "stickers"` ### Channels #### function isThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#isthreadchannel - `isThreadChannel(channel: GuildChannel | undefined): channel is GuildThreadChannel`: Whether a community channel is a thread of any type #### variable ChannelFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelflags Known bits in the flags of a thread, forum channel or media channel - `HideMediaDownloadOptions: 32768`: On a media channel only: Clients hide the media download options - `Pinned: 2`: On a forum or media post: The post is pinned at the top of its channel - `RequireTag: 16`: On a forum or media channel: A new post, or a change to a post's tags, needs at least one tag #### variable ChannelType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channeltype Choose what a new community channel does: Text messages, announcements, voice calls, a category that groups channels, or a link - `Announcement: 5`: A community announcement channel whose published messages can reach following channels - `AnnouncementThread: 10`: A thread inside an announcement channel, visible to everyone who can view that channel - `Category: 4`: A grouping parent for community channels - `Forum: 15`: A channel that holds posts, each a public thread with its own first message, and no messages of its own - `Link: 998`: A channel that points to an external URL - `Media: 16`: A forum channel that can also hide media download options - `PrivateThread: 12`: A thread inside a text channel, visible only to its members and to members who can manage threads - `PublicThread: 11`: A thread inside a text, forum or media channel, visible to everyone who can view that channel - `Text: 0`: A community text conversation - `Voice: 2`: A community voice-call channel #### variable ForumLayout Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumlayout Layouts in which clients show the posts of a forum channel by default - `Default: 0`: No layout chosen, so each client uses its own default - `Grid: 2`: Posts as a grid of previews - `List: 1`: Posts as a list #### variable ForumSortOrder Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumsortorder Orders in which clients list the posts of a forum or media channel by default - `CreationTime: 1`: Newest post first - `LatestActivity: 0`: Newest activity first #### variable ThreadAutoArchiveMinutes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadautoarchiveminutes Inactivity periods, in minutes, after which Fluxer archives a thread - `OneDay: 1440`: Archive after one day without activity - `OneHour: 60`: Archive after one hour without activity - `OneWeek: 10080`: Archive after one week without activity - `ThreeDays: 4320`: Archive after three days without activity, the default for a new thread #### interface AnnouncementChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#announcementchannelcreate Creates an announcement channel with the same settings as a text channel - `type: 5`: Announcement channel type - Inherits from `ChannelCreateBase`: `bitrate`, `contentWarningLevel`, `contentWarningText`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `topic`, `url`, `userLimit`, `voiceConnectionLimit` - Inherits from `ThreadParentDefaults`: `defaultAutoArchiveMinutes`, `defaultThreadRateLimitPerUser` #### interface ArchivedThreadIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreaditerationquery Scope, limits and starting point for threads.iterateArchived, reading archived threads of a channel page by page - `before?: string`: Start before this cursor, excluding it, as in ArchivedThreadQuery: An ISO 8601 timestamp with a timezone for "public" and "private", compared with the archive time, or a decimal thread ID for "joinedPrivate" - `scope?: ArchivedThreadScope`: Threads to read, default "public" - Inherits from `PaginationQuery`: `maxItems`, `maxPages`, `pageSize` #### interface ArchivedThreadPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreadpage One frozen page of archived threads - `hasMore: boolean`: Whether Fluxer may have more threads after this page - `threads: readonly GuildThreadChannel[]`: Archived threads in the order Fluxer listed them #### interface ArchivedThreadQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreadquery Select one page of archived threads of a channel - `before?: string`: Start before this cursor, excluding it - `limit?: number`: Maximum threads in the page, an integer from 2 through 100, default 50 - `scope?: ArchivedThreadScope`: Threads to list, default "public" #### interface CategoryChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#categorychannelcreate Create a category to group community channels - `type: 4`: Category channel type - Inherits from `ChannelCreateBase`: `bitrate`, `contentWarningLevel`, `contentWarningText`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `topic`, `url`, `userLimit`, `voiceConnectionLimit` #### interface ChannelCreateBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelcreatebase Settings shared by new text, announcement, voice, category and link channels - `bitrate?: number | null`: Voice audio bitrate in bits per second, integer 8,000–384,000 or null, default 64,000 for voice channels - `contentWarningLevel?: number`: 0 inherits the content-warning level, 1 requests a channel content warning - `contentWarningText?: string | null`: Warning shown before viewing content, with 0–200 raw UTF-16 code units and null inheriting - `name: string`: Channel name - `nsfw?: boolean`: Adult-content setting using Fluxer's older NSFW field - `nsfwOverride?: boolean | null`: Explicit adult-content override, with null inheriting - `parentId?: string | null`: Parent category, with null, an empty string or omission creating a top-level channel - `permissionOverwrites?: readonly PermissionOverwrite[]`: Explicit overrides, omitted to inherit a parent category and [] to create no overrides - `rateLimitPerUser?: number | null`: Delay between a user's messages in seconds, integer 0–21,600 or null - `topic?: string | null`: Description shown for the channel, 1–1,024 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming, or null or an empty string for none, as Fluxer reads an empty string as null here - `url?: string | null`: Link-channel URL, or null or an empty string for none - `userLimit?: number | null`: Maximum voice users from 0 through 99, with 0 unlimited and the voice default - `voiceConnectionLimit?: number | null`: Voice connections per user from 1 through 100, default 5 for voice channels #### interface ChannelEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channeledit Change an existing community channel's settings without replacing the channel - `availableTags?: readonly ForumTagInput[]`: Replace the complete tag list of a forum or media channel, at most 20 tags - `bitrate?: number | null`: Voice bitrate in bits per second, integer 8,000–384,000, or null - `contentWarningLevel?: number`: 0 inherits the content-warning level, 1 requests a channel content warning - `contentWarningText?: string | null`: Warning text with 0–200 raw UTF-16 code units, with null inheriting - `defaultAutoArchiveMinutes?: number | null`: Auto-archive period in minutes that a text, announcement, forum or media channel stores for its threads: One of the ThreadAutoArchiveMinutes values, or null to clear it - `defaultForumLayout?: number | null`: Default post layout of a forum channel, a ForumLayout value - `defaultReactionEmoji?: ForumDefaultReactionInput | null`: Reaction that clients show on each post of a forum or media channel, or null for none - `defaultSortOrder?: number | null`: Default post order of a forum or media channel, a ForumSortOrder value, or null for none - `defaultTagSetting?: "match_some" | "match_all" | null`: How a post search of a forum or media channel matches several tags by default: "match_some" finds posts with any of them and "match_all" only posts with all of them - `defaultThreadRateLimitPerUser?: number | null`: Slowmode delay in seconds that a new thread in a text, announcement, forum or media channel copies when its creation sets none, an integer from 0 through 21,600, or null to clear it - `flags?: number`: Flags of a forum or media channel, replacing all of them: Include ChannelFlags.RequireTag to keep it required - `name?: string`: Channel name - `nsfw?: boolean | null`: Adult-content setting using Fluxer's older NSFW field - `nsfwOverride?: boolean | null`: Explicit adult-content override, with null inheriting - `permissionOverwrites?: readonly PermissionOverwrite[]`: Replace all explicit overwrites, with [] clearing them and omission preserving them - `rateLimitPerUser?: number | null`: Delay between a user's messages in seconds, integer 0–21,600, or null - `rtcRegion?: string | null`: Voice region ID of 1–64 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming, with null or an empty string selecting automatic routing - `topic?: string | null`: Channel description, 1–1,024 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming, or null or an empty string to clear it, as Fluxer reads an empty string as null here - `type?: 0 | 5`: Convert between Text (0) and Announcement (5), alone or with other settings - `url?: string`: Replacement URL for a link channel - `userLimit?: number | null`: Maximum voice users, integer 0–99, or null - `voiceConnectionLimit?: number | null`: Maximum simultaneous voice connections per user, integer 1–100, or null #### interface ChannelFollowInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelfollowinput Subscribe a text channel to messages published from an announcement channel - `targetChannelId: string`: Decimal ID of the receiving community text channel, whose type must be ChannelType.Text #### interface ChannelFollowerStats Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelfollowerstats A frozen count of channels and communities following one announcement channel - `channelCount: number`: Number of following channels - `guildCount: number`: Number of distinct communities containing following channels #### interface ChannelMemberCount Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelmembercount Visible member totals for one requested channel, with the guild ID supplied by the gateway response - `channelId: string`: Requested channel ID as a positive decimal string with no leading zeroes, no greater than 9223372036854775807 - `memberCount: number`: Nonnegative visible members Fluxer reported for this channel, not the community total - `onlineCount: number`: Nonnegative visible online members Fluxer reported for this channel, not the community total - Inherits from `GuildCount`: `guildId` #### interface ChannelMemberCountsResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelmembercountsresult Results from one community's requested channel counts, ordered to match the requested channel IDs - `counts: readonly ChannelMemberCount[]`: Frozen count entries in the caller's requested channel-ID order - `omittedChannelIds: readonly string[]`: Frozen requested channel IDs without a returned entry, in caller input order #### interface ChannelPosition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelposition Move or reorder one community channel with channels.reorder - `id: string`: Decimal channel ID - `parentId?: string | null`: New parent category, with null or an empty string moving to the top level and omission preserving the parent - `position?: number`: Nonnegative requested sibling position - `precedingSiblingId?: string | null`: Sibling directly preceding this channel, with null or an empty string placing it first - `syncPermissionsOnMove?: boolean`: Copy destination overwrites only when moving into a new category, default false and no sync for the same parent #### interface Channels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channels Read, create and change community channels, with optional local cache lookup - `create(guildId: string, input: ChannelCreate, options?: AuditedRequestOptions): ResultAsync`: Create a supported community channel and return its frozen server snapshot - `createForumTag(channelId: string, input: ForumTagInput, options?: AuditedRequestOptions): ResultAsync`: Add one tag to a forum or media channel and return the frozen updated channel - `delete(channelId: string, options?: AuditedRequestOptions): ResultAsync`: Delete a community channel, succeeding with no value after HTTP 204 - `deleteForumTag(channelId: string, tagId: string, options?: AuditedRequestOptions): ResultAsync`: Delete one tag from a forum or media channel and return the frozen updated channel - `edit(channelId: string, input: ChannelEdit, options?: AuditedRequestOptions): ResultAsync`: Change only the supplied channel settings and return the frozen server snapshot - `editForumTag(channelId: string, tagId: string, input: ForumTagInput, options?: AuditedRequestOptions): ResultAsync`: Replace one tag of a forum or media channel and return the frozen updated channel - `fetch(channelId: string, options?: RequestOptions): ResultAsync`: Fetch a community channel by decimal ID and return a frozen snapshot - `fetchAll(guildId: string, options?: RequestOptions): ResultAsync`: Fetch the community channels currently visible to the bot, without pagination - `fetchFollowerStats(channelId: string, options?: RequestOptions): ResultAsync`: Fetch frozen channel and distinct community follower counts for a viewable announcement channel - `fetchMemberCounts(guildId: string, channelIds: readonly string[], options?: RequestOptions): ResultAsync`: Request fresh member counts for 1–25 channels in one community over the connected gateway - `follow(channelId: string, input: ChannelFollowInput, options?: AuditedRequestOptions): ResultAsync`: Follow an announcement channel into the supplied community text channel and return frozen source and webhook IDs - `get(channelId: string): GuildChannel | undefined`: Look up a community channel in the enabled cache, without an HTTP request or a connection - `removePermissionOverwrite(channelId: string, targetId: string, options?: AuditedRequestOptions): ResultAsync`: Remove one explicit permission overwrite by decimal role or member target ID - `reorder(guildId: string, positions: readonly ChannelPosition[], options?: AuditedRequestOptions): ResultAsync`: Submit community-channel moves, succeeding with no value after HTTP 204 - `setPermissionOverwrite(channelId: string, input: PermissionOverwrite, options?: AuditedRequestOptions): ResultAsync`: Replace one explicit role or member permission overwrite #### interface FollowedChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#followedchannel A confirmed announcement-channel follow, returned as a frozen value - `channelId: string`: Decimal ID of the followed announcement channel, not the receiving channel - `webhookId: string`: Decimal ID of the channel-follower webhook created in the receiving channel #### interface ForumChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumchannelcreate Creates a forum channel, which holds posts instead of messages - `defaultForumLayout?: number | null`: Default post layout, a ForumLayout value - `type: 15`: Forum channel type - Inherits from `ForumChannelCreateBase`: `availableTags`, `bitrate`, `contentWarningLevel`, `contentWarningText`, `defaultAutoArchiveMinutes`, `defaultReactionEmoji`, `defaultSortOrder`, `defaultTagSetting`, `defaultThreadRateLimitPerUser`, `flags`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `topic`, `url`, `userLimit`, `voiceConnectionLimit` #### interface ForumChannelCreateBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumchannelcreatebase Settings shared by new forum and media channels - `availableTags?: readonly ForumTagInput[]`: Tags that posts can carry, at most 20 - `defaultReactionEmoji?: ForumDefaultReactionInput | null`: Reaction that clients show on each post, or null for none - `defaultSortOrder?: number | null`: Default post order, a ForumSortOrder value, or null for none - `defaultTagSetting?: "match_some" | "match_all" | null`: How a post search matches several tags by default: "match_some" finds posts with any of them and "match_all" only posts with all of them - `flags?: number`: Channel flags - `topic?: string | null`: Posting guidelines, 1–4,096 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming, or null or an empty string for none - Inherits from `ChannelCreateBase`: `bitrate`, `contentWarningLevel`, `contentWarningText`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `url`, `userLimit`, `voiceConnectionLimit` - Inherits from `ThreadParentDefaults`: `defaultAutoArchiveMinutes`, `defaultThreadRateLimitPerUser` #### interface ForumDefaultReaction Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumdefaultreaction The reaction that clients show on each post of a forum or media channel - `emojiId: string | null`: Decimal ID of a custom emoji of this community, or null for a Unicode emoji - `emojiName: string | null`: A Unicode emoji, or null for a custom emoji #### interface ForumDefaultReactionInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumdefaultreactioninput The reaction that clients show on each post of a forum or media channel - `emojiId?: string | null`: Decimal ID of a custom emoji of this community, or null or an empty string - `emojiName?: string | null`: A single Unicode emoji, or null or an empty string, up to 64 UTF-16 code units #### interface ForumPost Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpost A post created with threads.createPost: Its thread and its first message, both frozen - `message: M`: The post's first message, in the thread, using the client's messageFields selection - `thread: GuildPublicThreadChannel`: The post, a public thread whose parentId is the forum or media channel #### interface ForumPostCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpostcreate A new post in a forum or media channel, created with threads.createPost - `appliedTagIds?: readonly string[]`: IDs of the channel's forum tags to apply, at most 5 decimal strings - `autoArchiveMinutes?: number`: Inactivity period in minutes after which Fluxer archives the post, one of the ThreadAutoArchiveMinutes values, default ThreadAutoArchiveMinutes.ThreeDays - `message: ForumPostMessage`: The post's first message - `name: string`: Post name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `rateLimitPerUser?: number`: Slowmode delay in seconds, an integer from 0 through 21,600 #### interface ForumPostData Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpostdata The creator and first message of one forum or media post, read with threads.fetchPostData - `firstMessage: M | null`: The post's first message, using the client's messageFields selection - `owner: GuildMember | null`: The post creator's community membership - `threadId: string`: The decimal post ID this entry describes, as requested #### interface ForumTag Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumtag A tag that posts in a forum or media channel can carry - `emojiId: string | null`: Decimal ID of a custom emoji of this community, or null when the tag has none - `emojiName: string | null`: A Unicode emoji, or null when the tag has none - `id: string`: Decimal tag ID - `moderated: boolean`: Whether only members who can manage threads may apply or remove the tag - `name: string`: Tag name, unique within its channel #### interface ForumTagInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumtaginput Settings of one tag that posts in a forum or media channel can carry - `emojiId?: string | null`: Decimal ID of a custom emoji of this community, or null or an empty string for none - `emojiName?: string | null`: A single Unicode emoji, or null or an empty string for none, up to 64 UTF-16 code units - `id?: string`: Decimal ID of an existing tag, which only an entry of a channel edit's availableTags uses: The entry keeps that tag and replaces its settings, while an entry without an ID adds a tag - `moderated?: boolean`: Whether only members who can manage threads may apply or remove the tag - `name: string`: Tag name, 1–50 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming #### interface GuildAnnouncementChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildannouncementchannel A community announcement channel, selected by `type === ChannelType.Announcement` - `type: 5`: Always ChannelType.Announcement - Inherits from `GuildTextChannelBase`: `contentWarningLevel`, `contentWarningText`, `defaultAutoArchiveMinutes`, `defaultThreadRateLimitPerUser`, `guildId`, `id`, `lastMessageId`, `lastPinTimestamp`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position`, `rateLimitPerUser`, `topic` #### interface GuildAnnouncementThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildannouncementthreadchannel A thread inside an announcement channel, selected by `type === ChannelType.AnnouncementThread` - `type: 10`: Always ChannelType.AnnouncementThread - Inherits from `GuildThreadChannelBase`: `archived`, `archiveTimestamp`, `autoArchiveMinutes`, `contentWarningLevel`, `contentWarningText`, `createdAt`, `flags`, `guildId`, `id`, `lastMessageId`, `lastPinTimestamp`, `locked`, `memberCount`, `membership`, `messageCount`, `name`, `nsfw`, `nsfwOverride`, `ownerId`, `parentId`, `permissionOverwrites`, `position`, `rateLimitPerUser`, `totalMessageSent` #### interface GuildCategoryChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildcategorychannel A grouping parent for community channels, selected by `type === ChannelType.Category` - `type: 4`: Always ChannelType.Category - Inherits from `GuildChannelBase`: `contentWarningLevel`, `contentWarningText`, `guildId`, `id`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position` #### interface GuildChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildchannelbase Fields every community channel shares, whatever its type - `contentWarningLevel?: number`: Channel content-warning override, when supplied - `contentWarningText?: string | null`: Custom content-warning text, with null inheriting - `guildId: string`: Decimal community ID - `id: string`: Decimal channel ID - `name?: string`: Channel name, when Fluxer supplies one - `nsfw?: boolean`: Effective adult-content setting from Fluxer's older NSFW field, when supplied - `nsfwOverride?: boolean | null`: Channel adult-content override, with null inheriting from its category then community - `parentId?: string | null`: Parent category ID, with null meaning top-level and omission meaning unavailable - `permissionOverwrites?: readonly PermissionOverwrite[]`: Explicit channel overwrites, not inherited or effective permissions - `position?: number`: Server ordering position, not an immutable ordering guarantee - `type: 0 | "unknown" | 2 | 10 | 11 | 12 | 15 | 4 | 5 | 16 | 998`: A ChannelType constant, or "unknown" for a type this SDK version does not know #### interface GuildForumChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildforumchannel A forum channel, selected by `type === ChannelType.Forum` - `defaultForumLayout?: number`: Default post layout, such as ForumLayout.List - `type: 15`: Always ChannelType.Forum - Inherits from `GuildForumChannelBase`: `availableTags`, `contentWarningLevel`, `contentWarningText`, `defaultAutoArchiveMinutes`, `defaultReactionEmoji`, `defaultSortOrder`, `defaultTagSetting`, `defaultThreadRateLimitPerUser`, `flags`, `guildId`, `id`, `lastMessageId`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position`, `rateLimitPerUser`, `topic` #### interface GuildForumChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildforumchannelbase Fields shared by forum and media channels, which hold posts and no messages of their own - `availableTags?: readonly ForumTag[]`: Tags that posts can carry, at most 20 - `defaultAutoArchiveMinutes?: number | null`: Stored default auto-archive period for posts, in minutes, with null meaning none is set - `defaultReactionEmoji?: ForumDefaultReaction | null`: Reaction that clients show on each post, with null meaning none - `defaultSortOrder?: number | null`: Default post order, such as ForumSortOrder.LatestActivity, with null meaning none is set - `defaultTagSetting?: string`: Default tag matching of a post search, "match_some" or "match_all" - `defaultThreadRateLimitPerUser?: number`: Slowmode delay in seconds that a new post copies when its creation sets none - `flags?: number`: Channel flags, such as ChannelFlags.RequireTag - `lastMessageId?: string | null`: ID of the newest post, with null meaning the channel never had one - `rateLimitPerUser?: number`: Delay in seconds between one member's new posts - `topic?: string | null`: Posting guidelines, with null meaning none - `type: 15 | 16`: Forum or media channel type - Inherits from `GuildChannelBase`: `contentWarningLevel`, `contentWarningText`, `guildId`, `id`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position` #### interface GuildLinkChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildlinkchannel A channel that points to an external URL, selected by `type === ChannelType.Link` - `type: 998`: Always ChannelType.Link - `url?: string | null`: Link URL, with null when unset on older data and omission meaning unavailable - Inherits from `GuildChannelBase`: `contentWarningLevel`, `contentWarningText`, `guildId`, `id`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position` #### interface GuildMediaChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildmediachannel A media channel, a forum channel that can hide media download options, selected by `type === ChannelType.Media` - `type: 16`: Always ChannelType.Media - Inherits from `GuildForumChannelBase`: `availableTags`, `contentWarningLevel`, `contentWarningText`, `defaultAutoArchiveMinutes`, `defaultReactionEmoji`, `defaultSortOrder`, `defaultTagSetting`, `defaultThreadRateLimitPerUser`, `flags`, `guildId`, `id`, `lastMessageId`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position`, `rateLimitPerUser`, `topic` #### interface GuildPrivateThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildprivatethreadchannel A private thread inside a text channel, selected by `type === ChannelType.PrivateThread` - `invitable: boolean`: Whether members who cannot manage threads may add other such members - `type: 12`: Always ChannelType.PrivateThread - Inherits from `GuildThreadChannelBase`: `archived`, `archiveTimestamp`, `autoArchiveMinutes`, `contentWarningLevel`, `contentWarningText`, `createdAt`, `flags`, `guildId`, `id`, `lastMessageId`, `lastPinTimestamp`, `locked`, `memberCount`, `membership`, `messageCount`, `name`, `nsfw`, `nsfwOverride`, `ownerId`, `parentId`, `permissionOverwrites`, `position`, `rateLimitPerUser`, `totalMessageSent` #### interface GuildPublicThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildpublicthreadchannel A public thread inside a text channel, or a post inside a forum or media channel, selected by `type === ChannelType.PublicThread` - `appliedTagIds?: readonly string[]`: IDs of the forum tags applied to a forum or media post, at most 5 - `type: 11`: Always ChannelType.PublicThread - Inherits from `GuildThreadChannelBase`: `archived`, `archiveTimestamp`, `autoArchiveMinutes`, `contentWarningLevel`, `contentWarningText`, `createdAt`, `flags`, `guildId`, `id`, `lastMessageId`, `lastPinTimestamp`, `locked`, `memberCount`, `membership`, `messageCount`, `name`, `nsfw`, `nsfwOverride`, `ownerId`, `parentId`, `permissionOverwrites`, `position`, `rateLimitPerUser`, `totalMessageSent` #### interface GuildTextChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildtextchannel A community text conversation, selected by `type === ChannelType.Text` - `type: 0`: Always ChannelType.Text - Inherits from `GuildTextChannelBase`: `contentWarningLevel`, `contentWarningText`, `defaultAutoArchiveMinutes`, `defaultThreadRateLimitPerUser`, `guildId`, `id`, `lastMessageId`, `lastPinTimestamp`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position`, `rateLimitPerUser`, `topic` #### interface GuildTextChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildtextchannelbase Message and topic fields shared by community text and announcement channels - `defaultAutoArchiveMinutes?: number | null`: Stored default auto-archive period for threads in this channel, in minutes, such as ThreadAutoArchiveMinutes.OneDay - `defaultThreadRateLimitPerUser?: number`: Slowmode delay in seconds that a new thread in this channel copies when its creation sets none - `lastMessageId?: string | null`: Last message ID, with null meaning no known message - `lastPinTimestamp?: string | null`: ISO 8601 time of the most recent pin, or null when nothing was ever pinned - `rateLimitPerUser?: number`: Slowmode delay in seconds - `topic?: string | null`: Topic, with null clearing it and omission meaning unavailable - `type: 0 | 5`: Text or announcement channel type - Inherits from `GuildChannelBase`: `contentWarningLevel`, `contentWarningText`, `guildId`, `id`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position` #### interface GuildThreadChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildthreadchannelbase Fields every thread shares, whatever its type - `archived: boolean`: Whether the thread is archived - `archiveTimestamp: string`: ISO 8601 time the thread was last archived, unarchived or given a new autoArchiveMinutes - `autoArchiveMinutes: number`: Inactivity period in minutes after which Fluxer archives the thread, such as ThreadAutoArchiveMinutes.ThreeDays - `createdAt: string`: ISO 8601 time the thread was created - `flags?: number`: Thread flags - `lastMessageId?: string | null`: Last message ID, with null meaning the thread has no message - `lastPinTimestamp?: string | null`: ISO 8601 last-pin time, with null meaning nothing was ever pinned - `locked: boolean`: Whether sending and other restricted thread actions require Manage Threads - `memberCount?: number`: Approximate number of thread members, capped at 50 - `membership?: ThreadMembership`: The bot's own membership, present when Fluxer reports that the bot is a member - `messageCount?: number`: Messages in the thread, excluding the first message of a forum post and deleted messages - `name: string`: Thread name - `ownerId: string`: Decimal ID of the user or webhook that created the thread - `parentId: string`: Decimal ID of the text, announcement, forum or media channel that holds the thread, never a category - `rateLimitPerUser?: number`: Slowmode delay in seconds - `totalMessageSent?: number`: Messages ever sent in the thread, excluding the first message of a forum post - `type: 10 | 11 | 12`: One of the three thread types - Inherits from `GuildChannelBase`: `contentWarningLevel`, `contentWarningText`, `guildId`, `id`, `nsfw`, `nsfwOverride`, `permissionOverwrites`, `position` #### interface GuildUnknownChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildunknownchannel A community channel of a type this SDK version does not know, such as a type Fluxer adds later, or a synthesized guildChannelDelete that Fluxer emits without a channel type when the session loses ViewChannel, selected by `type === "unknown"` - `rawType: number | null`: Numeric channel type Fluxer sent outside the known ChannelType constants, or null when Fluxer omitted type on a synthesized CHANNEL_DELETE dispatch after the session lost ViewChannel - `type: "unknown"`: Always "unknown" - Inherits from `GuildVoiceChannel`: `bitrate`, `rtcRegion`, `userLimit`, `voiceConnectionLimit` - Inherits from `GuildChannelBase`: `contentWarningLevel`, `contentWarningText`, `guildId`, `id`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position` - Inherits from `GuildTextChannelBase`: `lastMessageId`, `lastPinTimestamp`, `rateLimitPerUser`, `topic` - Inherits from `GuildLinkChannel`: `url` #### interface GuildVoiceChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildvoicechannel A community voice-call channel, selected by `type === ChannelType.Voice` - `bitrate?: number | null`: Voice bitrate in bits per second, with null meaning no voice setting - `lastMessageId?: string | null`: Last message ID in the channel's text chat, with null meaning no known message - `lastPinTimestamp?: string | null`: ISO 8601 time of the most recent pin in the channel's text chat, or null when nothing was ever pinned - `rateLimitPerUser?: number`: Slowmode delay in seconds for the channel's text chat - `rtcRegion?: string | null`: Voice region ID, with null selecting automatic routing - `topic?: string | null`: Topic, with null meaning none and omission meaning unavailable - `type: 2`: Always ChannelType.Voice - `userLimit?: number | null`: Voice user limit, with null meaning no voice setting - `voiceConnectionLimit?: number | null`: Voice connections permitted per user, with null meaning no voice setting - Inherits from `GuildChannelBase`: `contentWarningLevel`, `contentWarningText`, `guildId`, `id`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `position` #### interface LinkChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#linkchannelcreate Create a community channel that points readers to a URL - `type: 998`: Link channel type - `url: string`: Required destination URL for the link channel - Inherits from `ChannelCreateBase`: `bitrate`, `contentWarningLevel`, `contentWarningText`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `topic`, `userLimit`, `voiceConnectionLimit` #### interface MediaChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#mediachannelcreate Creates a media channel, a forum channel that can hide media download options - `type: 16`: Media channel type - Inherits from `ForumChannelCreateBase`: `availableTags`, `bitrate`, `contentWarningLevel`, `contentWarningText`, `defaultAutoArchiveMinutes`, `defaultReactionEmoji`, `defaultSortOrder`, `defaultTagSetting`, `defaultThreadRateLimitPerUser`, `flags`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `topic`, `url`, `userLimit`, `voiceConnectionLimit` #### interface TextChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#textchannelcreate Creates a text channel - `type: 0`: Text channel type - Inherits from `ChannelCreateBase`: `bitrate`, `contentWarningLevel`, `contentWarningText`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `topic`, `url`, `userLimit`, `voiceConnectionLimit` - Inherits from `ThreadParentDefaults`: `defaultAutoArchiveMinutes`, `defaultThreadRateLimitPerUser` #### interface ThreadCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadcreate Settings for a new thread in a text or announcement channel, created with threads.create - `autoArchiveMinutes?: number`: Inactivity period in minutes after which Fluxer archives the thread, one of the ThreadAutoArchiveMinutes values, default ThreadAutoArchiveMinutes.ThreeDays - `invitable?: boolean`: Whether members who cannot manage threads may add other such members, default true - `name: string`: Thread name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `rateLimitPerUser?: number`: Slowmode delay in seconds, an integer from 0 through 21,600 - `type?: 10 | 11 | 12`: Thread type, default ChannelType.PublicThread #### interface ThreadEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadedit Change an existing thread or post with threads.edit - `appliedTagIds?: readonly string[]`: Replace the tags of a forum or media post with these tag IDs, at most 5 decimal strings, with [] removing every tag - `archived?: boolean`: Archive the thread with true, or unarchive it with false - `autoArchiveMinutes?: number`: Inactivity period in minutes after which Fluxer archives the thread, one of the ThreadAutoArchiveMinutes values - `invitable?: boolean`: Whether members who cannot manage threads may add other such members - `locked?: boolean`: Whether only members who can manage threads may act in the thread - `name?: string`: Thread name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `pinned?: boolean`: Pin a forum or media post with true, or unpin it with false, by setting ChannelFlags.Pinned - `rateLimitPerUser?: number`: Slowmode delay in seconds, an integer from 0 through 21,600 #### interface ThreadFromMessageCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadfrommessagecreate Settings for a public thread started on an existing message with threads.createFromMessage - `autoArchiveMinutes?: number`: Inactivity period in minutes after which Fluxer archives the thread, one of the ThreadAutoArchiveMinutes values, default ThreadAutoArchiveMinutes.ThreeDays - `name: string`: Thread name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `rateLimitPerUser?: number`: Slowmode delay in seconds, an integer from 0 through 21,600 #### interface ThreadMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmember One member of a thread - `flags: number`: Fluxer's thread member flags, such as notification preferences - `joinedAt: string`: ISO 8601 time the user last joined the thread - `member?: GuildMember`: The user's community membership, present only when Fluxer supplied it with the thread member - `threadId: string`: Decimal thread ID - `userId: string`: Decimal ID of the member's account #### interface ThreadMemberIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmemberiterationquery Limits and starting point for threads.iterateMembers, reading thread members in ascending user ID order - `withMember?: boolean`: Also read each user's community membership into ThreadMember.member, default false - Inherits from `UserIterationQuery`: `after`, `maxItems`, `maxPages`, `pageSize` #### interface ThreadMemberPageQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmemberpagequery Select one page of thread members, in ascending user ID order - `after?: string`: Start with decimal user IDs greater than this ID, excluding it - `limit?: number`: Maximum members in the page, an integer from 1 through 100, default 100 - Inherits from `ThreadMemberQuery`: `withMember` #### interface ThreadMemberQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmemberquery Options for reading one thread member with threads.fetchMember - `withMember?: boolean`: Also read the user's community membership into ThreadMember.member, default false #### interface ThreadMembership Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmembership The bot's own membership in a thread, as Fluxer reports it beside the thread - `flags: number`: Fluxer's thread member flags, such as notification preferences - `joinedAt: string`: ISO 8601 time the bot last joined the thread #### interface ThreadParentDefaults Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadparentdefaults Default settings for the threads that start inside a text, announcement, forum or media channel - `defaultAutoArchiveMinutes?: number | null`: Auto-archive period in minutes that the channel stores for its threads: One of the ThreadAutoArchiveMinutes values, or null to clear it - `defaultThreadRateLimitPerUser?: number | null`: Slowmode delay in seconds that a new thread in this channel copies when its creation sets none, an integer from 0 through 21,600, or null to clear it #### interface ThreadSearchIndexingPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchindexingpage Successful search response while Fluxer still builds the community's search index - `indexing: true`: True distinguishes this response from a ThreadSearchResultsPage - `retryAfterMs?: number`: Suggested wait in milliseconds before searching again #### interface ThreadSearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchquery Filters and paging for one threads.search request in a text, announcement, forum or media channel - `archived?: boolean`: True for only archived threads, false for only active threads - `limit?: number`: Maximum threads in the page, an integer from 1 through 25, default 25 - `maxId?: string`: Include only thread IDs smaller than this decimal ID - `minId?: string`: Include only thread IDs greater than this decimal ID - `name?: string`: Text to look for in thread names, at most 100 UTF-16 code units - `offset?: number`: Matching threads to skip, an integer from 0 through 9,975, default 0 - `sortBy?: "last_message_time" | "archive_time" | "relevance" | "creation_time"`: Result order, default "last_message_time" - `sortOrder?: "asc" | "desc"`: Ascending or descending result order, default "desc" - `tagIds?: readonly string[]`: Forum tag IDs to filter by, at most 20 decimal strings - `tagSetting?: "match_some" | "match_all"`: How tagIds match: "match_some" for any tag, "match_all" for every tag #### interface ThreadSearchResultsPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchresultspage Search results once Fluxer's index can answer - `firstMessages: readonly M[]`: The first message of each returned post in a forum or media channel, using the client's messageFields selection - `hasMore: boolean`: Whether more matching threads follow this page, read by raising offset - `indexing: false`: False distinguishes this response from an indexing response - `threads: readonly GuildThreadChannel[]`: Matching threads in result order - `total: number`: Number of matching threads Fluxer reported with this response, which can change between requests #### interface Threads Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threads Create threads and forum posts, change, list and search threads, and manage thread members - `addMember(threadId: string, userId: string, options?: RequestOptions): ResultAsync`: Add a community member who can view the parent channel to a thread, succeeding with no value after HTTP 204 - `create(channelId: string, input: ThreadCreate, options?: AuditedRequestOptions): ResultAsync`: Create a thread that is not attached to a message in a text or announcement channel, and return its frozen snapshot - `createFromMessage(message: MessageReference, input: ThreadFromMessageCreate, options?: AuditedRequestOptions): ResultAsync`: Start a public thread on an existing message and return its frozen snapshot - `createPost(channelId: string, input: ForumPostCreate, options?: AuditedRequestOptions): ResultAsync, CancelledError | ConfigurationError | ChannelOperationFailure>`: Create a post in a forum or media channel, a public thread with its first message, and return both frozen - `edit(threadId: string, input: ThreadEdit, options?: AuditedRequestOptions): ResultAsync`: Change only the supplied thread settings and return the frozen thread - `fetchActive(guildId: string, options?: RequestOptions): ResultAsync`: Fetch every active thread the bot can view in a community, newest first, as one frozen list - `fetchArchived(channelId: string, query?: ArchivedThreadQuery, options?: RequestOptions): ResultAsync`: Fetch one frozen page of archived threads of a text, announcement, forum or media channel, as ArchivedThreadQuery selects - `fetchMember(threadId: string, userId: string, query?: ThreadMemberQuery, options?: RequestOptions): ResultAsync`: Fetch one thread member as a frozen ThreadMember - `fetchMembers(threadId: string, query?: ThreadMemberPageQuery, options?: RequestOptions): ResultAsync`: Fetch one page of thread members in ascending user ID order, as frozen ThreadMember values - `fetchPostData(channelId: string, threadIds: readonly string[], options?: RequestOptions): ResultAsync[], CancelledError | ConfigurationError | ChannelOperationFailure>`: Read the creator and first message of up to 100 posts in a forum or media channel, as one frozen list in the order of threadIds - `iterateArchived(channelId: string, query: ArchivedThreadIterationQuery, options?: RequestOptions): AsyncIterable>`: Read archived threads of a text, announcement, forum or media channel across pages, as threads.fetchArchived lists them for the chosen scope, buffering one page and never prefetching - `iterateMembers(threadId: string, query: ThreadMemberIterationQuery, options?: RequestOptions): AsyncIterable>`: Read thread members in ascending user ID order, buffering one page and never prefetching - `join(threadId: string, options?: RequestOptions): ResultAsync`: Add the bot to a thread, succeeding with no value after HTTP 204 - `leave(threadId: string, options?: RequestOptions): ResultAsync`: Remove the bot from a thread, succeeding with no value after HTTP 204 - `removeMember(threadId: string, userId: string, options?: RequestOptions): ResultAsync`: Remove a member from a thread, succeeding with no value after HTTP 204, and Fluxer posts a RecipientRemove notice in the thread - `search(channelId: string, query?: ThreadSearchQuery, options?: RequestOptions): ResultAsync, CancelledError | ConfigurationError | ChannelOperationFailure>`: Search the threads of a text, announcement, forum or media channel by name, tags and state, and return one frozen page #### interface VoiceChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#voicechannelcreate Creates a voice channel - `type: 2`: Voice channel type - Inherits from `ChannelCreateBase`: `bitrate`, `contentWarningLevel`, `contentWarningText`, `name`, `nsfw`, `nsfwOverride`, `parentId`, `permissionOverwrites`, `rateLimitPerUser`, `topic`, `url`, `userLimit`, `voiceConnectionLimit` #### type ArchivedThreadScope Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreadscope Which archived threads threads.fetchArchived lists: Public threads, private threads, or only the private threads the bot joined - `"public" | "private" | "joinedPrivate"` #### type ChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelcreate One supported community-channel creation request, with Fluxer positioning a new channel itself - `TextChannelCreate | AnnouncementChannelCreate | VoiceChannelCreate | CategoryChannelCreate | LinkChannelCreate | ForumChannelCreate | MediaChannelCreate` #### type ForumPostMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpostmessage The first message of a forum or media post: The content, embeds, files and stickers of messages.send, with allowedMentions and flags - `MessageBody & Pick` #### type GuildChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildchannel Settings and identity of a community channel returned by a read or gateway event, as one shape per channel type - `GuildTextChannel | GuildAnnouncementChannel | GuildVoiceChannel | GuildCategoryChannel | GuildAnnouncementThreadChannel | GuildPublicThreadChannel | GuildPrivateThreadChannel | GuildForumChannel | Gui...` #### type GuildThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildthreadchannel A thread: A channel inside a text, announcement, forum or media channel that holds its own messages - `GuildAnnouncementThreadChannel | GuildPublicThreadChannel | GuildPrivateThreadChannel` #### type ThreadSearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchpage Successful outcome of one threads.search request - `ThreadSearchIndexingPage | ThreadSearchResultsPage` ### Client and Lifecycle #### function createClient Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#createclient - `createClient(options: ClientOptions): Client>`: Create a bot client from a token, initially Disconnected #### function defineBot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#definebot - `defineBot> = Readonly> | undefined>>, G extends Readonly> = { … }, DefinedCommands = unknown>(options: Omit, "token"> & { readonly commands?: DefinedCommands } & ([unknown extends DefinedCommands ? never : DefinedCommands extends unknown ? Exclude, "token"> : Omit, "token" | "commands"> & { readonly commands?: DefinedCommands }`: Define a bot's runBot options without its token, so a module can export them for both runBot and createTestBot from the testing entry point #### function runBot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#runbot - `runBot> = Readonly> | undefined>>, G extends Readonly> = { … }>(options: BotOptions): ResultAsync`: Start a bot from event handlers and prefix commands, and watch its connection and subscriptions #### interface BotApplication Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#botapplication Application details returned by application.fetch for this client's bot token - `botPublic: boolean`: Whether Fluxer currently permits non-owners to install this bot - `botRequireCodeGrant: boolean`: Whether Fluxer currently requires its OAuth2 code-grant flow for this bot - `description: string | null`: Provider's application description, sourced from the bot bio and null when absent - `icon: string | null`: Provider's application icon hash, null when the bot has no avatar - `id: string`: Decimal application ID, suitable for links.installation - `name: string`: Provider application name - `ownerId: string`: Decimal user ID of the account that owns the application, the ID that guards.ownerOnly() allows when called without IDs #### interface BotEventOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#boteventoptions A runBot event handler with its own delivery settings - `handler: BotEventHandler`: Called for each event - `onError?: (report: FailureReport) => unknown`: Receive this handler's failures instead of the client-level onError - `partitionReady?: (key: string, signal: AbortSignal) => unknown`: Hold the events of a partition key until its own setup is done, as the client.on option partitionReady does - Inherits from `HandlerOptions`: `concurrency`, `maxPendingBytes`, `maxPendingMessages`, `overflow`, `partition` #### interface BotOptions> = Readonly>, G extends Readonly> = { … }> Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#botoptions Configure a bot: Client settings, event handlers, prefix commands, optional startup work and stop signals - `commands?: BotCommandsOptions, S, G>`: Prefix commands registered and attached before connecting - `events?: BotEvents>`: Handlers registered before connecting and closed when the bot stops - `ignoreBots?: boolean`: Skip messageCreate and messageUpdate events whose author is a bot, including this bot's own messages, before they reach the events handlers or prefix commands - `setup?: (client: Client>, context: { readonly signal: AbortSignal }) => unknown`: Startup work after events and commands are registered and before the gateway connects, such as extra subscriptions, cache warm-up or scheduled tasks - Inherits from `ClientOptions`: `cache`, `connection`, `gateway`, `instance`, `logging`, `messageFields`, `observe`, `onError`, `rest`, `sharding`, `token`, `transport`, `uploads` - Inherits from `RunBotOptions`: `drainMs`, `processSignals`, `reportFailure`, `signal` #### interface Client Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client/ Use a bot client for messages, community resources, HTTP requests and gateway events - `application: CurrentBotApplication`: Read documented fields for the authenticated bot's application, without owner details or management operations - `attachments: Attachments`: Refresh signed attachment URLs explicitly or download from this instance's discovered media path with byte limits - `auditLogs: AuditLogs`: Read filtered audit pages or bounded entry scans, without retaining an audit cache - `cache: ClientCache`: Enumerate or release locally cached data - `channels: Channels`: Read or change community channels and optionally look up cached channel data - `directMessages: DirectMessages`: Open and manage one-to-one or group conversations, or send a direct message - `discovery: Discovery`: Search the public community directory and manage listings, without joining communities or finding instance endpoints - `emojis: Emojis`: Manage custom emoji and optionally look up their cached metadata - `gateway: GatewayCommands`: Send gateway commands without an SDK method on this client's ready shards - `gatewayLatencyMs: number | null`: The slowest current heartbeat round-trip time in milliseconds across this client's gateway shards - `guilds: Guilds`: Read community data and memberships, or use the optional local community cache - `instance: Instance`: Find this client's instance endpoints and get pure asset and link URL helpers for that instance - `invites: Invites`: Inspect, create, list and revoke invite codes, without using them to join or retaining codes - `lastReceipt: number`: The receipt of the most recently accepted event, as EventContext.receipt numbers events, or 0 before the first - `logging: ClientLogging`: Change the log level and per-category levels while the client runs - `members: Members`: Read, moderate and ban community members and change their assigned roles - `messages: Messages`: Read, send, edit and delete messages, use the optional message cache, or collect future messages and reactions - `permissions: PermissionHelpers`: Calculate permission flags locally or from fresh resource reads, without caching decisions - `presence: Presence`: Set bot status or select member presence updates, restored after gateway reconnects but not stored across process restarts - `rest: RestRequests`: Send requests to Fluxer API routes without an SDK method, through this client's shared request scheduling - `roles: Roles`: Manage community roles or look up roles in an explicitly enabled local cache - `shards: readonly ShardState[]`: Frozen connection state and heartbeat measurements for this client's shards, in configured local ID order - `state: ConnectionState`: Current connection state, controlled by the SDK rather than the consumer - `stickers: Stickers`: Manage custom stickers and optionally look up their cached metadata - `threads: Threads`: Create threads and forum posts, change, list and search threads, and manage thread members - `users: Users`: Fetch public account data or look up an account in the optional local cache - `voice: Voice`: Send typed gateway voice signaling commands (join, leave and state updates) on each community's owning shard, without opening a media connection or retaining a local voice-state cache - `webhooks: Webhooks`: Manage webhooks with the bot's permissions, returning metadata without tokens - `[asyncDispose](): Promise`: Shut down this client and wait for cleanup, as `await using` does at the end of a block - `connect(options?: OperationOptions): ResultAsync`: Connect the gateway and complete when every shard assigned to this client has authenticated and received READY - `diagnostics(): ClientDiagnostics`: Read a frozen local report of active work, queues and cache occupancy - `observeState(listener: (state: ConnectionState) => unknown): StateObserver`: Receive the current connection state, then later state updates - `on>(event: K, handler: (event: EventMap[K], signal: AbortSignal, context: EventContext) => unknown, options?: EventHandlerOptions[K]>): Subscription`: Register a handler for future events of one type, before or after connecting the client - `onMany>(events: readonly [K, ...K[]], handler: (entry: EventEntry, signal: AbortSignal, context: EventContext) => unknown, options?: EventHandlerOptions>): Subscription`: Register one handler for future events of several types on a single shared queue and ordering boundary, before or after connecting the client - `run(options?: OperationOptions): ResultAsync`: Start and maintain a gateway connection for the client's whole lifetime, including transient recovery, until shutdown, permanent failure or cancellation - `schedule(task: (signal: AbortSignal) => unknown, options?: ScheduleOptions): ScheduledTask`: Run a task later, once or repeatedly, as part of this client's lifetime instead of an event handler or command - `shardIdForGuild(guildId: string): number | undefined`: Return the ID of this client's shard that receives a community's gateway events, or undefined when another process owns that shard - `shutdown(options?: ShutdownOptions): ResultAsync`: Permanently close this client and wait for startup, recovery, sockets and request cleanup - `subscribe>(event: K, options?: EventBufferOptions): EventSubscription`: Receive future events of one type in receive order through a bounded buffer - `use(middleware: EventMiddleware): MiddlewareRegistration`: Add event middleware that runs around every later on handler invocation, for every event and subscription, including subscriptions registered before it, command routers and runBot handlers - `waitFor>(event: K, options?: EventWaitOptions): ResultAsync[K], CancelledError | EventWaitFailure>`: Wait for the first future event of one type that passes the supplied synchronous filter - `waitForClose(options?: OperationOptions): ResultAsync`: Wait for this client's final shutdown or permanent connection failure, without starting or owning a connection #### interface CurrentBotApplication Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#currentbotapplication Read the authenticated bot's application identity and public OAuth2 application metadata - `fetch(options?: RequestOptions): ResultAsync`: Fetch this bot token's application data from /oauth2/applications/@me - `fetchPublic(applicationId: string, options?: RequestOptions): ResultAsync`: Fetch public metadata for one OAuth2 application from /oauth2/applications/{applicationId}/public #### interface CustomStatusInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#customstatusinput Text, emoji and optional expiration for the bot's custom status - `emoji?: CustomStatusEmoji`: An explicit custom-emoji ID or one Unicode emoji - `expiresAt?: string`: Future ISO-8601 expiration time - `text?: string`: Status text, from 1 through 128 UTF-16 code units #### interface GatewayBotInfo Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#gatewaybotinfo Gateway connection guidance returned by gateway.fetchBot from GET /gateway/bot - `sessionStartLimit: GatewaySessionStartLimit`: Session start limit values reported by Fluxer - `shards: number`: Recommended shard count for this bot token, at least 1 - `url: string`: WebSocket URL (ws or wss) for connecting to the gateway #### interface GatewayCommands Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#gatewaycommands Read bot gateway guidance from Fluxer and send gateway commands that have no SDK method on this client's ready shards - `fetchBot(options?: RequestOptions): ResultAsync`: Fetch live gateway connection guidance from GET /gateway/bot for this bot token - `send(shardId: number, op: number, d: unknown, options?: OperationOptions): ResultAsync`: Send one command frame { op, d } on a Connected local shard #### interface GatewaySessionStartLimit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#gatewaysessionstartlimit Session start limit values reported by Fluxer's GET /gateway/bot response - `maxConcurrency: number`: Maximum concurrent Identify requests reported by Fluxer - `remaining: number`: Remaining session starts reported for the window - `resetAfterMs: number`: Milliseconds until the reported limit resets - `total: number`: Total session starts reported for the window #### interface Instance Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instance Find the selected Fluxer instance's endpoints and build links and asset URLs for it - `fetchBadges(query?: InstanceBadgeQuery, options?: RequestOptions): ResultAsync`: Read the custom badges that communities on this instance can show, by ID or one page at a time, such as the names and images for a Guild's badgeIds - `resolve(options?: RequestOptions): ResultAsync`: Resolve this client's instance endpoints and its pure link and asset URL helpers #### interface InstanceBadge Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadge One custom badge that communities on the instance can show - `assetUrl: string`: URL of the badge image - `description: string | null`: Text shown under the name, null when the badge has none - `href: string | null`: URL the badge links to, null when it links nowhere - `id: string`: Decimal badge ID, as listed in Guild.badgeIds - `name: string`: Badge name - `position: string`: Display position as a decimal string #### interface InstanceBadgeLookup Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgelookup Look up specific community badges by ID - `after?: undefined`: Not accepted with ids - `ids: readonly string[]`: 1 through 100 decimal badge IDs - `limit?: undefined`: Not accepted with ids #### interface InstanceBadgePage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgepage One frozen page of community badges from client.instance.fetchBadges - `badges: readonly InstanceBadge[]`: The badges in display order - `nextAfter: string | null`: Pass as after to read the next page - `version: string`: Version of the instance's badge list #### interface InstanceBadgePageQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgepagequery Read one page of every community badge on the instance, in display order - `after?: string`: The nextAfter value of the previous page - `ids?: undefined`: Not accepted with pagination options - `limit?: number`: Maximum badges in the page, an integer from 1 through 200, default 100 #### interface InstanceDomainMigration Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancedomainmigration A web domain migration announced by instance discovery, such as hosted Fluxer moving its web app to a new domain - `anonymousRolloutBasisPoints: number | null`: Share of signed-out web visitors moved to the new domain, in basis points from 0 through 10,000, or null when not supplied - `enabled: boolean`: Whether the instance switched the migration on - `standaloneForwarding: boolean | null`: Whether standalone app installs are forwarded to the new domain, or null when not supplied #### interface InstanceEndpoints Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instanceendpoints Where the selected Fluxer instance hosts its services, validated from its discovery document - `apiPublic: string`: Public HTTP API base - `gateway: string`: Gateway WebSocket base - `invite: string`: Invite base for instance-specific invite and vanity URLs - `media: string`: Public media base for instance-specific generated asset URLs - `staticCdn: string`: Static CDN base for instance-specific generated default-asset URLs - `webapp: string`: Web application base for instance-specific generated navigation and installation links #### interface Presence Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#presence Set the bot's displayed status or request updates for selected community members - `set(input: PresenceInput): Result`: Set the bot's requested status and optional custom status, including before connecting - `setMembers(guildId: string, memberIds: readonly string[]): Result`: Request presence updates for selected members in one community #### interface PresenceInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#presenceinput Set the status this bot should publish on its gateway connections - `customStatus?: CustomStatusInput | null`: New custom status, null to clear it, or omission to retain the latest custom-status request made by this client - `status: PresenceStatus`: Visible status to publish on the bot's live gateway connections #### interface PublicApplication Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#publicapplication Public OAuth2 application details returned by application.fetchPublic - `bot: PublicApplicationBot | null`: Public bot user metadata, or null when the application has no bot user - `botPublic: boolean`: Whether Fluxer currently permits non-owners to install this bot - `description: string | null`: Provider application description, or null when absent - `icon: string | null`: Provider application icon hash, or null when absent - `id: string`: Decimal application ID - `name: string`: Provider application name - `redirectUris: readonly string[]`: Registered OAuth2 redirect URIs - `scopes: readonly string[]`: Available OAuth2 scopes #### interface PublicApplicationBot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#publicapplicationbot Public bot account metadata embedded in a public application lookup - `avatar: string | null`: Bot avatar hash, or null when absent - `banner: string | null`: Bot banner hash, or null when absent - `bio: string | null`: Bot bio, or null when absent - `discriminator: string`: Bot discriminator - `flags: number`: Bot user flags bitmask reported by Fluxer - `id: string`: Decimal ID of the bot user - `username: string`: Bot username #### interface ResolvedInstance Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#resolvedinstance The selected server's service addresses and matching URL helpers - `apiCodeVersion: number`: Provider code-version indicator from discovery - `assets: AssetHelpers`: Pure asset URL helpers bound to this instance's media and static-CDN bases - `discoveryEnabled: boolean`: Whether this instance has community directory discovery switched on - `domainMigration: InstanceDomainMigration | null`: The web domain migration that discovery announced, or null when the instance announced none - `endpoints: InstanceEndpoints`: Exact validated service bases from discovery - `links: LinkHelpers`: Pure application-link helpers bound to this instance's web application base - `presignedAttachmentUploads: boolean`: Whether this instance advertises temporary upload URLs for attachment transfers - `proxyAttachmentsThroughApi: boolean`: Whether this instance serves attachment downloads through its authenticated API endpoint instead of public media URLs #### interface RestRequest Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrequest One request to a Fluxer API route that the SDK does not wrap, sent with the client's bot credential through the same queue, rate-limit learning, 429 waits, deadline, logging and cancellation as wrapped operations - `auditReason?: string`: Audit-log reason sent as the X-Audit-Log-Reason header, 1 through 512 UTF-16 code units after U+000C and U+202E removal and trimming, which Fluxer otherwise drops silently - `body?: unknown`: JSON body, serialized when the request starts - `files?: readonly AttachmentInput[]`: Files sent inline as multipart/form-data, with the JSON body as payload_json and each file as files[n] in order - `method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"`: HTTP method - `path: string`: API path after /v1, such as /users/@me, of at most 2,048 characters - `query?: Readonly>`: Query parameters appended to the path in insertion order - `timeoutMs?: number`: Total milliseconds across local queueing, rate-limit waits, retries and HTTP - Inherits from `OperationOptions`: `signal` #### interface RestRequests Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrequests Send requests to Fluxer API routes that the SDK does not wrap, with the client's bot credential and its REST scheduler - `call(route: R, ...input: RestCallArguments>): ResultAsync>, CancelledError | ConfigurationError | RestRequestFailure>`: Send one request to a route of Fluxer's API description, checked at compile time: The route is its method and path template, such as `POST /channels/{channel_id}/messages`, and params, query and body take Fluxer's official field names - `request(input: RestRequest): ResultAsync, CancelledError | ConfigurationError | RestRequestFailure>`: Send one request to a route under /v1 and resolve with its status, lower-case headers and parsed JSON body #### interface RestResponse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restresponse A successful response from client.rest.request, for any 2xx status - `body: T`: The parsed JSON body, or undefined when the response has no body - `headers: Readonly>`: Response headers with lower-case names - `status: number`: HTTP status from 200 through 299 #### interface RestRouteOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrouteoptions Options every client.rest.call accepts beside its route-specific fields, with the same rules as client.rest.request - `auditReason?: string`: Audit-log reason sent as the X-Audit-Log-Reason header, 1 through 512 UTF-16 code units after U+000C and U+202E removal and trimming, which Fluxer otherwise drops silently - `timeoutMs?: number`: Total milliseconds across local queueing, rate-limit waits, retries and HTTP #### interface ScheduleOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#scheduleoptions Choose when client.schedule runs a task, in both entry points - `delayMs?: number`: Milliseconds before the first run, an integer from 0 through 2,147,483,647 - `intervalMs?: number`: Repeat the task, waiting this many milliseconds after each run ends before the next one starts, an integer from 1 through 2,147,483,647 - `name?: string`: Name of the task, 1 through 100 characters without control characters #### interface ScheduledTask Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#scheduledtask A task started with client.schedule - `[dispose](): void`: Cancel later runs, as `using` does at the end of a block - `close(): void`: Cancel every later run #### interface ShutdownOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#shutdownoptions Choose how shutdown treats work that is still running, in both entry points - `drainMs?: number`: Milliseconds to let running work finish before shutdown cancels it, an integer from 0 through 2,147,483,647 #### interface StateObserver Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#stateobserver Stop receiving connection-state updates from client.observeState - `[dispose](): void`: Close this observer, as `using` does at the end of a block - `close(): void`: Stop delivering states and drop a pending one #### interface Voice Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#voice Send typed gateway voice signaling commands on the shard that owns a community - `join(input: VoiceJoinInput, options?: OperationOptions): ResultAsync`: Request joining a community voice channel by sending an opcode 4 Voice State Update on the community's owning shard - `leave(guildId: string, options?: OperationOptions): ResultAsync`: Request leaving voice in a community by sending an opcode 4 Voice State Update with `channel_id: null`, `self_mute: false` and `self_deaf: false` on the community's owning shard - `updateState(input: VoiceStateUpdateInput, options?: OperationOptions): ResultAsync`: Send an opcode 4 Voice State Update on the community's owning shard to join, move, toggle self flags or disconnect #### interface VoiceJoinInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#voicejoininput Input for joining a community voice channel through client.voice.join - `channelId: string`: Target voice channel ID, as a positive decimal ID - `guildId: string`: Community that owns the target voice channel, as a positive decimal ID - `selfDeaf?: boolean`: Whether the bot reports its audio output as self-deafened - `selfMute?: boolean`: Whether the bot reports its microphone as self-muted - `selfStream?: boolean`: Whether the bot advertises a screen-share track on this voice connection - `selfVideo?: boolean`: Whether the bot advertises camera video on this voice connection #### interface VoiceStateUpdateInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#voicestateupdateinput Input for updating, moving or disconnecting the bot's voice state in a community through client.voice.updateState - `channelId: string | null`: Target voice channel ID as a positive decimal string, or null to disconnect - `connectionId?: string`: Existing voice connection ID to update, move or disconnect - `guildId: string`: Community that owns the voice state, as a positive decimal ID - `selfDeaf?: boolean`: Whether the bot reports its audio output as self-deafened - `selfMute?: boolean`: Whether the bot reports its microphone as self-muted - `selfStream?: boolean`: Whether the bot advertises a screen-share track on this voice connection - `selfVideo?: boolean`: Whether the bot advertises camera video on this voice connection #### type BotEventContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#boteventcontext Data and operations available to one configured bot event handler - `{ readonly client: Client; readonly context: EventContext; readonly event: EventMap[K]; readonly signal: AbortSignal } & (K extends "messageCreate" ? { readonly message: M; readonly reply:...` #### type BotEventHandler Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#boteventhandler A runBot event handler - `(context: BotEventContext) => unknown` #### type BotEvents Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#botevents One optional handler per event, as a function or an object with a handler and delivery settings - `{ readonly [K in EventName]?: BotEventHandler | BotEventOptions }` #### type ConnectionState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#connectionstate The client's current gateway connection state, not a history of events - `"Disconnected" | "Connecting" | "Connected" | "Recovering" | "Closing" | "Closed"` #### type CustomStatusEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#customstatusemoji One custom-status emoji - `{ readonly id: string; readonly name?: never } | { readonly id?: never; readonly name: string }` #### type InstanceBadgeQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgequery Select community badges for client.instance.fetchBadges: Either up to 100 badge IDs, such as a Guild's badgeIds, or one page of every community badge on the instance - `InstanceBadgeLookup | InstanceBadgePageQuery` #### type PresenceStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#presencestatus The bot's visible status while connected, with dnd meaning do not disturb - `"online" | "idle" | "dnd" | "invisible"` #### type RestCallArguments Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restcallarguments The arguments after the route in client.rest.call - `{ … } extends RestRouteInput ? [input?: I] : [input: I]` #### type RestCallInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restcallinput The second argument of client.rest.call: The route's fields, the shared options and an optional abort signal - `RestRouteInput & RestRouteOptions & OperationOptions` #### type RestRoute Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restroute A route that client.rest.call accepts, written as its method and path template the way Fluxer's documentation writes them, such as `GET /channels/{channel_id}/messages` - `keyof RestRoutes` #### type RestRouteInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrouteinput The route-specific fields of a client.rest.call for one route, with Fluxer's official names: params for the path parameters, query for the query parameters, body for the JSON body and files where the route accepts message-style attachments - `RestRoutes[R]["input"]` #### type RestRouteResponse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrouteresponse The type of the parsed JSON body of a successful client.rest.call for one route, or undefined for a route Fluxer answers without a body - `RestRoutes[R]["response"]` ### Commands #### variable commands Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commands Route prefixed messages such as !ping to registered handlers - `Commands` #### variable guards Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guards Built-in command guards, namely guildOnly, dmOnly, ownerOnly, guildOwnerOnly, requirePermissions, requireBotPermissions, requireRoles and canManage - `Guards` #### interface BotCommandsOptions> = Readonly>, G extends Readonly> = { … }> Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#botcommandsoptions Prefix commands for runBot: The router options of commands.create, the commands themselves, an optional failure hook and the delivery settings of the router's attach - `commands: PrefixCommandBatch | ((router: PrefixCommandRouter) => PrefixCommandRouter)`: Commands keyed by name, such as `{ ping: { execute: ({ reply }) => reply("Pong") } }`, or a callback that receives the empty router and returns it with registrations, for groups or commands built elsewhere - `onError?: (report: FailureReport) => unknown`: Receive command failures, and the reports of the router's own subscription, instead of the client-level onError, as the router attach option does - `partitionReady?: (key: string, signal: AbortSignal) => unknown`: Hold the commands of a partition key until its own setup is done, as the client.on option partitionReady does for event handlers - Inherits from `PrefixCommandParsing`: `caseSensitive`, `cooldowns`, `ignoreBots`, `mentionPrefix` - Inherits from `HandlerOptions`: `concurrency`, `maxPendingBytes`, `maxPendingMessages`, `overflow`, `partition` - Inherits from `PrefixCommandsOptions`: `onReject`, `onUnmatched`, `parse`, `prefix`, `use` #### interface BuiltInCommandGuard Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#builtincommandguard Built-in command guard compatible with any message selection `M` and carrying optional type-level message narrowing `Narrow` - `BuiltInCommandGuard(context: PrefixCommandContext): PrefixCommandGuardResult | PromiseLike`: Built-in command guard compatible with any message selection `M` and carrying optional type-level message narrowing `Narrow` - `__message?: Narrow`: Type-only marker naming message properties guaranteed when this guard allows execution #### interface CanManageGuardOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#canmanageguardoptions Hierarchy-check and cache settings for `guards.canManage` - `checkActor?: boolean`: Require the invoking member to outrank the target member in community role hierarchy - `checkBot?: boolean`: Require the bot itself to outrank the target member in community role hierarchy - Inherits from `GuardCacheOptions`: `preferCache` #### interface CommandArgumentBoolean Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentboolean Convert only the exact lowercase strings `true` and `false` to booleans, rejecting other spellings and numeric substitutes - `default?: boolean`: Boolean used when the argument is omitted, which makes it optional without adding undefined to its value - `optional?: true`: Set to true to permit omission and return undefined - `type: "boolean"`: Require `true` or `false` and return the corresponding boolean #### interface CommandArgumentChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentchannel Channel data that a `channelChoice` argument can match - `id: string`: Decimal ID string without leading zeroes except `0` itself - `name: string`: Nonempty channel name matched exactly #### interface CommandArgumentChannelSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentchannelselection Select a channel from a fixed list of candidates by decimal ID, complete channel mention or exact name - `candidates: C`: One to 100 channels with decimal IDs and nonempty names, copied to `id` and `name` at registration - `optional?: true`: Set to true to permit omission and return undefined - `type: "channelChoice"`: Resolve the token against these channel candidates only #### interface CommandArgumentChoice Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentchoice Match one of the configured nonempty strings, returning its configured string rather than its list position - `caseInsensitive?: boolean`: Set to true to match tokens without letter case while returning the configured string from `choices` - `choices: C`: One to 100 unique nonempty strings, copied at registration - `default?: NoInfer[number]`: Choice string used when the argument is omitted, which makes it optional without adding undefined to its value - `optional?: true`: Set to true to allow omission and produce undefined - `type: "choice"`: Match the token against the configured strings, returning the canonical choice string #### interface CommandArgumentCustom Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentcustom Convert one token, or the remaining tokens with `rest`, through an application parse function - `default?: T`: Value used when the argument is omitted, which makes it optional without adding undefined to its value - `expected?: string`: Short description of the expected value, such as `a hex color`, used in rejection replies - `optional?: true`: Set to true to produce undefined when omitted - `parse: (token: string) => T | undefined`: Convert the token synchronously, returning undefined for input that should be rejected - `rest?: true`: Set to true to pass the remaining tokens joined with single spaces - `type: "custom"`: Convert with the supplied parse function #### interface CommandArgumentDuration Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentduration Convert a duration such as `90s`, `5m`, `1h30m` or `2d` to whole milliseconds - `default?: number`: Milliseconds used when the argument is omitted, which makes it optional without adding undefined to its value - `max?: number`: Longest accepted duration in milliseconds, inclusive - `min?: number`: Shortest accepted duration in milliseconds, inclusive - `optional?: true`: Set to true to produce undefined when omitted - `type: "duration"`: Produce whole milliseconds, a safe integer, from unit-suffixed duration text - `wholeSeconds?: true`: Set to true to reject a duration with a millisecond part, such as `1m500ms`, for a destination that takes whole seconds, such as a ban's durationMs #### interface CommandArgumentId Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentid Keep a decimal resource ID as a string without losing digits through JavaScript number conversion - `mention?: CommandArgumentMention`: Also accept this mention kind as a complete token - `optional?: true`: Set to true to return undefined when omitted - `type: "id"`: Return the accepted nonzero decimal ID string rather than a number or resource object, trimmed of surrounding whitespace #### interface CommandArgumentInteger Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentinteger Convert a decimal token such as `3` or `-2` to a JavaScript safe integer - `default?: number`: Safe integer used when the argument is omitted, which makes it optional without adding undefined to its value - `max?: number`: Largest accepted value, inclusive - `min?: number`: Smallest accepted value, inclusive - `optional?: true`: Set to true to return undefined when omitted - `type: "integer"`: Require decimal integer syntax and a safe integer result #### interface CommandArgumentMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentmember Select a member of the message's community by complete user mention or decimal user ID, without a roster lookup - `optional?: true`: Set to true to produce undefined when omitted - `type: "member"`: Produce a member reference from a user mention or ID #### interface CommandArgumentMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentmetadata Frozen description of an argument for help generation, without resource candidate data - `caseInsensitive?: true`: True for a `choice` descriptor that matches tokens without letter case - `choices?: readonly string[]`: Frozen accepted strings for a `choice` descriptor - `default?: unknown`: Value used when the argument is omitted, for descriptors that declare one - `expected?: string`: Short description of the expected value for a `custom` descriptor, used in rejection replies - `max?: number`: Inclusive upper bound of an `integer`, `number` or `duration` descriptor, in milliseconds for a duration - `maxLength?: number`: Inclusive maximum length in UTF-16 code units of a `text` descriptor - `mention?: CommandArgumentMention`: Additional mention kind accepted by an `id` descriptor, if configured - `min?: number`: Inclusive lower bound of an `integer`, `number` or `duration` descriptor, in milliseconds for a duration - `minLength?: number`: Inclusive minimum length in UTF-16 code units of a `text` descriptor - `name: string`: Schema property name, which also names its converted value - `optional: boolean`: True when the argument can be omitted, producing undefined or its default instead of an error - `rest: boolean`: True when this final text or custom argument takes all remaining tokens, joined with spaces - `type: CommandArgumentType`: Conversion applied to this positional token, such as `integer` or `member` - `wholeSeconds?: true`: True for a `duration` descriptor that rejects a millisecond part #### interface CommandArgumentNumber Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentnumber Convert decimal text such as `1.25`, `-2` or `3e2` to a finite JavaScript number - `default?: number`: Finite number used when the argument is omitted, which makes it optional without adding undefined to its value - `max?: number`: Largest accepted value, inclusive - `min?: number`: Smallest accepted value, inclusive - `optional?: true`: Set to true to produce undefined when omitted - `type: "number"`: Accept decimal and exponent syntax when conversion produces a finite number #### interface CommandArgumentParseOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentparseoptions Settings for `commands.parseArgument` that a message would otherwise supply - `guildId?: string`: Community ID that a `member` descriptor puts in its reference, normally the message's `guildId` #### interface CommandArgumentRole Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentrole Role data that a `roleChoice` argument can match - `id: string`: Decimal ID string without leading zeroes except `0` itself - `name: string`: Nonempty role name matched exactly #### interface CommandArgumentRoleSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentroleselection Select a role from a fixed list of candidates by decimal ID, complete role mention or exact name - `candidates: C`: One to 100 roles with decimal IDs and nonempty names - `optional?: true`: Set to true to allow omission and return undefined, rather than selecting any role implicitly - `type: "roleChoice"`: Resolve the token against these role candidates only, without a permission or hierarchy check #### interface CommandArgumentText Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumenttext Keep one nonempty parsed token as a string, or join the remaining tokens when `rest` is true - `default?: string`: String used when the argument is omitted, which makes it optional without adding undefined to its value - `maxLength?: number`: Maximum accepted string length in UTF-16 code units, inclusive, a nonnegative safe integer - `minLength?: number`: Minimum accepted string length in UTF-16 code units, inclusive, a nonnegative safe integer - `optional?: true`: Set to true to produce undefined when no token remains - `rest?: true`: Set to true to join remaining tokens with single spaces - `type: "text"`: Keep parsed text without numeric or resource conversion #### interface CommandArgumentUser Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentuser User data that a `userChoice` argument can match - `id: string`: Decimal ID string, either `0` or digits beginning with a nonzero digit - `username: string`: Nonempty username matched exactly, including case #### interface CommandArgumentUserSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentuserselection Select a user from a fixed list of candidates by decimal ID, complete user mention or exact username - `candidates: C`: One to 100 users with nonempty usernames and decimal IDs - `optional?: true`: Set to true to return undefined when omitted, without choosing a default candidate - `type: "userChoice"`: Resolve a token against these user candidates only #### interface CommandContextHelpOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcontexthelpoptions Choose help pages for the `help` function of a command context - `command?: string | readonly string[]`: Choose one executable command for focused help, by name, alias or path such as `"deploy"`, `"admin inspect"` or `["admin", "inspect"]` - `group?: readonly string[]`: Registered names of the group to describe, such as `["admin"]` - `include?: (command: PrefixCommandMetadata) => boolean`: Return false to leave an entry out, as in `router.help` - `maxLength?: number`: Maximum page length in UTF-16 code units, a positive safe integer, default 2,000 - `prefix?: string`: Prefix to display, default the prefix that matched the invoking message, such as `!` #### interface CommandCooldownRequest Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcooldownrequest Request to reserve a cooldown after successful guard and argument conversion, before command execution - `durationMs: number`: Whole milliseconds to reserve, from 1 through 2,147,483,647 - `key: string`: Nonempty key combining command identity with the configured key suffix #### interface CommandHelpOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandhelpoptions Choose the text prefix, page length and visible entries for `router.help` - `command?: string | readonly string[]`: Choose one executable command for focused help, by name, alias or path such as `"deploy"`, `"admin inspect"` or `["admin", "inspect"]` - `group?: readonly string[]`: Choose a group by its registered names, not aliases, such as `["admin"]` - `include?: (command: PrefixCommandMetadata) => boolean`: Return true to show an entry or false to exclude it, for example `(entry) => entry.name !== "internal"` - `maxLength: number`: Required maximum page length, measured in UTF-16 code units - `prefix: string`: Nonempty well-formed prefix to display, such as `!` #### interface Commands Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commands-1 Recognize message commands such as `!repeat hello` with the default API's optional `commands` tools - `create(options: PrefixCommandsOptions): PrefixCommandRouter`: Create an empty router, for example `commands.create({ prefix: "!", parse: commands.parseQuoted })` - `memoryCooldowns(options?: MemoryCooldownOptions): MemoryCooldownStore`: Create an empty in-memory cooldown store with a default limit of 10,000 keys, to share one store between routers - `parseArgument | CommandArgumentUserSelection(token: string | undefined, descriptor: D, options?: CommandArgumentParseOptions): CommandArgumentValue | undefined`: Convert one token with a built-in argument descriptor, such as `commands.parseArgument("30m", { type: "duration" })`, which returns `1_800_000` - `parseQuoted(input: PrefixCommandParseInput): PrefixCommandParse | PrefixCommandParseRejection | undefined`: Split a suffix using single or double quotes and backslash escapes, retaining original argument text in `rawArgs` - `suggest(name: string, candidates: Iterable): string | undefined`: Name the candidate closest to a misspelled name, such as `commands.suggest("pnig", ["ping", "help"])`, which returns `"ping"` #### interface CooldownStore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#cooldownstore Storage that reserves a command cooldown and reports whether this invocation may execute - `claim(input: CommandCooldownRequest): CommandCooldownClaim | PromiseLike`: Reserve `input.key` for `input.durationMs` and return a claim immediately or through a promise #### interface GuardCacheOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guardcacheoptions Cache preference shared by built-in command guards that read community, member or permission state - `preferCache?: boolean`: Read enabled caches before fetching missing observations remotely #### interface Guards Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guards-1 Built-in command guards for the most common access rules - `canManage(argumentName: K, options?: CanManageGuardOptions): CanManageGuard`: Allow the command in `afterParse` only when the role hierarchy permits managing the parsed `member` argument named `argumentName` - `dmOnly(): BuiltInCommandGuard`: Allow the command only in a confirmed one-to-one or group conversation, and deny every other message - `guildOnly(): BuiltInCommandGuard`: Allow the command only for a message that carries its community's guildId, and deny every other message without a request - `guildOwnerOnly(options?: GuardCacheOptions): BuiltInCommandGuard`: Allow the command only when the invoking user is the community's owner (`guild.ownerId === message.author.id`), and deny it in direct messages - `ownerOnly(): BuiltInCommandGuard`: Allow the command only for the owner of the bot's application, as Fluxer reports it - `ownerOnly(ownerIds: string | readonly string[]): BuiltInCommandGuard`: Allow the command only for the given decimal user IDs, such as the bot owner's - `requireBotPermissions(names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "..., options?: GuardCacheOptions): BuiltInCommandGuard`: Allow the command only when the bot itself has every named permission in the message's channel, and deny it in direct messages - `requirePermissions(names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "..., options?: GuardCacheOptions): BuiltInCommandGuard`: Allow the command only when the invoking member has every named permission in the message's channel, and deny it in direct messages - `requireRoles(roleIds: readonly string[], options?: RequireRolesOptions): BuiltInCommandGuard`: Allow the command only when the invoking member holds required community roles, and deny it in direct messages #### interface GuildMessageRefinement Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guildmessagerefinement Message-field narrowing attached to built-in community guards so `context.message.guildId` narrows to `string` - `guildId: string`: Community ID guaranteed present after a community guard allows the command #### interface MemoryCooldownOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#memorycooldownoptions Limit the cooldown keys held by one memory store in one process - `maxEntries?: number`: Positive safe integer key limit, defaulting to 10,000 #### interface MemoryCooldownStore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#memorycooldownstore Cooldown reservations kept in one memory store, up to that store's configured key limit - `maxEntries: number`: Maximum keys this store retains, fixed at creation - `size: number`: Current stored-key count - `claim(input: CommandCooldownRequest): CommandCooldownClaim`: Atomically reserve the requested key, or report its active cooldown - `clear(): void`: Forget this store's reservations immediately, allowing new claims - `sweep(): number`: Remove keys expired according to `Date.now()` and return the number removed, without changing active reservations #### interface PrefixCommand Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommand A command name and the application callback that handles it - `afterParse?: PrefixCommandAfterParseGuard | readonly PrefixCommandAfterParseGuard[]`: One post-parse guard or a list of post-parse guards, run in order after argument conversion and before cooldown claims - `arguments?: S`: Named positional conversions, read in property order - `cooldown?: PrefixCommandCooldown`: Optional reservation required after the guards, arguments and post-parse guards succeed - `execute: (context: NarrowedCommandContext, M, G>) => unknown`: Perform application work after the command is allowed and all arguments convert - `guard?: PrefixCommandGuard | readonly PrefixCommandGuard[]`: One guard or a list of guards, run in order before argument conversion - `onReject?: PrefixCommandRejectionFeedback`: Feedback after a denied guard, rejected arguments or a denied cooldown claim, overriding the router's `onReject` - Inherits from `PrefixCommandDefinition`: `aliases`, `description`, `hidden`, `name`, `usage` #### interface PrefixCommandContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandcontext Frozen command information copied for a matched message and passed to its guards, middleware and rejection callback - `args: readonly string[]`: Parsed string tokens copied to a frozen array, unchanged by subsequent argument conversion - `client: Client`: Client supplied to `attach`, available for explicit operations - `confirm: (input: string | MessageInput | MessageBuilder, options?: ConfirmOptions) => ResultAsync, CancelledError | ConfirmFailure>`: Send a confirmation prompt in this message's channel and wait for the command's author to confirm or cancel with reactions, such as `({ confirm }) => confirm("Reset settings?")` - `help: (options?: CommandContextHelpOptions) => readonly string[]`: Build help pages from the router that matched this command, for example `({ help, reply }) => reply(help()[0] ?? - `message: M`: Incoming frozen message with this client's selected fields - `name: string`: Registered command name, even when the message used an alias or different letter case - `paginate: (pages: readonly PageInput[], options?: PaginateOptions) => ResultAsync, CancelledError | PaginateFailure>`: Show several pages in this message's channel that the command's author flips with ◀ and ▶ reactions, such as `({ paginate }) => paginate(["First", "Second"])` - `path?: readonly string[]`: Frozen registered names through this command, such as `["admin", "inspect"]` - `prefix: string`: Prefix that matched this message, such as `!`, `!!` or the bot mention when mentionPrefix is enabled - `rawArgs: string`: Argument text from the parser - `reply: (input: string | ReplyInput | MessageBuilder, options?: Omit) => ResultAsync`: Reply to the incoming message through the attached client, with this handler's cancellation signal already applied - `sendHelp: (options?: CommandContextHelpOptions) => ResultAsync, CancelledError | PaginateFailure>`: Send this router's help in this message's channel, such as `({ sendHelp }) => sendHelp()` - `signal: AbortSignal`: Subscription cancellation signal for operations that support it #### interface PrefixCommandCooldown Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandcooldown Limit how often a known command executes, per user by default - `durationMs: number`: Whole milliseconds per reservation, from 1 through 2,147,483,647 - `key?: (context: NarrowedCommandContext, M, G>) => string`: Return a nonempty key suffix from the converted execution context, replacing the one selected by `per` - `per?: CommandCooldownPer`: Whose invocations share the cooldown: `user` (default), `channel` or `guild` - `store?: CooldownStore`: Store whose `claim` performs the reservation #### interface PrefixCommandDefinition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommanddefinition Names, help text and positional arguments for a command such as `!repeat hello 3` - `aliases?: readonly string[]`: Other names that run the same command, such as `r` - `arguments?: Readonly>`: Named argument descriptors read in property order after the guard allows execution - `description?: string`: Text placed below the invocation in generated help - `hidden?: boolean`: Leave this command out of generated help and unknown-name suggestions, for example for owner-only tools - `name: string`: Name without the prefix, such as `repeat`, beginning with an ASCII letter or digit and using only ASCII letters, digits, `_` or `-` - `usage?: string`: Help text after the command name, such as ` ` #### interface PrefixCommandExecutionContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandexecutioncontext Matched-command context plus fully converted argument values, supplied to post-parse guards, execution and cooldown-key callbacks - `values: CommandArgumentValues`: Frozen values keyed by schema names, such as `values.count` - Inherits from `PrefixCommandContext`: `args`, `client`, `confirm`, `help`, `message`, `name`, `paginate`, `path`, `prefix`, `rawArgs`, `reply`, `sendHelp`, `signal` #### interface PrefixCommandGroupDefinition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandgroupdefinition A named parent for commands, such as `admin` in `!admin inspect` - `aliases?: readonly string[]`: Alternative names for entering this group, matched with the router's `caseSensitive` setting - `description?: string`: Description shown below this group's help entry, without markup escaping or automatic delivery - `hidden?: boolean`: Leave this group and everything inside it out of generated help and unknown-name suggestions - `name: string`: Group name using command-name syntax #### interface PrefixCommandGroupMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandgroupmetadata Frozen group information copied at registration, including its registered-name path for adding children or selecting help - `kind: "group"`: Distinguishes this non-executable group from a command in help visibility callbacks - `path: readonly string[]`: Registered names from the outermost group to this one, such as `["admin", "users"]`, even if the message used aliases - Inherits from `PrefixCommandGroupDefinition`: `aliases`, `description`, `hidden`, `name` #### interface PrefixCommandGuard Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandguard Decide whether a matched command may run, from raw context before argument conversion - `PrefixCommandGuard(context: PrefixCommandContext): PrefixCommandGuardResult | PromiseLike`: Decide whether a matched command may run, from raw context before argument conversion - `__message?: Narrow`: Type-only marker naming message properties guaranteed when this guard allows execution #### interface PrefixCommandMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandmetadata Frozen command information for inspection and help generation - `arguments?: readonly CommandArgumentMetadata[]`: Frozen argument descriptions used to generate usage text, without candidate objects - `kind?: "group"`: Present for groups supplied to help visibility callbacks - `path?: readonly string[]`: Registered names from the outer group through this entry, such as `["admin", "inspect"]` - Inherits from `PrefixCommandDefinition`: `aliases`, `description`, `hidden`, `name`, `usage` #### interface PrefixCommandParse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparse Parser result copied and frozen by the router before command callbacks run - `args: readonly string[]`: Positional string tokens in input order, without array holes - `name: string`: Command name or alias using command-name syntax in the selected parent - `rawArgs: string`: Argument text retained for callbacks #### interface PrefixCommandParseInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparseinput Frozen input given to a custom parser after prefix matching and any group lookup - `message: M`: Incoming message with the attached client's selected fields - `path?: readonly string[]`: Registered parent group names already selected - `prefix: string`: Matched prefix as written, such as `!!` when both `!` and `!!` match - `source: string`: Text after the prefix at root, or after consumed group names and their separator whitespace #### interface PrefixCommandParseRejection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparserejection A parser result that reports a syntax mistake in text that was meant as a command, such as a quote that never closes - `name?: string`: The command name the parser read before the mistake, in command-name syntax, which `onUnmatched` receives as `name` so a reply can say which command the mistake was for - `reason: string`: Nonempty explanation, such as `A double quote was opened but never closed` #### interface PrefixCommandParsing Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparsing Parsing and cooldown settings shared by both API styles, apart from the prefix, which each API resolves in its own way - `caseSensitive?: boolean`: Require matching letter case for command and group names and aliases - `cooldowns?: MemoryCooldownOptions`: Size the router's own memory cooldown store, used by commands whose cooldown supplies no `store`, such as `{ maxEntries: 50_000 }` - `ignoreBots?: boolean`: Skip messages whose author has `isBot` set, before prefix resolution - `mentionPrefix?: boolean`: Also accept a mention of the bot, such as `@bot ping`, as a prefix - `parse?: (input: PrefixCommandParseInput) => PrefixCommandParse | PrefixCommandParseRejection | undefined`: Split the command name and arguments, optionally using `commands.parseQuoted` for quoted words #### interface PrefixCommandRegistrationOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandregistrationoptions Choose the existing parent group for a new command or child group - `group?: readonly string[]`: Registered parent names, not aliases, such as `["admin", "users"]` #### interface PrefixCommandRouter Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandrouter Immutable registered commands and groups that can be attached to a client - `__message?: (message: M) => void`: Type-only variance marker requiring a compatible message shape when this router is assigned or attached - `commands: readonly PrefixCommandMetadata[]`: Frozen command descriptions in registration order across groups, without callbacks or resource candidates - `groups: readonly PrefixCommandGroupMetadata[]`: Frozen groups in registration order, including empty groups - `attach(client: Client, options?: EventHandlerOptions): Subscription`: Subscribe this router to `messageCreate` through the client's existing bounded event system - `help(options: CommandHelpOptions): readonly string[]`: Build frozen help-text pages locally, for example `router.help({ prefix: "!", maxLength: 2000 })` - `register> = { … }, G extends PrefixCommandGuard | readonly PrefixCommandGuard[] = PrefixCommandGuard | readonly PrefixCommandGuard[]>(command: Omit, "guard"> & { readonly guard?: G }, options?: PrefixCommandRegistrationOptions): PrefixCommandRouter`: Validate and add one executable command to a new router, at root unless `options.group` selects an existing parent by registered names - `registerGroup(group: PrefixCommandGroupDefinition, options?: PrefixCommandRegistrationOptions): PrefixCommandRouter`: Add a named group to a new router, at root or beneath an existing `options.group` path of registered names - `registerMany>, G extends Readonly> = { … }>(commands: PrefixCommandBatch, options?: PrefixCommandRegistrationOptions): PrefixCommandRouter`: Validate and add a nonempty object of commands to one new router, in the order of its own enumerable string keys and under the same optional parent group #### interface PrefixCommandUnmatchedContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandunmatchedcontext Frozen message and matched prefix for `onUnmatched`, when parsing or lookup did not select an executable command - `client: Client`: Attached client available for explicit feedback - `message: M`: Incoming frozen message with the attached client's selected fields only - `prefix: string`: Exact prefix selected before parsing declined, name lookup missed or a group needed a subcommand - `reply: (input: string | ReplyInput | MessageBuilder, options?: Omit) => ResultAsync`: Reply to the unmatched incoming message through the attached client, with this callback's cancellation signal already applied - `signal: AbortSignal`: Cancellation signal for cooperative feedback work #### interface PrefixCommandsOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandsoptions Configure how an attached router recognizes command messages, without connecting or subscribing during construction - `onReject?: PrefixCommandRejectionFeedback`: Rejection feedback for commands that do not set their own `onReject` - `onUnmatched?: (context: PrefixCommandUnmatchedContext, unmatched: PrefixCommandUnmatched) => unknown`: Handle parser declines, unknown names and groups without a subcommand, optionally sending feedback - `prefix: PrefixCommandPrefix`: Prefix text, accepted-prefix list or per-message resolver, which may return a promise - `use?: readonly PrefixCommandMiddleware[]`: Middleware run around every matched command, in order - Inherits from `PrefixCommandParsing`: `caseSensitive`, `cooldowns`, `ignoreBots`, `mentionPrefix`, `parse` #### interface RequireRolesOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#requirerolesoptions Role-matching and cache settings for `guards.requireRoles` - `mode?: "any" | "all"`: Whether the invoking member needs at least one listed role (`"any"`, default) or every listed role (`"all"`) - Inherits from `GuardCacheOptions`: `preferCache` #### type CanManageGuard Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#canmanageguard Post-parse command guard returned by `guards.canManage` that checks community role hierarchy against a parsed `member` argument named `K` - `(context: PrefixCommandContext & { readonly values: Readonly> }) => Promise` #### type CommandArgumentDescriptor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentdescriptor One argument's conversion settings, selected by its `type` field and validated when the command is registered - `CommandArgumentText | CommandArgumentInteger | CommandArgumentNumber | CommandArgumentBoolean | CommandArgumentId | CommandArgumentChoice | CommandArgumentUserSelection | CommandArgumentChannelSelecti...` #### type CommandArgumentMention Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentmention Additional complete-token mention form accepted by an `id` descriptor - `"user" | "channel" | "role"` #### type CommandArgumentOptionalValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentoptionalvalue The converted value type V, with undefined added when descriptor D sets `optional: true` without a `default` - `D extends { readonly default: NonNullable | null } ? V : D extends { readonly optional: true } ? V | undefined : V` #### type CommandArgumentRejectionReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentrejectionreason Argument rejection classification without the rejected token - `"Missing" | "Invalid" | "Ambiguous" | "Unexpected"` #### type CommandArgumentSchema Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentschema Describe positional arguments by name, such as `{ text: { type: "text" }, count: { type: "integer" } }` - `Readonly>` #### type CommandArgumentType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumenttype Supported positional conversions, performed locally after the guard allows the command - `"text" | "integer" | "number" | "boolean" | "id" | "userChoice" | "channelChoice" | "roleChoice" | "choice" | "member" | "duration" | "custom"` #### type CommandArgumentValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentvalue TypeScript result type for one descriptor, including undefined when `optional: true` is selected without a `default` - `D extends CommandArgumentText ? CommandArgumentOptionalValue : D extends CommandArgumentInteger | CommandArgumentNumber ? CommandArgumentOptionalValue : D extends CommandArgument...` #### type CommandArgumentValues Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentvalues Frozen converted values keyed by the command's argument names, such as `values.count` - `{ readonly [K in keyof S]: CommandArgumentValue }` #### type CommandCooldownClaim Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcooldownclaim Outcome of reserving a cooldown, selected by `_tag` - `{ readonly _tag: "CooldownAcquired"; readonly retryAtMs: number } | { readonly _tag: "CooldownActive"; readonly retryAtMs: number }` #### type CommandCooldownPer Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcooldownper Whose invocations share one cooldown: The invoking user, the channel, or the guild - `"user" | "channel" | "guild"` #### type GuardMessageRefinement Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guardmessagerefinement Extract the message narrowing contributed by a guard or a tuple of guards - `0 extends 1 & G ? unknown : [G] extends [never] ? unknown : G extends readonly unknown[] ? number extends G["length"] ? unknown : G extends readonly [infer Head, ...infer Tail] ? GuardMessageRefinemen...` #### type GuildMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guildmessage Message narrowed to a community message whose `guildId` is present - `M & GuildMessageRefinement` #### type NarrowedCommandContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#narrowedcommandcontext Narrow a command context's `message` property using a guard refinement `G`, leaving the context type unchanged when no guard narrows it - `NoInfer> extends infer Refinement ? [unknown] extends [Refinement] ? Context : [Refinement] extends [never] ? Context : Context & { readonly message: M & Refinement } : Conte...` #### type NarrowedMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#narrowedmessage Apply a guard refinement `G` to a message type `M`, leaving `M` unchanged when no guard narrows it - `NoInfer> extends infer Refinement ? [unknown] extends [Refinement] ? M : [Refinement] extends [never] ? M : M & Refinement : M` #### type PrefixCommandAfterParseGuard Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandafterparseguard Decide whether a matched command may run after argument conversion, from the converted execution context - `(context: NarrowedCommandContext, M, G>) => PrefixCommandGuardResult | PromiseLike` #### type PrefixCommandBatch>, G extends Readonly> = { … }> Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandbatch Commands keyed by name, as registerMany and the runBot commands option accept them - `{ readonly [K in keyof S]: Omit, "name" | "arguments"> & { readonly arguments?: { readonly [A in keyof S[K]]: S[K][A...` #### type PrefixCommandGuardResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandguardresult A guard's decision: `true` allows the command, `false` denies it without an automatic reply, and `{ deny }` denies it with a reason that `onReject: "reply"` sends to the user - `boolean | { readonly deny: string }` #### type PrefixCommandMiddleware Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandmiddleware Run around every matched command of a router, in registration order, before its guards - `(context: PrefixCommandContext, next: () => Promise) => unknown` #### type PrefixCommandPrefix Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandprefix Text that starts a command invocation, such as `!`, or a list of accepted prefixes - `string | readonly string[] | ((message: M) => PrefixCommandPrefixValue | PromiseLike)` #### type PrefixCommandPrefixValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandprefixvalue Prefix text selected for one message: One prefix, a list of accepted prefixes, or undefined to ignore the message - `string | readonly string[] | undefined` #### type PrefixCommandRejection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandrejection Why a known command did not execute, passed as a frozen value to its optional `onReject` callback - `{ readonly _tag: "CommandGuardRejected"; readonly reason?: string } | { readonly _tag: "CommandCooldownActive"; readonly retryAtMs: number } | { readonly _tag: "CommandArgumentRejected"; readonly argu...` #### type PrefixCommandRejectionFeedback Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandrejectionfeedback Rejection feedback for a command: `"reply"` sends a short explanation, such as the missing argument and the command's usage, the guard's deny reason or the cooldown's remaining time - `"reply" | "silent" | ((context: PrefixCommandContext, rejection: PrefixCommandRejection) => unknown)` #### type PrefixCommandUnmatched Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandunmatched A prefix matched but no executable command was selected - `{ readonly _tag: "CommandUnknownName"; readonly name: string; readonly path?: readonly string[]; readonly suggestion?: string } | { readonly _tag: "CommandParserRejected"; readonly name?: string; read...` ### Emoji and Stickers #### interface EmojiCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#emojicreate Upload an image as a named custom community emoji for messages and reactions - `image: string`: Base64 image data or a data URI - `name: string`: 2–32 ASCII letters, digits or underscores after U+000C and U+202E removal and surrounding-whitespace trimming #### interface EmojiEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#emojiedit Rename an emoji without replacing its image - `name: string`: Replacement name, 2–32 ASCII letters, digits or underscores after U+000C and U+202E removal and surrounding-whitespace trimming #### interface Emojis Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#emojis Create, list, copy, rename and delete community emoji - `clone(guildId: string, sourceId: string, options?: AuditedRequestOptions): ResultAsync`: Copy an emoji into a community by its source ID, using Fluxer's server-side copy - `create(guildId: string, input: EmojiCreate, options?: AuditedRequestOptions): ResultAsync`: Upload one community emoji and return its metadata - `createMany(guildId: string, input: readonly EmojiCreate[], options?: AuditedRequestOptions): ResultAsync, CancelledError | ConfigurationError | GuildOperationFailure>`: Upload 1–50 community emojis in one batch and return separate successes and failures - `delete(target: ExpressionReference, options?: ExpressionDeleteOptions): ResultAsync`: Remove an emoji, succeeding with no value after HTTP 204 - `edit(target: ExpressionReference, input: EmojiEdit, options?: AuditedRequestOptions): ResultAsync`: Rename a community emoji without changing its image or fetching its old metadata first - `fetchAll(guildId: string, options?: RequestOptions): ResultAsync`: Fetch a community's emoji list in Fluxer's order, without pagination - `fetchMetadata(id: string, options?: RequestOptions): ResultAsync`: Fetch minimal emoji metadata by decimal ID, without requiring source-community membership - `fetchSource(id: string, options?: RequestOptions): ResultAsync`: Fetch the public presentation of the community that owns a custom emoji with this decimal ID: Its ID, name, icon hash and badges - `get(target: ExpressionReference): GuildEmoji | undefined`: Look up cached emoji metadata using decimal guildId and id, without an HTTP request #### interface ExpressionBatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionbatch Results of creating emoji or stickers in one batch request - `failed: readonly { readonly name: string; readonly providerMessage?: string }[]`: Failed names in provider order - `success: readonly A[]`: Created resources #### interface ExpressionMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionmetadata Public name and animation information returned by fetchMetadata without requiring source-community membership - `allowCloning: boolean`: Provider's current cloning hint, not authorization or a guarantee that a later clone will succeed - Inherits from `GuildEmoji`: `animated`, `creatorId`, `guildId`, `id`, `name` #### interface ExpressionReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionreference Address a custom emoji or sticker by its owning community and resource ID - `guildId: string`: Owning guild ID - `id: string`: Emoji or sticker ID #### interface ExpressionSourceGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionsourceguild Public presentation of the community that owns a custom emoji or sticker, returned by fetchSource - `features: readonly string[]`: Badge features in provider order - `icon: string | null`: Icon hash of the source community, or null when it has no icon - `id: string`: Source guild ID as a decimal string - `name: string`: Source community name at the time of the read #### interface GuildEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#guildemoji A community's custom emoji identity, name and animation flag, and the uploader's user ID when Fluxer sent it - `animated: boolean`: Whether the image is animated - `creatorId?: string`: User ID of the account that uploaded it, from list reads such as emojis.fetchAll and stickers.fetchAll - `name: string`: Emoji name - Inherits from `ExpressionReference`: `guildId`, `id` #### interface GuildSticker Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#guildsticker A community's custom sticker identity and display metadata, including its description and suggestion tags - `description: string`: Provider description, including empty text - `tags: readonly string[]`: Frozen suggestion tags in provider order - Inherits from `GuildEmoji`: `animated`, `creatorId`, `guildId`, `id`, `name` #### interface StickerCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#stickercreate Upload a named custom sticker with optional description and suggestion tags - `description?: string | null`: Omitted, null or an empty string means no description, as Fluxer reads an empty string as null here, and the SDK sends null for it - `image: string`: Base64 image data or a data URI, checked as for EmojiCreate.image - `name: string`: Sticker name, 2–30 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `tags?: readonly string[]`: Up to ten tags of 1–30 normalized UTF-16 code units each #### interface StickerEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#stickeredit Replace sticker metadata without reading or merging remote state - `description: string | null`: Required replacement description, 1–500 normalized UTF-16 code units - `name: string`: Required replacement name, 2–30 normalized UTF-16 code units - `tags: readonly string[]`: Required replacement list, at most ten tags of 1–30 normalized UTF-16 code units #### interface Stickers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#stickers Create, list, copy, edit and delete community stickers - `clone(guildId: string, sourceId: string, options?: AuditedRequestOptions): ResultAsync`: Copy a sticker into a community by its source ID, using Fluxer's server-side copy - `create(guildId: string, input: StickerCreate, options?: AuditedRequestOptions): ResultAsync`: Upload one community sticker and return its metadata - `createMany(guildId: string, input: readonly StickerCreate[], options?: AuditedRequestOptions): ResultAsync, CancelledError | ConfigurationError | GuildOperationFailure>`: Upload 1–50 community stickers in one batch and return separate successes and failures - `delete(target: ExpressionReference, options?: ExpressionDeleteOptions): ResultAsync`: Remove a sticker, succeeding with no value after HTTP 204 - `edit(target: ExpressionReference, input: StickerEdit, options?: AuditedRequestOptions): ResultAsync`: Replace a sticker's name, description and tags without changing its image or fetching it first - `fetchAll(guildId: string, options?: RequestOptions): ResultAsync`: Fetch a community's sticker list in Fluxer's order, without pagination - `fetchMetadata(id: string, options?: RequestOptions): ResultAsync`: Fetch minimal sticker metadata by decimal ID, without requiring source-community membership - `fetchSource(id: string, options?: RequestOptions): ResultAsync`: Fetch the public presentation of the community that owns a custom sticker with this decimal ID: Its ID, name, icon hash and badges - `get(target: ExpressionReference): GuildSticker | undefined`: Look up cached sticker metadata using decimal guildId and id, without an HTTP request ### Errors #### function describeError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#describeerror - `describeError(error: unknown, options?: DescribeErrorOptions): string`: Describe any error as readable multi-line text: Its name, SDK code, message, suggested fix, safe details and cause chain, with the members of an AggregateError under it #### function orThrow Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#orthrow - `orThrow(result: Result): T`: Return the value of an Ok result, or throw the error of an Err result - `orThrow(result: PromiseLike>): Promise`: Wait for a ResultAsync, or any promise of a Result, and resolve with its value or reject with its error #### variable errors Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#errors Error helpers that classify and match errors through apiCode, isNotFound, isRetryable, retryAfterMs, outcome and match - `ErrorTools` #### class ApplicationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/applicationerror/ An application callback invoked by the SDK failed, threw or rejected - `constructor(source: string, cause: unknown): ApplicationError` - `_tag: "ApplicationError"`: Discriminator for a failure thrown by application code rather than the SDK - `source: string`: Names the application callback that failed, such as runBot setup or keepTyping task - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class AssetUrlError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/asseturlerror/ The SDK could not make an asset URL from the supplied input - `constructor(operation: "assets.avatar" | "assets.userBanner" | "assets.defaultAvatar" | "assets.displayAvatar" | "assets.memberAvatar" | "assets.memberBanner" | "assets.displayMemberAvatar" | "assets.guildIcon" | "assets.gu..., reason: "id" | "target" | "hash" | "options", options?: { readonly cause?: unknown }): AssetUrlError` - `_tag: "AssetUrlError"`: Stable expected-failure discriminator - `operation: "assets.avatar" | "assets.userBanner" | "assets.defaultAvatar" | "assets.displayAvatar" | "assets.memberAvatar" | "assets.memberBanner" | "assets.displayMemberAvatar" | "assets.guildIcon" | "assets.gu...`: Asset helper that rejected the input - `reason: "id" | "target" | "hash" | "options"`: Whether the structural target, decimal ID, asset hash, or transform options were invalid - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class AttachmentDownloadError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/attachmentdownloaderror/ Expected bounded attachment-download failure, without a URL, response body or credential - `constructor(options: { readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly reason: "network" | "input" | "busy" | "response" | "timeout" | "untrustedUrl" | "tooLarge"; readonly stat...): AttachmentDownloadError`: Describe a download failure - `_tag: "AttachmentDownloadError"`: Stable tag for identifying this expected failure - `inputValidation: InputValidationDetail | null`: SDK-owned local input detail, or null for non-input and unattributable failures - `reason: "network" | "input" | "busy" | "response" | "timeout" | "untrustedUrl" | "tooLarge"`: Local validation, untrusted attachment URL, local scheduler saturation, transport, a refused or malformed download response, output limit or deadline - `status: number | null`: HTTP status when a response was received, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class AttachmentRefreshError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/attachmentrefresherror/ The SDK could not refresh one ordered batch of attachment URL strings - `constructor(options: OperationErrorOptions<"attachments.refreshUrls">): AttachmentRefreshError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "AttachmentRefreshError"`: Stable expected-failure discriminator - `apiError: ApiErrorDetail | null`: Reviewed Fluxer rejection detail, or null when no safe classification is available - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: "attachments.refreshUrls"`: Requested operation - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Input validation, local capacity, HTTP 404 or another rejection, transport, response decoding, deadline or rate limit - `retryAfterMs: number | null`: Fluxer's retry delay in milliseconds when usable, otherwise null - `status: number | null`: HTTP status when received, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class AuthenticationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/authenticationerror/ Fluxer rejected the bot token during connection startup or recovery - `constructor(): AuthenticationError` - `_tag: "AuthenticationError"`: Discriminator for identifying a rejected bot credential - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class BotApplicationOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/botapplicationoperationerror/ The SDK could not read bot application details - `constructor(options: OperationErrorOptions): BotApplicationOperationError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "BotApplicationOperationError"`: Stable expected-failure discriminator - `apiError: ApiErrorDetail | null`: Reviewed Fluxer rejection detail, or null when no safe classification is available - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: BotApplicationOperation`: Requested operation - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Input validation, full local capacity, HTTP 404 or another rejection, network failure, invalid response, deadline expiry or rate limit - `retryAfterMs: number | null`: Fluxer's retry delay in milliseconds when usable, otherwise null - `status: number | null`: HTTP status when received, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class CancelledError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/cancellederror/ A default API operation was cancelled through its signal - `constructor(operation?: Operation): CancelledError` - `_tag: "CancelledError"`: Error tag for identifying cancellation in the default API - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class ChannelOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channeloperationerror/ Expected failure when reading or changing community channels, threads and forum tags - `constructor(options: OperationErrorOptions): ChannelOperationError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "ChannelOperationError"`: Stable expected-failure discriminator - `apiError: ApiErrorDetail | null`: Safe classification of why Fluxer rejected the request, or null when the response could not be classified - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: ChannelOperation`: Requested operation - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Failure category, described by [`OperationReason`](/docs/api/js-ts/errors/#operationreason) - `retryAfterMs: number | null`: Usable server-required retry wait in milliseconds, otherwise null - `status: number | null`: HTTP status when available, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class ClientBusyError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/clientbusyerror/ A competing connection operation already owns the client, so this call did not take ownership - `constructor(): ClientBusyError` - `_tag: "ClientBusyError"`: Discriminator for identifying competing connection ownership - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class ClientClosedError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/clientclosederror/ The client is permanently closing or closed, so reconnecting requires a new client - `constructor(options?: { readonly outcome?: OperationOutcome; readonly read?: boolean }): ClientClosedError` - `_tag: "ClientClosedError"`: Discriminator for identifying permanent client closure - `outcome: OperationOutcome | undefined`: Whether the REST request that this closure ended may have reached Fluxer - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class CollectorError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/collectorerror/ Expected collector failure, separate from results that stop at the count, deadline, idle deadline or explicit stop - `constructor(reason: "overflow" | "handler" | "filter" | "notConnected" | "connectionLost", limit?: "maxPendingMessages" | "maxPendingBytes" | "maxBytes" | null, capacity?: number | null, options?: { readonly cause?: unknown }): CollectorError`: Describe a collector failure, optionally identifying the budget and capacity that were exceeded - `_tag: "CollectorError"`: Literal error tag for identifying CollectorError - `capacity: number | null`: Configured budget capacity, measured in queued payloads or UTF-8 JSON bytes, or null for other failures - `limit: "maxPendingMessages" | "maxPendingBytes" | "maxBytes" | null`: Name of the exceeded budget, or null when the failure was not overflow - `reason: "overflow" | "handler" | "filter" | "notConnected" | "connectionLost"`: The reason notConnected means registration lacked a connected gateway scope, connectionLost means that scope later recovered or disconnected - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class ConfigurationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/configurationerror/ A client setting or operation option is invalid before the requested work starts - `constructor(field: "token" | "transport" | "instance" | "messageFields" | "rest" | "uploads" | "logging" | "onError" | "observe" | "gateway" | "cache" | "connection" | "sharding" | "commands" | "signal" | "drainMs" | "c..., message: string, options?: { readonly cause?: unknown; readonly hint?: string }): ConfigurationError` - `_tag: "ConfigurationError"`: Discriminator for narrowing a local configuration failure - `field: "token" | "transport" | "instance" | "messageFields" | "rest" | "uploads" | "logging" | "onError" | "observe" | "gateway" | "cache" | "connection" | "sharding" | "commands" | "signal" | "drainMs" | "c...`: The invalid option or containing object, including unsupported cache keys, without its rejected value - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class ConnectionError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/connectionerror/ Instance discovery or the gateway connection failed - `constructor(phase: "gateway" | "discovery", reason: "network" | "protocol" | "closed", status?: number | null, options?: { readonly cause?: unknown; readonly details?: Readonly>; readonly hint?: string }): ConnectionError` - `_tag: "ConnectionError"`: Discriminator for identifying an expected discovery or gateway connection failure - `phase: "gateway" | "discovery"`: The transport stage that failed - `reason: "network" | "protocol" | "closed"`: Network failure, invalid protocol data, or a closed gateway connection - `status: number | null`: HTTP status during discovery or WebSocket close code at the gateway, including local receive rejection, or null when unavailable - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class ConnectionTimeoutError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/connectiontimeouterror/ Gateway startup or explicit instance discovery exceeded its time budget - `constructor(timeoutMs: number): ConnectionTimeoutError` - `_tag: "ConnectionTimeoutError"`: Discriminator for identifying an expired connection or discovery deadline - `timeoutMs: number`: Connection or discovery budget in milliseconds, not a guarantee of completion before cleanup finishes - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class CountOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/countoperationerror/ A fresh gateway-count call could not return its complete result - `constructor(options: { readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly operation: CountOperation; readonly reason: "input" | "busy" | "response" | "timeout" | "notConnected" | "...): CountOperationError`: Describe a count failure - `_tag: "CountOperationError"`: Fixed name that identifies this error type - `inputValidation: InputValidationDetail | null`: SDK-owned local input detail, or null for non-input failures - `operation: CountOperation`: Requested count operation - `reason: "input" | "busy" | "response" | "timeout" | "notConnected" | "connectionLost"`: Failure category - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class CriticalWorkerStoppedError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/criticalworkerstoppederror/ One of the bot's event or command subscriptions ended while its client was still running - `constructor(workerIndex: number, overflow?: { readonly error: EventOverflowError; readonly event: keyof EventMap }): CriticalWorkerStoppedError` - `_tag: "CriticalWorkerStoppedError"`: Discriminator for a critical subscription that ended while the bot was running - `workerIndex: number`: Zero-based index among the bot's subscriptions: Its event handlers in configuration order, then its command router - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class EventOverflowError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/eventoverflowerror/ An event subscription stopped because unread events exceeded its count or byte limit - `constructor(limit: "messages" | "bytes", capacity: number): EventOverflowError` - `_tag: "EventOverflowError"`: Discriminator for identifying queue overflow in an expected failure result - `capacity: number`: Configured event-payload count when limit is messages, or source-JSON bytes when limit is bytes - `limit: "messages" | "bytes"`: Budget exceeded by the incoming event - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class EventReadBusyError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/eventreadbusyerror/ A second next call tried to read while the same default API pull subscription already had a pending read - `constructor(): EventReadBusyError` - `_tag: "EventReadBusyError"`: Discriminator for identifying an overlapping pending read - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class EventWaitError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/eventwaiterror/ A filtered event wait ended without a match or could not use its synchronous filter - `constructor(reason: "filter" | "timeout", options?: { readonly cause?: unknown }): EventWaitError` - `_tag: "EventWaitError"`: Stable discriminator for a local timeout or synchronous filter failure - `reason: "filter" | "timeout"`: The reason timeout means no matching event was observed before the local deadline - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class FluxerlyError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/fluxerlyerror/ Base class for every error the SDK returns, throws or reports, in both entry points - `constructor(message: string, options: FluxerlyErrorOptions): FluxerlyError` - `_tag: string`: Discriminator that identifies the concrete error class - `code: string`: Stable dotted identifier for this failure, suitable for alerts and metrics - `details: Readonly>`: Frozen safe structured facts about the failure, without credentials or private payloads - `hint: string | undefined`: Actionable next step for a person reading the error, or undefined when the SDK has no suggestion - `toJSON(): FluxerlyErrorJson`: Return a plain JSON-safe summary with tag, code, message, hint, masked details and a summarized cause chain #### class GatewayOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/gatewayoperationerror/ The SDK could not read bot gateway information from Fluxer - `constructor(options: OperationErrorOptions<"gateway.fetchBot">): GatewayOperationError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "GatewayOperationError"`: Stable expected-failure discriminator - `apiError: ApiErrorDetail | null`: Reviewed Fluxer rejection detail, or null when no safe classification is available - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: "gateway.fetchBot"`: Requested operation - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Input validation, full local capacity, HTTP 404 or another rejection, network failure, invalid response, deadline expiry or rate limit - `retryAfterMs: number | null`: Fluxer's retry delay in milliseconds when usable, otherwise null - `status: number | null`: HTTP status when received, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class GatewaySendError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/gatewaysenderror/ Why gateway.send did not hand a command to the shard's connection - `constructor(options: { readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly opcode?: number | null; readonly reason: "input" | "busy" | "reserved" | "notOwned" | "notReady"; readonly...): GatewaySendError`: Describe a command that was not sent - `_tag: "GatewaySendError"`: Stable expected-failure discriminator - `inputValidation: InputValidationDetail | null`: Safe explanation of the invalid argument for reason input, otherwise null - `opcode: number | null`: Requested opcode, or null when the supplied opcode was not a non-negative integer - `reason: "input" | "busy" | "reserved" | "notOwned" | "notReady"`: Why the command was not sent - `shardId: number | null`: Local shard the command was for, or null when the supplied shard ID was not a non-negative integer - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class GuildOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guildoperationerror/ Expected failure from guild, member, role and related resource operations - `constructor(options: OperationErrorOptions): GuildOperationError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "GuildOperationError"`: Stable expected-failure discriminator - `apiError: ApiErrorDetail | null`: Safe classification of why Fluxer rejected the request, or null when the response could not be classified - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: GuildOperation`: Requested operation - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Failure category, described by [`OperationReason`](/docs/api/js-ts/errors/#operationreason) - `retryAfterMs: number | null`: Usable server-required retry wait in milliseconds, otherwise null - `status: number | null`: HTTP status when available, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class HelperError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/helpererror/ A helper could not use its input - `constructor(operation: "format.escapeMarkdown" | "format.userMention" | "format.roleMention" | "format.channelMention" | "format.parseMention" | "format.timestamp" | "format.parseTimestamp" | "format.customEmoji" | "format...., reason: "id" | "link" | "text" | "limit" | "markup" | "time" | "permissionBits" | "color" | "shardCount" | "resource" | "audio", options?: { readonly cause?: unknown }): HelperError` - `_tag: "HelperError"`: Fixed name that identifies this error type - `operation: "format.escapeMarkdown" | "format.userMention" | "format.roleMention" | "format.channelMention" | "format.parseMention" | "format.timestamp" | "format.parseTimestamp" | "format.customEmoji" | "format....`: Helper that rejected the input - `reason: "id" | "link" | "text" | "limit" | "markup" | "time" | "permissionBits" | "color" | "shardCount" | "resource" | "audio"`: Invalid input category, without retaining the rejected value - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class MemberChunkError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/memberchunkerror/ A member stream stopped before it could return every batch - `constructor(options: { readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly reason: "overflow" | "input" | "busy" | "response" | "timeout" | "rateLimit" | "notConnected" | "connectio...): MemberChunkError`: Describe a member-stream failure - `_tag: "MemberChunkError"`: Stable expected-failure discriminator - `inputValidation: InputValidationDetail | null`: SDK-owned local input detail, or null for non-input failures - `operation: "members.iterateChunks"`: Public operation that failed - `reason: "overflow" | "input" | "busy" | "response" | "timeout" | "rateLimit" | "notConnected" | "connectionLost"`: Failure category - `retryAfterMs: number | null`: Milliseconds to wait before the next member request for rateLimit, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class MessageCleanupError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messagecleanuperror/ A cleanup preview or deletion failed, with selected IDs and batch progress where available - `constructor(options: { readonly apiError?: ApiErrorDetail | null; readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly outcome: MessageCleanupOutcome; readonly phase: "cleanup" | "pr...): MessageCleanupError`: Record an expected preview or cleanup failure and the submission knowledge available at that point - `_tag: "MessageCleanupError"`: Literal error tag for identifying MessageCleanupError - `apiError: ApiErrorDetail | null`: Safe Fluxer rejection detail for the failed stage, or null when unavailable - `inputValidation: InputValidationDetail | null`: Safe local validation detail, copied and frozen, or null for other failures - `outcome: MessageCleanupOutcome`: What is known about dispatch at the failed stage, not about the earlier successful batches - `phase: "cleanup" | "preview"`: Which stage failed - `reason: MessageCleanupErrorReason`: Expected failure classification - `retryAfterMs: number | null`: Fluxer's retry delay in milliseconds, or null - `scannedCount: number`: Messages inspected before preview failed, or the completed preview's scan count when cleanup failed - `selectedMessageIds: readonly string[]`: Selected message IDs known at failure time, without message bodies or filter details - `status: number | null`: HTTP status at the failed stage, or null when unavailable - `submittedBatches: readonly MessageCleanupBatch[]`: Earlier batch requests with successful HTTP responses, not confirmed individual deletions - `terminalBatchIds: readonly string[] | null`: Failed or uncertain batch's IDs when a batch request was reached, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class MessageError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messageerror/ A send, reply or forward ended without confirming that Fluxer created the message - `constructor(options: { readonly apiError?: ApiErrorDetail | null; readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly outcome: OperationOutcome; readonly providerCode?: string | nul...): MessageError`: Create a send failure from its reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "MessageError"`: Discriminator for identifying expected message-creation failures - `apiError: ApiErrorDetail | null`: Reviewed Fluxer rejection detail, or null when no safe classification is available - `inputValidation: InputValidationDetail | null`: Safe local validation facts when the SDK can identify a failed input rule, otherwise null - `outcome: OperationOutcome`: Whether the message may have been created, using the same vocabulary as other operation errors - `reason: "rejected" | "network" | "input" | "busy" | "response" | "timeout" | "rateLimit"`: Failure category, described by [`OperationReason`](/docs/api/js-ts/errors/#operationreason) - `retryAfterMs: number | null`: Server-required wait in milliseconds when usable, otherwise null - `status: number | null`: HTTP status when received, or null for local failures and missing responses - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class MessageOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messageoperationerror/ A message lookup, read or change failed - `constructor(options: OperationErrorOptions<"search" | "edit" | "fetch" | "delete" | "typing" | "publish" | "fetchCrosspostSource" | "messages.get" | "fetchHistory" | "fetchReactionUsers" | "fetchHasReaction" | "pin" | "un...): MessageOperationError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "MessageOperationError"`: Stable discriminator for expected message-management failures - `apiError: ApiErrorDetail | null`: Reviewed Fluxer rejection detail, or null when no safe classification is available - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: "search" | "edit" | "fetch" | "delete" | "typing" | "publish" | "fetchCrosspostSource" | "messages.get" | "fetchHistory" | "fetchReactionUsers" | "fetchHasReaction" | "pin" | "unpin" | "fetchPins" | "...`: The requested operation, independent of the gateway connection state - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Failure category, described by [`OperationReason`](/docs/api/js-ts/errors/#operationreason) - `retryAfterMs: number | null`: Server-required wait in milliseconds when usable, otherwise null - `status: number | null`: HTTP status when available to this failure, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class OAuthOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauthoperationerror/ An OAuth call failed an input check, reached a local capacity limit, or failed during its request or response - `constructor(options: { readonly apiError?: ApiErrorDetail | null; readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly oauthError?: string | null; readonly operation: OAuthOperation;...): OAuthOperationError`: Create the failure from an options object, with an optional underlying cause - `_tag: "OAuthOperationError"`: Discriminator for narrowing this expected failure in either entry point - `apiError: ApiErrorDetail | null`: Reviewed Fluxer HTTP error detail when the response uses the normal Fluxer envelope, otherwise null - `inputValidation: InputValidationDetail | null`: Safe local validation facts when the SDK can identify a failed input rule, otherwise null - `oauthError: string | null`: Recognized RFC OAuth error code, otherwise null - `operation: OAuthOperation`: OAuth call that failed - `outcome: "notDispatched" | "rejected" | "unknown"`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: "rejected" | "network" | "input" | "busy" | "response" | "timeout" | "rateLimit"`: Input validation, full local capacity, HTTP rejection, network failure, invalid response, deadline expiry or HTTP 429 - `retryAfterMs: number | null`: Numeric Retry-After duration in milliseconds for a 429 response, or null when unavailable - `status: number | null`: HTTP status when received, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class PaginationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/paginationerror/ Reading multiple pages failed because of invalid settings, a page limit, a stalled cursor or search readiness - `constructor(options: { readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly operation: PaginationOperation; readonly reason: "input" | "cursorStalled" | "pageLimit" | "indexing" }): PaginationError`: Identify the failed traversal and its local failure reason - `_tag: "PaginationError"`: Literal error tag for identifying PaginationError - `inputValidation: InputValidationDetail | null`: Frozen local validation detail for reason input, otherwise null - `operation: PaginationOperation`: Traversal that failed - `reason: "input" | "cursorStalled" | "pageLimit" | "indexing"`: Failure category - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class PresenceError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/presenceerror/ The SDK rejected a status update or member-presence selection before changing its saved settings - `constructor(options: { readonly cause?: unknown; readonly inputValidation?: InputValidationDetail | null; readonly reason: "limit" | "input" }): PresenceError`: Describe a rejected presence change - `_tag: "PresenceError"`: Error tag for identifying PresenceError in a Result - `inputValidation: InputValidationDetail | null`: SDK-owned local input detail, or null for local limits and non-input failures - `reason: "limit" | "input"`: Whether local validation failed or the selected members exceeded a local budget - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class RateLimitError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/ratelimiterror/ Discovery HTTP or the gateway imposed a connection rate limit - `constructor(source: "gateway" | "http", retryAfterMs: number | null): RateLimitError` - `_tag: "RateLimitError"`: Discriminator for identifying a connection rate limit - `retryAfterMs: number | null`: Server-required wait in milliseconds, or null when no usable duration was supplied - `source: "gateway" | "http"`: Whether discovery HTTP or the gateway imposed the limit - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class RestRequestError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/restrequesterror/ Expected failure of client.rest.request - `constructor(options: OperationErrorOptions<"rest.request">): RestRequestError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "RestRequestError"`: Stable expected-failure discriminator - `apiError: ApiErrorDetail | null`: Safe classification of why Fluxer rejected the request, or null when the response could not be classified - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid request field, or null when the failure was not an input failure - `operation: "rest.request"`: Requested operation, always rest.request - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Failure category, described by [`OperationReason`](/docs/api/js-ts/errors/#operationreason) - `retryAfterMs: number | null`: Usable server-required retry wait in milliseconds, otherwise null - `status: number | null`: HTTP status when a response was received, otherwise null - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class SdkDefect Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sdkdefect/ An unexpected fault thrown or rejected by the default API instead of returned as a typed error result - `constructor(operation?: Operation, reasons?: readonly DefectReason[]): SdkDefect` - `_tag: "SdkDefect"`: Discriminator for an unexpected fault in the default API - `operation: Operation`: Public call during which the fault was observed, not proof that a server mutation was rolled back - `reasons: readonly DefectReason[]`: Cause entries, which can include both the primary failure and cleanup faults - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class ShardConnectionError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/shardconnectionerror/ A configured gateway shard failed startup or permanently lost its established connection - `constructor(shardId: number, failure: AuthenticationError | ConnectionError | ConnectionTimeoutError | RateLimitError): ShardConnectionError` - `_tag: "ShardConnectionError"`: Discriminator for narrowing a failure attributed to one local shard - `failure: AuthenticationError | ConnectionError | ConnectionTimeoutError | RateLimitError`: Original SDK-owned expected failure, without private upstream payloads - `shardId: number`: The locally assigned shard whose connection failed - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class SupervisorChildError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/supervisorchilderror/ Child-helper failure because the parent's message channel is unavailable or carries invalid coordination data - `constructor(reason: "protocol" | "disconnected", options?: { readonly cause?: unknown }): SupervisorChildError`: Construct a child coordination failure without retaining message contents - `_tag: "SupervisorChildError"`: Discriminator for this SDK failure - `reason: "protocol" | "disconnected"`: Whether the parent disconnected or sent malformed internal coordination data - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class SupervisorError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/supervisorerror/ Parent-process lifecycle failure, not the child's original client or configuration error - `constructor(childId: string | null, reason: "protocol" | "closed" | "shardCount" | "spawn" | "restartLimit" | "startupTimeout", options?: { readonly cause?: unknown }): SupervisorError`: Construct a lifecycle failure from a safe child identifier and category - `_tag: "SupervisorError"`: Discriminator for this SDK failure - `childId: string | null`: Child whose local lifecycle failed, when one is applicable - `reason: "protocol" | "closed" | "shardCount" | "spawn" | "restartLimit" | "startupTimeout"`: The reason `closed` means the lifetime ended or coordination was lost - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class UserOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/useroperationerror/ Expected failure from account reads or private-conversation operations - `constructor(options: OperationErrorOptions): UserOperationError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "UserOperationError"`: Stable failure discriminator - `apiError: ApiErrorDetail | null`: Safe classification of why Fluxer rejected the request, or null when the response could not be classified - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: UserOperation`: Requested operation - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Failure category, described by [`OperationReason`](/docs/api/js-ts/errors/#operationreason) - `retryAfterMs: number | null`: Fluxer's retry delay in milliseconds when available - `status: number | null`: HTTP status when received - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class VoiceError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/voiceerror/ Why a client.voice signaling command did not hand a Voice State Update frame to the owning shard's connection - `constructor(options: { readonly cause?: unknown; readonly guildId?: string | null; readonly inputValidation?: InputValidationDetail | null; readonly operation: VoiceOperation; readonly reason: "input" | "busy" | "notOwned...): VoiceError`: Describe a voice signaling command that was not sent - `_tag: "VoiceError"`: Stable expected-failure discriminator - `guildId: string | null`: Validated community ID targeted by the command, or null when the supplied guildId was invalid - `inputValidation: InputValidationDetail | null`: Safe explanation of the invalid argument for reason input, otherwise null - `operation: VoiceOperation`: Requested voice signaling operation - `reason: "input" | "busy" | "notOwned" | "notReady"`: Why the voice signaling command was not sent - `shardId: number | null`: Owning shard ID resolved from the client's shard plan, or null when unavailable - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class WebhookOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/webhookoperationerror/ An expected failure while managing a webhook or one of its messages - `constructor(options: OperationErrorOptions): WebhookOperationError`: Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause - `_tag: "WebhookOperationError"`: Identifies this error in a switch or another tagged-error check - `apiError: ApiErrorDetail | null`: Recognized explanation of Fluxer's rejection, without raw response data, or null when unavailable - `inputValidation: InputValidationDetail | null`: Safe explanation of the locally invalid property, or null when no input problem could be identified - `operation: WebhookOperation`: Webhook action the application attempted - `outcome: OperationOutcome`: Whether the request may have reached Fluxer, described by [`OperationOutcome`](/docs/api/js-ts/errors/#operationoutcome) - `reason: OperationReason`: Failure category, described by [`OperationReason`](/docs/api/js-ts/errors/#operationreason) - `retryAfterMs: number | null`: Delay requested by Fluxer before retrying, in milliseconds, or null when unavailable - `status: number | null`: HTTP response status when one was received, or null when it is unavailable - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### interface ApiErrorDetail Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apierrordetail Safe details about a Fluxer API rejection, available in an operation error's apiError field - `code: ApiErrorCode`: Stable SDK category for this recognized rejection - `explanation: string`: Fixed SDK explanation, never Fluxer's localized response text - `providerCode: ApiProviderCode`: Exact recognized Fluxer server code - `validationErrors?: readonly ApiValidationErrorDetail[]`: Present only when code is invalidFormBody #### interface ApiValidationErrorDetail Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apivalidationerrordetail A validation error reported by Fluxer, with a fixed SDK explanation - `explanation: string`: Fixed SDK explanation of the validation code - `path?: string`: Request field path that Fluxer rejected, such as embeds.0.title, when supplied in a plain dotted form - `providerCode: ApiValidationCode | string & { … }`: Fluxer validation code #### interface DescribeErrorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#describeerroroptions Settings for describeError - `color?: boolean | "auto"`: Format the error with ANSI colors, vertical gutter rails and icons for terminal output - `stack?: boolean`: Include stack frames for each error in the cause chain #### interface ErrorTools Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#errortools Helpers for inspecting SDK errors in either entry point - `apiCode: (error: unknown) => ApiErrorCode | undefined`: The recognized Fluxer rejection category of an operation error, such as `"missingPermissions"`, read from its apiError - `isNotFound: (error: unknown, resource?: NotFoundResource) => boolean`: Whether the value is an SDK error for an HTTP 404, such as a deleted channel or a member who left - `isRetryable: (error: unknown) => boolean`: Whether repeating the same call is safe and may succeed, such as after a rate limit, full local capacity, or a network failure or timeout of a read or of a write that was not sent - `match: { >(error: E, handlers: H & { readonly _: (error: unknown) => unknown } & ([H extends unknown ? Exclude OperationOutcome | undefined`: Whether the failed request may have reached Fluxer: `"notDispatched"` when it was not sent, `"rejected"` when Fluxer refused it and `"unknown"` when the result is uncertain, such as a write whose response was lost - `retryAfterMs: (error: unknown) => number | undefined`: How many milliseconds to wait before repeating the call, as Fluxer or the SDK's own rate limiting requires #### interface FluxerlyErrorJson Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#fluxerlyerrorjson The JSON form of an SDK error, produced by toJSON - `_tag: string`: Error class discriminator, such as GuildOperationError - `cause?: FluxerlyErrorJson | { readonly cause?: FluxerlyErrorJson | { readonly name: string; readonly message: string; readonly cause?: FluxerlyErrorJson | ... | undefined; } | undefined; readonly message: str...`: Summary of the underlying cause, when one was retained - `code: string`: Stable dotted failure code - `details: Readonly>`: Safe structured facts about the failure - `hint?: string`: Actionable next step, when available - `message: string`: Human-readable message - `name: string`: Error name, normally equal to _tag #### interface FluxerlyErrorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#fluxerlyerroroptions Settings shared by SDK error constructors - `cause?: unknown`: Underlying failure, exposed as the standard ES2022 cause property - `code: string`: Stable dotted identifier for this failure, such as configuration.invalid or guild.rateLimit - `details?: Readonly>`: Safe structured facts about the failure, without credentials or private payloads - `hint?: string`: Actionable next step for a person reading the error, when the SDK can suggest one #### interface InputValidationDetail Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#inputvalidationdetail Describes why the SDK rejected an input without keeping the rejected value - `constraint: InputValidationConstraint`: Kind of rule the input failed, suitable for application-specific error handling - `explanation: string`: Fixed SDK explanation of the accepted input, not the rejected value or ready-made application text - `path: string`: Field or input path the SDK identified as invalid, without copying arbitrary caller keys #### interface MessageCleanupFailureMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messagecleanupfailuremetadata Expected batch failure details included in a failed progress notification - `apiError: ApiErrorDetail | null`: Safe Fluxer rejection classification, or null, excluding raw response text and provider field paths - `outcome: MessageCleanupOutcome`: What is known about dispatch: Not sent, definitively rejected, or uncertain - `reason: MessageCleanupErrorReason`: Classified cause of the failure, such as invalid input, closure, rejection or deadline expiry - `retryAfterMs: number | null`: Retry delay reported by Fluxer in milliseconds, or null - `status: number | null`: Known HTTP status, or null when none is available #### interface OperationErrorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operationerroroptions Constructor settings shared by resource operation errors, such as GuildOperationError and MessageOperationError - `apiError?: ApiErrorDetail | null`: Safe classification of a Fluxer rejection - `cause?: unknown`: Underlying failure retained as the error's cause - `inputValidation?: InputValidationDetail | null`: Safe explanation of locally invalid input - `operation: Operation`: The failed step - `outcome: OperationOutcome`: Whether the request may have reached Fluxer - `providerCode?: string | null`: Fluxer error code that this SDK version does not recognize, recorded as details.providerCode and named in the message - `read?: boolean`: Whether the failed request only read data, so even an unknown outcome cannot have changed remote state - `reason: Reason`: Failure category - `responseField?: string | null`: For reason response, the response field path or named check that failed, such as type or channelMismatch - `retryAfterMs?: number | null`: Usable server-required retry wait in milliseconds - `status?: number | null`: HTTP status when available - `streamUsed?: boolean`: Whether a rate-limited upload, or one Fluxer refused because its upload slots stayed busy, read an attachment from a ReadableStream, which cannot be read again - `uploadSlotsBusy?: boolean`: Whether Fluxer refused a multipart upload because its file upload slots stayed busy, the answer OperationOutcome describes #### type ApiErrorCode Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apierrorcode Stable SDK category of a recognized Fluxer API rejection, read from ApiErrorDetail.code - `"missingAccess" | "missingPermissions" | "communicationDisabled" | "cannotSendMessagesToUser" | "cannotSendEmptyMessage" | "cannotModifySystemWebhook" | "announcementChannelRequired" | "channelAlready...` #### type ApiProviderCode Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apiprovidercode Exact Fluxer server code that the SDK recognizes, read from ApiErrorDetail.providerCode - `"MISSING_ACCESS" | "MISSING_PERMISSIONS" | "COMMUNICATION_DISABLED" | "CANNOT_SEND_MESSAGES_TO_USER" | "CANNOT_SEND_EMPTY_MESSAGE" | "CANNOT_MODIFY_SYSTEM_WEBHOOK" | "ANNOUNCEMENT_CHANNEL_REQUIRED" | ...` #### type ApiValidationCode Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apivalidationcode Exact Fluxer validation code that the SDK recognizes, read from ApiValidationErrorDetail.providerCode - `"ATTACHMENTS_NOT_ALLOWED_FOR_MESSAGE" | "CANNOT_DELETE_MORE_THAN_100_MESSAGES" | "CANNOT_SEND_EMPTY_MESSAGE" | "CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER" | "CONTENT_EXCEEDS_MAX_LENGTH" | "DUPLICATE_ATTACH...` #### type AttachmentDownloadFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#attachmentdownloadfailure Expected attachment-download failures shared by both entry points - `AttachmentDownloadError | ClientClosedError` #### type AttachmentRefreshFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#attachmentrefreshfailure Expected attachment URL refresh failures shared by both entry points - `AttachmentRefreshError | ClientClosedError` #### type AttachmentRefreshOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#attachmentrefreshoperation Attachment URL refresh operation identified by safe failure metadata - `"attachments.refreshUrls"` #### type BotApplicationOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#botapplicationoperation Operation name included in application-read failures - `"application.fetch" | "application.fetchPublic"` #### type BotApplicationOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#botapplicationoperationfailure Expected application-read failures in both APIs - `BotApplicationOperationError | ClientClosedError` #### type ChannelOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#channeloperation The channel or thread action named in an expected failure or SdkDefect - `"channels.get" | "channels.fetch" | "channels.fetchAll" | "channels.follow" | "channels.fetchFollowerStats" | "channels.create" | "channels.edit" | "channels.delete" | "channels.reorder" | "channels.s...` #### type ChannelOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#channeloperationfailure Native interruption is outside this union, with default API methods additionally returning CancelledError - `ChannelOperationError | ClientClosedError` #### type CollectorFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#collectorfailure Expected terminal failures shared by both API styles - `CollectorError | ClientClosedError` #### type ConfirmFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#confirmfailure Expected reaction confirmation failures: Invalid options, a failed send, a failed reaction addition or removal, an unavailable or lost gateway, an overflowing listener or a failing users check - `ConfigurationError | SendError | MessageOperationFailure | CollectorFailure` #### type ConnectError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#connecterror Expected connect and run failures, with default API methods adding CancelledError to their result union - `ConnectionFailure | ClientBusyError | ClientClosedError` #### type ConnectionFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#connectionfailure Expected startup or terminal connection failures, excluding cancellation and SDK defects - `AuthenticationError | ConnectionError | ConnectionTimeoutError | RateLimitError | ShardConnectionError` #### type CountOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#countoperation The guild or channel count request named in an error - `"guilds.fetchCounts" | "channels.fetchMemberCounts"` #### type CountOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#countoperationfailure Expected fresh-count failure - `CountOperationError | ClientClosedError` #### type DefectReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#defectreason Details of what caused an SdkDefect in the default API - `{ readonly failure: ConnectError | ConfigurationError | ApplicationError | EventReadError | EventWaitError | MessageError | MessageOperationError | MessageCleanupError | GuildOperationError | ChannelO...` #### type ErrorMatchHandlers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#errormatchhandlers Handlers for errors.match, keyed by each possible error's _tag, plus an optional _ fallback - `{ readonly [K in E extends { readonly _tag: string } ? E["_tag"] : never]?: (error: Extract) => R } & { readonly _?: (error: unknown) => R }` #### type EventReadError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#eventreaderror Expected subscription-read failures from queue overflow or a competing pending read - `EventOverflowError | EventReadBusyError` #### type EventWaitFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#eventwaitfailure Expected filtered event-wait failures, including invalid options, client closure, queue overflow, deadline expiry or a failed filter - `ConfigurationError | ClientClosedError | EventOverflowError | EventWaitError` #### type GatewayOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#gatewayoperation Operation name included in gateway HTTP read failures - `"gateway.fetchBot"` #### type GatewayOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#gatewayoperationfailure Expected gateway HTTP read failures in both APIs - `GatewayOperationError | ClientClosedError` #### type GatewaySendFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#gatewaysendfailure Expected gateway.send failures in both APIs - `GatewaySendError | ClientClosedError` #### type GuildOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#guildoperation The guild or related-resource action named in an expected failure or SdkDefect - `"permissions.calculate" | "permissions.fetch" | "permissions.fetchChannels" | `hierarchy.${"compare" | "isAbove" | "canManage" | "highestRole" | "canManageRole"}` | "members.search" | `discovery.${"se...` #### type GuildOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#guildoperationfailure Native interruption is outside this union - `GuildOperationError | ClientClosedError` #### type InputValidationConstraint Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#inputvalidationconstraint Identifies why the SDK rejected an input before sending a request - `"required" | "type" | "format" | "range" | "length" | "allowedValue" | "allowedFields" | "relationship" | "unique" | "size"` #### type InstanceResolveError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#instanceresolveerror Expected instance-resolution failures, including invalid options, connection trouble, deadline expiry, rate limits and client closure - `ConnectionError | ConnectionTimeoutError | RateLimitError | ClientClosedError | ConfigurationError` #### type MemberChunkFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#memberchunkfailure Expected stream failure - `MemberChunkError | ClientClosedError` #### type MessageCleanupErrorReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messagecleanuperrorreason Expected preview or cleanup failure classification - `"filter" | "closed" | "input" | MessageOperationError["reason"]` #### type MessageCleanupFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messagecleanupfailure Expected preview and cleanup errors shared by both entry points - `MessageCleanupError` #### type MessageOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messageoperationfailure Message lookup, management and reaction failures shared by both entry points - `MessageOperationError | ClientClosedError` #### type NotFoundResource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#notfoundresource Resources that Fluxer reports as missing, accepted by errors.isNotFound - `"application" | "ban" | "channel" | "emoji" | "forumTag" | "guild" | "invite" | "member" | "message" | "role" | "sticker" | "threadMember" | "user" | "webhook"` #### type OAuthOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#oauthoperation Public OAuth call identified by operation-error metadata - `"oauth.authorizationUrl" | "oauth.exchangeCode" | "oauth.refresh" | "oauth.revoke" | "oauth.fetchIdentity" | "oauth.fetchAuthorization" | "oauth.fetchGuilds" | "oauth.fetchConnections" | "oauth.intros...` #### type OAuthOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#oauthoperationfailure Expected OAuth failures shared by both entry points - `OAuthOperationError | ClientClosedError` #### type Operation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operation Identifies the default API call during which an SdkDefect was observed - `"attachments.download" | "attachments.stream" | AttachmentRefreshOperation | "instance.resolve" | "presence.set" | "presence.setMembers" | "cache.entries" | "users.getSelf" | "directMessages.send" | B...` #### type OperationOutcome Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operationoutcome Whether a request may have reached Fluxer - `"notDispatched" | "rejected" | "unknown"` #### type OperationReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operationreason Why a remote operation failed - `"input" | "busy" | "notFound" | "rejected" | "network" | "response" | "timeout" | "rateLimit"` #### type PaginateFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#paginatefailure Expected reaction page failures: Invalid pages or options, a failed send, a failed page change, arrow or click removal, an unavailable or lost gateway, an overflowing listener or a failing users check - `ConfigurationError | SendError | MessageOperationFailure | CollectorFailure` #### type PaginationOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#paginationoperation Operation name included in a PaginationError or default-API SDK defect to identify the traversal - `"iterateHistory" | "messages.iterateSearch" | "members.iterate" | "guilds.iterate" | "members.iterateSearch" | "iterateReactionUsers" | "iteratePins" | "auditLogs.iterate" | "threads.iterateMembers" |...` #### type PresenceFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#presencefailure Expected presence-operation failure - `PresenceError | ClientClosedError` #### type RestOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#restoperation Operation name included in REST request failures - `"rest.request"` #### type RestRequestFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#restrequestfailure Expected REST request failures in both APIs - `RestRequestError | ClientClosedError` #### type SendError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#senderror Expected message-creation failures shared by both entry points, including permanent client closure - `MessageError | ClientClosedError` #### type UserOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#useroperation User/private-conversation operation named by safe failure metadata - `"users.fetch" | "users.fetchSelf" | "users.fetchProfile" | "users.get" | "directMessages.open" | "directMessages.fetch" | "directMessages.fetchAll" | "directMessages.fetchLatestMessages" | "directMess...` #### type UserOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#useroperationfailure Cancellation in the default API additionally returns CancelledError - `UserOperationError | ClientClosedError` #### type VoiceFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#voicefailure Expected client.voice signaling failures in both APIs - `VoiceError | ClientClosedError` #### type VoiceOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#voiceoperation Voice signaling operation names included in VoiceError and default-API SdkDefect attribution - `"voice.join" | "voice.leave" | "voice.updateState"` #### type WebhookOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#webhookoperation Identifies the webhook action that failed, so an error can be associated with the request the application made - `"webhooks.create" | "webhooks.fetch" | "webhooks.fetchForChannel" | "webhooks.fetchForGuild" | "webhooks.edit" | "webhooks.delete" | "webhooks.fetchToken" | "webhooks.editToken" | "webhooks.deleteToke...` #### type WebhookOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#webhookoperationfailure Expected failures shared by webhook operations, including requests made after the client closes - `WebhookOperationError | ClientClosedError` ### Events and Collectors #### interface CallCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#callcreate A private-channel call began or became visible, including initial call state delivered shortly after READY and state recovered after a lost call connection - `createdAtMs?: number`: Unix time in milliseconds when the call was opened - `recipientIds?: readonly string[]`: Every recipient of the channel, whether or not they joined the call - Inherits from `CallUpdate`: `channelId`, `messageId`, `region`, `ringingUserIds`, `voiceStates` #### interface CallDelete Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#calldelete A private-channel call ended or became temporarily unavailable - `channelId: string`: Private channel ID the call took place in - `unavailable: boolean`: True when the call became unavailable rather than ending #### interface CallUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#callupdate Current state of an active private-channel call: Its ringing set, participants and voice region - `channelId: string`: Private channel ID the call takes place in - `messageId: string`: ID of the call message that opened the call - `region: string | null`: Voice region serving the call, or null until Fluxer chooses one - `ringingUserIds: readonly string[]`: Account IDs currently being rung, in received order - `voiceStates: readonly CallVoiceState[]`: Connected participants, frozen in Fluxer's order by participant ID #### interface CallVoiceState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#callvoicestate One participant's connection in a private call, as observed when the call was created or updated - Inherits from `VoiceState`: `channelId`, `connectionId`, `isDeafened`, `isE2eeCapable`, `isMobile`, `isMuted`, `isPeerToPeer`, `isSelfDeafened`, `isSelfMuted`, `isSelfStreaming`, `isSelfVideoOn`, `isSuppressed`, `sessionId`, `userId`, `version`, `viewerStreamKeys` #### interface ChannelPinsUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#channelpinsupdate Notice that a channel's pins changed, without identifying the pinned or unpinned message - `channelId: string`: Affected channel ID as a decimal string - `guildId?: string`: Community ID when Fluxer supplies it - `lastPinTimestamp: string | null`: Last-pin time supplied by Fluxer as an ISO 8601 string, or null #### interface Collector Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#collector Wait for the bounded message collection created by messages.collect - `[asyncDispose](): Promise`: Close this collector and wait for its cleanup, as `await using` does at the end of a block - `close(): void`: Stop accepting messages now, keeping accepted messages for a successful partial result - `result(options?: OperationOptions): ResultAsync, CancelledError | ConfigurationError | CollectorFailure>`: Wait for the final frozen collection result after timer, queue, filter, listener and callback cleanup #### interface CollectorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#collectoroptions Choose which new messages to collect in one channel and when to stop - `filter?: (message: M) => boolean`: Return true to accept a message, or false to skip it - `guildId?: string`: Community that owns this channel, as a positive decimal ID within the unsigned 64-bit range - `idleMs?: number`: Stop successfully after this many milliseconds without an accepted message - `maxBytes?: number`: Maximum UTF-8 JSON bytes kept for accepted messages - `maxMessages?: number`: Stop successfully after this many accepted messages and their callbacks - `onMessage?: (message: M, signal: AbortSignal) => unknown`: Process accepted messages one at a time, after filtering and acceptance into the retained-byte budget - `signal?: OperationSignal`: Cancel the entire collection - `timeoutMs?: number`: Stop successfully after this many milliseconds from registration, regardless of activity - Inherits from `EventBufferOptions`: `maxPendingBytes`, `maxPendingMessages` #### interface CollectorResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#collectorresult Messages collected before the count, total deadline, idle deadline or explicit stop ended collection - `messages: readonly M[]`: Accepted snapshots in receive order, with each message ID included once - `reason: "idle" | "limit" | "timeout" | "stopped"`: Why collection finished successfully: The count was met, total time expired, idle time expired, or stop was called #### interface DirectMessageRecipientChange Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#directmessagerecipientchange The account added to or removed from a group conversation, as Fluxer sent it - `channelId: string`: Affected private channel - `user?: User`: Public identity of that account at the time of the change, absent when Fluxer's account data is incomplete - `userId: string`: Added or removed account #### interface DocumentedRawDispatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#documentedrawdispatch A raw dispatch whose type T the SDK describes from Fluxer's documentation and source, with d typed by GatewayDispatchPayloads - `d: GatewayDispatchPayloads[T]`: The unvalidated body, typed from the documentation and reviewed source corrections at the SDK's reviewed Fluxer commit - `documented: true`: True: The SDK's types describe this dispatch type - `t: T`: The dispatch type, one that GatewayDispatchPayloads describes - Inherits from `RawDispatch`: `s`, `shardId` #### interface EntranceSoundPlay Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#entrancesoundplay A participant's entrance sound started playing in a voice channel or private call they were already connected to - `channelId: string`: Voice channel or private call channel ID - `contentType: string`: Media type Fluxer reported for the sound file, such as audio/ogg - `durationMs: number`: Sound length in whole milliseconds, a nonnegative safe integer - `guildId: string | null`: Community that owns the voice channel, or null for a private call - `hash: string`: Fluxer's content hash of the sound file, usable to reuse an already downloaded copy - `soundId: string`: Entrance sound ID - `url: string`: Address to download the sound from, as received and without an SDK download or validation of its host - `userId: string`: Account ID of the participant whose sound plays #### interface EventBufferOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventbufferoptions Limit the waiting queue for one event subscription or collector - `maxPendingBytes?: number`: Maximum UTF-8 bytes of waiting received JSON, including full bulk payloads - `maxPendingMessages?: number`: Maximum waiting payloads, excluding active handlers #### interface EventContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventcontext Delivery details for one event, passed to on handlers, runBot handlers and event middleware - `previous?: PreviousSnapshot`: The snapshot this client's cache held for the changed or removed entity just before it applied the event, as PreviousSnapshots lists per event, or undefined - `receipt: number`: A number that orders events by arrival - `receivedBytes: number`: UTF-8 byte length of the whole received gateway frame that carried the event, the same size counted against maxPendingBytes - `sessionEpoch: number`: The receiving shard's ShardState.sessionEpoch when the client accepted the event, before it waited in this handler's queue - `shardId: number`: Local shard whose gateway connection received the event #### interface EventEntryOf Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#evententryof One event delivered to a `client.onMany` handler or partition function, pairing the event name with its frozen payload - `event: K`: Name of the event that arrived - `payload: EventMap[K]`: Frozen payload for `event` #### interface EventHandlerOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventhandleroptions Configure how client.on schedules handlers and reports their failures - `onError?: (report: FailureReport) => unknown`: Receive this subscription's failures instead of the client-level onError: A handler that threw or rejected, with the original error and the IDs of the message being handled, or overflow that stopped the subscription - `partitionReady?: (key: string, signal: AbortSignal) => unknown`: Hold the events of a partition key until that key is ready, without using a handler slot - Inherits from `HandlerOptions`: `concurrency`, `maxPendingBytes`, `maxPendingMessages`, `overflow`, `partition` #### interface EventInvocationOf Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventinvocationof One on handler invocation of a specific event type, as seen by event middleware - `context: EventContext`: Shard, its session epoch, receipt number, received size of the frame that carried the event and the previous snapshot - `event: K`: Event name the subscription was registered for - `payload: EventMap[K]`: Frozen event payload the handler receives - `subscriptionId: string`: Identifier of the subscription whose handler this invocation runs, such as messageCreate#3 #### interface EventMap Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventmap Event names and payload types accepted by on, events and waitFor - `callCreate: CallCreate`: A private-channel call began or became visible, including initial and recovered call state, without a call cache - `callDelete: CallDelete`: A private-channel call ended, or became unavailable when unavailable is true - `callUpdate: CallUpdate`: An active private-channel call's ringing set, participants or region changed - `channelPinsUpdate: ChannelPinsUpdate`: A channel's pins changed, with community context only when supplied and without fetching the list - `directMessageCreate: DirectMessageChannel`: A private conversation became visible to this bot, which does not prove it was just created - `directMessageDelete: { readonly id: string }`: A private conversation closed, was left, or was deleted for this bot - `directMessageRecipientAdd: DirectMessageRecipientChange`: A private conversation gained a recipient - `directMessageRecipientRemove: DirectMessageRecipientChange`: A private conversation lost a recipient - `directMessageUpdate: DirectMessageChannel`: Current private conversation data, without previous values to compare - `entranceSoundPlay: EntranceSoundPlay`: Another participant's entrance sound started playing where this account has a voice connection, without a download or cache write - `gatewayError: GatewayErrorEvent`: An opcode 12 Gateway Error frame, which Fluxer sends when it refuses a voice join the session asked for - `guildAuditLogEntryCreate: GuildAuditLogEntryCreate`: A newly recorded community audit entry, requiring VIEW_AUDIT_LOG - `guildBanAdd: MemberReference`: A ban was recorded for these community and account IDs, without full ban details or proof that member removal finished - `guildBanRemove: MemberReference`: An explicit ban removal, not proof of rejoining - `guildChannelCreate: GuildChannel`: A community channel became visible, possibly after creation, without establishing its creation time or enumerating initial channels - `guildChannelDelete: GuildChannel`: A community channel was deleted or became invisible - `guildChannelUpdate: GuildChannel`: Current community channel data - `guildChannelUpdateBulk: GuildChannelUpdateBulk`: Visible community-channel updates grouped into one batch, without individual guildChannelUpdate events - `guildEmojisUpdate: GuildEmojisUpdate`: Updated community emoji collection, not an initial list or cache refill - `guildHealthUpdate: GuildHealthUpdate`: Community-server lag or recovery, without a disconnection, availability change, cache invalidation or automatic reconnect - `guildMemberAdd: GuildMember`: A member join observation, not an initial roster or complete community membership view - `guildMemberRemove: MemberReference`: Membership ended, with only community and account IDs supplied - `guildMemberUpdate: GuildMember`: Current member data - `guildRoleCreate: GuildRole`: A community role creation observation, not an initial enumeration of roles - `guildRoleDelete: RoleReference`: Deleted role's IDs, without a guarantee that affected members each produce an update - `guildRoleUpdate: GuildRole`: Current role data - `guildRoleUpdateBulk: GuildRoleUpdateBulk`: Role updates grouped into one batch, without individual guildRoleUpdate events or a complete role list - `guildStickersUpdate: GuildStickersUpdate`: Updated community sticker collection, not an initial list or cache refill - `inviteCreate: InviteMetadata`: Invite metadata supplied when an invite was created - `inviteDelete: InviteDeleteEvent`: A deleted invite's code and any destination IDs Fluxer still supplied, without reconstructing its old settings - `messageCreate: M`: Newly created message using this client's selected fields, with frozen nested metadata rather than downloaded file contents - `messageDelete: MessageDeletion`: One deleted message's channel and message IDs, plus supplied community ID, text and author ID when available - `messageDeleteBulk: MessageBulkDeletion`: Deleted message IDs grouped by channel, with community context only when supplied - `messageReactionAdd: MessageReaction`: One user's reaction addition, not synthesized from reaction batches or successful addReaction requests - `messageReactionAddMany: MessageReactionBatch`: Reaction additions grouped by Fluxer - `messageReactionRemove: MessageReaction`: One user's reaction was removed, possibly by a moderator rather than that user - `messageReactionRemoveAll: ReactionTarget`: All reactions on the target message were cleared, without a list of affected users - `messageReactionRemoveEmoji: MessageReactionEmojiRemoval`: All reactions using one emoji were cleared from the target message, without a list of affected users - `messageUpdate: M`: Message data supplied for an update, not a patch to merge - `presenceUpdate: PresenceUpdate`: A delivered presence observation with its custom status, without account data, retained state or automatic member subscriptions - `raw: RawDispatchEvent`: Every received gateway dispatch in its wire form, including types this SDK version does not decode - `threadCreate: ThreadCreateEvent`: A thread was created, or the bot joined or was added to an existing thread, as isNewlyCreated tells - `threadDelete: ThreadDeletion`: A thread was deleted - `threadListSync: ThreadListSync`: The bot's active threads in a community, or in some of its channels, were replaced - `threadMembersUpdate: ThreadMembersUpdate`: Accounts joined or left a thread - `threadMemberUpdate: ThreadMemberUpdate`: The bot's own membership in a thread changed - `threadUpdate: GuildThreadChannel`: Current thread data after a change such as a rename, archive or lock - `typingStart: TypingStart`: A short-lived typing notice, subject to Fluxer's delivery filtering - `userUpdate: User`: Current public account data, without private account settings - `voiceServerUpdate: VoiceServerUpdate`: Voice connection grant sent to this session after a voice join, move or region change, carrying endpoint/token or peer-to-peer ICE servers without opening a media connection or caching state - `voiceSignal: VoiceSignal`: Peer-to-peer voice signaling message relayed from another connection in the same channel, without caching state or opening a peer connection - `voiceStateSnapshot: VoiceStateSnapshot`: Visible initial voice connections when a community becomes available, including an explicitly supplied empty collection - `voiceStateUpdate: VoiceState`: A visible voice connection joined, changed or disconnected - `webhooksUpdate: WebhooksUpdate`: A visible community channel's webhook collection changed, without webhook details, tokens, cache writes or automatic requests - Inherits from `GuildLifecycleEvents`: `guildCreate`, `guildDelete`, `guildUpdate` #### interface EventSubscription Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventsubscription Read future events one at a time with next, then end the subscription with close - `next(options?: OperationOptions): ResultAsync[K] | null, CancelledError | ConfigurationError | EventReadError>`: Wait for the next event, returning Ok(payload), or Ok(null) after normal closure - Inherits from `Subscription`: `id`, `[asyncDispose]`, `close`, `waitForClose` #### interface EventWaitOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventwaitoptions Settings for waitFor to receive one future event that passes an optional filter - `filter?: (event: EventMap[K]) => boolean`: Return true to complete with this event, false to keep waiting - `timeoutMs?: number`: Total milliseconds to wait from registration, an integer from 1 through 2,147,483,647, default 30,000 - Inherits from `EventBufferOptions`: `maxPendingBytes`, `maxPendingMessages` - Inherits from `OperationOptions`: `signal` #### interface GatewayDispatchPayloads Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewaydispatchpayloads The data of each gateway dispatch type that Fluxer's documentation describes, or that Fluxer's source shows it sends, keyed by its dispatch type, with Fluxer's own field names - `AUTH_SESSION_CHANGE: AuthSessionChangePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#auth-session-change - `CALL_CREATE: CallCreatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#call-create - `CALL_DELETE: CallDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#call-delete - `CALL_UPDATE: CallUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#call-update - `CHANNEL_CREATE: ChannelObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-create - `CHANNEL_DELETE: ChannelDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-delete - `CHANNEL_MEMBER_COUNTS_UPDATE: ChannelMemberCountsUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-member-counts-update - `CHANNEL_PINS_ACK: ChannelPinsAckPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-pins-ack - `CHANNEL_PINS_UPDATE: ChannelPinsUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-pins-update - `CHANNEL_RECIPIENT_ADD: ChannelRecipientAddPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-recipient-add - `CHANNEL_RECIPIENT_REMOVE: ChannelRecipientRemovePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-recipient-remove - `CHANNEL_UPDATE: ChannelObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-update - `CHANNEL_UPDATE_BULK: ChannelUpdateBulkPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#channel-update-bulk - `ENTRANCE_SOUND_PLAY: EntranceSoundPlayPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#entrance-sound-play - `FAVORITE_MEME_CREATE: MemeObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#favorite-meme-create - `FAVORITE_MEME_DELETE: FavoriteMemeDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#favorite-meme-delete - `FAVORITE_MEME_UPDATE: MemeObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#favorite-meme-update - `FORUM_UNREADS: ForumUnreadsPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#forum-unreads - `GUILD_AUDIT_LOG_ENTRY_CREATE: GuildAuditLogEntryCreatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-audit-log-entry-create - `GUILD_BAN_ADD: GuildBanAddPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-ban-add - `GUILD_BAN_REMOVE: GuildBanRemovePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-ban-remove - `GUILD_COUNTS_UPDATE: GuildCountsUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-counts-update - `GUILD_CREATE: GuildReadyObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-create - `GUILD_DELETE: GuildDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-delete - `GUILD_EMOJIS_UPDATE: GuildEmojisUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-emojis-update - `GUILD_HEALTH_UPDATE: GuildHealthUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-health-update - `GUILD_MEMBER_ADD: GuildMemberAddPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-member-add - `GUILD_MEMBER_LIST_UPDATE: GuildMemberListUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-member-list-update - `GUILD_MEMBER_REMOVE: GuildMemberRemovePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-member-remove - `GUILD_MEMBER_UPDATE: GuildMemberUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-member-update - `GUILD_MEMBERS_CHUNK: GuildMembersChunkPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-members-chunk - `GUILD_ROLE_CREATE: GuildRoleCreatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-role-create - `GUILD_ROLE_DELETE: GuildRoleDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-role-delete - `GUILD_ROLE_UPDATE: GuildRoleUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-role-update - `GUILD_ROLE_UPDATE_BULK: GuildRoleUpdateBulkPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-role-update-bulk - `GUILD_STICKERS_UPDATE: GuildStickersUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-stickers-update - `GUILD_SYNC: GuildReadyObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-sync - `GUILD_UPDATE: GuildUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#guild-update - `INVITE_CREATE: InviteCreatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#invite-create - `INVITE_DELETE: InviteDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#invite-delete - `MESSAGE_ACK: MessageAckPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-ack - `MESSAGE_CREATE: MessageCreatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-create - `MESSAGE_DELETE: MessageDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-delete - `MESSAGE_DELETE_BULK: MessageDeleteBulkPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-delete-bulk - `MESSAGE_REACTION_ADD: MessageReactionAddPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-reaction-add - `MESSAGE_REACTION_ADD_MANY: MessageReactionAddManyPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-reaction-add-many - `MESSAGE_REACTION_REMOVE: MessageReactionRemovePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-reaction-remove - `MESSAGE_REACTION_REMOVE_ALL: MessageReactionRemoveAllPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-reaction-remove-all - `MESSAGE_REACTION_REMOVE_EMOJI: MessageReactionRemoveEmojiPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-reaction-remove-emoji - `MESSAGE_UPDATE: MessageUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#message-update - `OPERATOR_PASS_UPDATE: OperatorPassUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#operator-pass-update - `PASSIVE_UPDATES: PassiveUpdatesPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#passive-updates - `PRESENCE_UPDATE: PresenceObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#presence-update - `RATE_LIMITED: RateLimitedPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#rate-limited - `READY: ReadyPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#ready-object - `RECENT_MENTION_DELETE: RecentMentionDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#recent-mention-delete - `RELATIONSHIP_ADD: RelationshipAddPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#relationship-add - `RELATIONSHIP_REMOVE: RelationshipRemovePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#relationship-remove - `RELATIONSHIP_UPDATE: RelationshipAddPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#relationship-update - `RESUMED: ResumedPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#resumed - `SAVED_MESSAGE_CREATE: MessageObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#saved-message-create - `SAVED_MESSAGE_DELETE: SavedMessageDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#saved-message-delete - `SESSIONS_REPLACE: SessionsReplacePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#sessions-replace - `THREAD_CREATE: ThreadCreatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#thread-create - `THREAD_DELETE: ThreadDeletePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#thread-delete - `THREAD_LIST_SYNC: ThreadListSyncPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#thread-list-sync - `THREAD_MEMBER_LIST_UPDATE: ThreadMemberListUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#thread-member-list-update - `THREAD_MEMBER_UPDATE: ThreadMemberUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#thread-member-update - `THREAD_MEMBERS_UPDATE: ThreadMembersUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#thread-members-update - `THREAD_UPDATE: ThreadObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/threads/#thread-update - `TYPING_START: TypingStartPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#typing-start - `USER_CONNECTIONS_UPDATE: UserConnectionsUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#user-connections-update - `USER_GUILD_SETTINGS_UPDATE: UserGuildSettingsObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#user-guild-settings-update - `USER_NOTE_UPDATE: UserNoteUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#user-note-update - `USER_PINNED_DMS_UPDATE: UserPinnedDmsUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#user-pinned-dms-update - `USER_SETTINGS_UPDATE: UserSettingsObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#user-settings-update - `USER_UPDATE: UserObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#user-update - `VOICE_SERVER_UPDATE: VoiceServerUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#voice-server-update - `VOICE_SIGNAL: VoiceSignalPayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#voice-signal - `VOICE_STATE_UPDATE: VoiceStateObject`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#voice-state-update - `WEBAUTHN_CREDENTIALS_UPDATE: WebauthnCredentialsUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#webauthn-credentials-update - `WEBHOOKS_UPDATE: WebhooksUpdatePayload`: Fluxer's documentation: https://docs.fluxer.com/gateway/events/#webhooks-update #### interface GatewayErrorData Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewayerrordata The data of an opcode 12 Gateway Error frame, with Fluxer's own field names, from the documentation at the SDK's reviewed Fluxer commit - `code: string`: The refusal code - `message: string`: A readable description for logs #### interface GatewayErrorEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewayerrorevent One opcode 12 Gateway Error frame as Fluxer sent it, delivered as the gatewayError event - `d: GatewayErrorData`: Unvalidated frame data with Fluxer's field names, code and message - `shardId: number`: Local shard that received the frame, whose session sent the refused Voice State Update #### interface GatewayPayloadObjects Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewaypayloadobjects The objects that documented gateway dispatches carry, keyed by the address of their documentation on Fluxer's documentation site, such as "/http-api/messages/#message-object" - `/gateway/events/#channel-count-entry-object: ChannelCountEntryObject`: Channel count entry object - `/gateway/events/#custom-status-object: GatewayCustomStatusObject`: Custom status object - `/gateway/events/#guild-count-entry-object: GuildCountEntryObject`: Guild count entry object - `/gateway/events/#guild-ready-object: GuildReadyObject`: Guild ready object - `/gateway/events/#ice-server-object: IceServerObject`: ICE server object - `/gateway/events/#member-list-group-object: MemberListGroupObject`: Member list group object - `/gateway/events/#member-list-item-object: MemberListItemObject`: Member list item object - `/gateway/events/#member-list-operation-object: MemberListOperationObject`: Member list operation object - `/gateway/events/#presence-object: PresenceObject`: Presence object - `/gateway/events/#reaction-addition-object: ReactionAdditionObject`: Reaction addition object - `/gateway/events/#reaction-emoji-object: ReactionEmojiObject`: Reaction emoji object - `/gateway/events/#rtc-region-object: RtcRegionObject`: RTC region object - `/gateway/events/#session-presence-object: SessionPresenceObject`: Session presence object - `/gateway/events/#voice-state-object: VoiceStateObject`: Voice state object - `/gateway/events/#webauthn-credential-object: WebauthnCredentialObject`: WebAuthn credential object - `/http-api/channels/#channel-object: ChannelObject`: Channel object - `/http-api/channels/#permission-overwrite-object: PermissionOverwriteObject`: Permission overwrite object - `/http-api/forums/#default-reaction-object: DefaultReactionObject`: Default reaction object - `/http-api/forums/#forum-tag-object: ForumTagObject`: Forum tag object - `/http-api/guild-audit-logs/#audit-log-change-object: AuditLogChangeObject`: Audit log change object - `/http-api/guild-audit-logs/#audit-log-options-object: AuditLogOptionsObject`: Audit log options object - `/http-api/guild-audit-logs/#guild-audit-log-entry-object: GuildAuditLogEntryObject`: Guild audit log entry object - `/http-api/guild-emojis/#guild-emoji-object: GuildEmojiObject`: Guild emoji object - `/http-api/guild-members/#guild-member-object: GuildMemberObject`: Guild member object - `/http-api/guild-stickers/#guild-sticker-object: GuildStickerObject`: Guild sticker object - `/http-api/guilds/#guild-object: GuildObject`: Guild object - `/http-api/guilds/#partial-guild-object: PartialGuildObject`: Partial guild object - `/http-api/invites/#invite-metadata-object: InviteMetadataObject`: Invite metadata object - `/http-api/invites/#invite-object: InviteObject`: Invite object - `/http-api/invites/#partial-invite-channel-object: PartialInviteChannelObject`: Partial invite channel object - `/http-api/invites/#partial-invite-recipient-object: PartialInviteRecipientObject`: Partial invite recipient object - `/http-api/memes/#gif-media-format-object: GifMediaFormatObject`: GIF media format object - `/http-api/memes/#meme-object: MemeObject`: Meme object - `/http-api/messages/#channel-mention-object: ChannelMentionObject`: Channel mention object - `/http-api/messages/#embed-author-object: EmbedAuthorObject`: Embed author object - `/http-api/messages/#embed-field-object: EmbedFieldObject`: Embed field object - `/http-api/messages/#embed-footer-object: EmbedFooterObject`: Embed footer object - `/http-api/messages/#embed-media-object: EmbedMediaObject`: Embed media object - `/http-api/messages/#embed-object: EmbedObject`: Embed object - `/http-api/messages/#embed-provider-object: EmbedProviderObject`: Embed provider object - `/http-api/messages/#emoji-object: EmojiObject`: Emoji object - `/http-api/messages/#message-attachment-object: MessageAttachmentObject`: Message attachment object - `/http-api/messages/#message-call-object: MessageCallObject`: Message call object - `/http-api/messages/#message-object: MessageObject`: Message object - `/http-api/messages/#message-reference-object: MessageReferenceObject`: Message reference object - `/http-api/messages/#message-snapshot-object: MessageSnapshotObject`: Message snapshot object - `/http-api/messages/#reaction-object: ReactionObject`: Reaction object - `/http-api/messages/#sticker-item-object: StickerItemObject`: Sticker item object - `/http-api/permissions/#guild-role-object: GuildRoleObject`: Guild role object - `/http-api/read-states/#read-state-object: ReadStateObject`: Read state object - `/http-api/thread-members/#thread-member-object: ThreadMemberObject`: Thread member object - `/http-api/threads/#thread-metadata-object: ThreadMetadataObject`: Thread metadata object - `/http-api/threads/#thread-object: ThreadObject`: Thread object - `/http-api/users/#custom-status-object: CustomStatusObject`: Custom status object - `/http-api/users/#guild-folder-object: GuildFolderObject`: Guild folder object - `/http-api/users/#partial-user-object: PartialUserObject`: Partial user object - `/http-api/users/#pending-bulk-message-deletion-object: PendingBulkMessageDeletionObject`: Pending bulk message deletion object - `/http-api/users/#user-object: UserObject`: User object - `/http-api/users/#user-settings-object: UserSettingsObject`: User settings object - `/http-api/users/relationships/#relationship-object: RelationshipObject`: Relationship object - `/http-api/users/settings/#channel-notification-override-object: ChannelNotificationOverrideObject`: Channel notification override object - `/http-api/users/settings/#guild-mute-configuration-object: GuildMuteConfigurationObject`: Guild mute configuration object - `/http-api/users/settings/#user-guild-settings-object: UserGuildSettingsObject`: User guild settings object #### interface GuildAuditLogEntryCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildauditlogentrycreate Audit entry newly written in a community, using the same field names as audit-log requests - `guildId: string`: Community that recorded the entry - `targetId: string | null`: Affected resource ID or invite code, or null when Fluxer recorded no target - `userId: string`: Acting account ID supplied for this entry - Inherits from `AuditLogEntry`: `actionType`, `changes`, `id`, `options`, `reason` #### interface GuildChannelUpdateBulk Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildchannelupdatebulk Visible channel updates delivered together, not a complete community channel list - `channels: readonly GuildChannel[]`: Frozen channel snapshots delivered in this dispatch - `guildId: string`: Decimal community ID #### interface GuildCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildcreate Frozen community data received with an availability event, plus information about whether this is a new join - `isNewJoin: boolean`: True when the outer GUILD_CREATE omits unavailable, false when it supplies literal false - `joinedAt?: string | null`: ISO 8601 time the bot joined the community, null when Fluxer reports none, or absent when the event carried no value - `memberCount?: number`: Members of the community when Fluxer delivered this event, or absent when the event carried none - `onlineCount?: number`: Online members of the community when Fluxer delivered this event, or absent when the event carried none - Inherits from `Guild`: `afkChannelId`, `afkTimeoutSeconds`, `badgeIds`, `banner`, `contentWarningLevel`, `contentWarningText`, `defaultMessageNotifications`, `embedSplash`, `explicitContentFilter`, `features`, `icon`, `id`, `messageHistoryCutoff`, `mfaLevel`, `name`, `nsfw`, `nsfwLevel`, `ownerId`, `rulesChannelId`, `splash`, `splashCardAlignment`, `systemChannelFlags`, `systemChannelId`, `vanityUrlCode`, `verificationLevel` #### interface GuildDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guilddeletion Gateway notification that a community is no longer visible to this client - `id: string`: Decimal guild ID - `unavailable: boolean`: Whether Fluxer reports a temporary unavailable placeholder - `unavailableHidden: boolean`: Whether Fluxer reports that temporary placeholder as hidden #### interface GuildEmojisUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildemojisupdate Custom emoji collection supplied in one community update, frozen in received order - `guildId: string`: Community that owns this emoji collection, as a decimal ID - `items: readonly GuildEmoji[]`: Emoji snapshots in Fluxer's received order #### interface GuildHealthUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildhealthupdate Frozen community-server health notice, without a cache write or automatic reconnect - `degraded: boolean`: True while the community's server is lagging, false when it recovers - `guildId: string`: Community whose server health changed, as a decimal ID #### interface GuildLifecycleEvents Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildlifecycleevents Payload types for community availability, configuration and visibility events - `guildCreate: GuildCreate`: Community data became available, including startup hydration, recovery and joins - `guildDelete: GuildDeletion`: Community visibility ended or became temporarily unavailable, without establishing deletion or the bot's membership outcome - `guildUpdate: Guild`: Current community configuration, not a patch to merge #### interface GuildStickersUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildstickersupdate Custom sticker collection supplied in one community update, frozen in received order - `guildId: string`: Community that owns this sticker collection, as a decimal ID - `items: readonly GuildSticker[]`: Sticker snapshots in Fluxer's received order #### interface HandlerOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#handleroptions Queue limits, parallelism, ordering and overflow behavior for one on callback registration - `concurrency?: number`: Maximum active callbacks, a positive safe integer - `overflow?: "stop" | "dropOldest" | "dropNewest"`: What happens when an event arrives while the waiting queue is full - `partition?: "guild" | "channel" | ((event: T) => string | undefined)`: Keep related events in order while unrelated events run side by side, up to concurrency - Inherits from `EventBufferOptions`: `maxPendingBytes`, `maxPendingMessages` #### interface InviteDeleteEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#invitedeleteevent Notice that an invite was deleted, without its former settings - `channelId?: string`: Invite destination channel ID, when supplied - `code: string`: Deleted invite's code, the stable identity supplied for this event - `guildId?: string`: Invite destination community ID, when supplied #### interface MessageBulkDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagebulkdeletion Message IDs deleted together in one channel - `channelId: string`: Channel ID shared by the deleted messages - `guildId?: string`: Community ID when Fluxer supplies it - `ids: readonly string[]`: Deleted decimal message IDs in received order, not necessarily chronological or guaranteed to arrive exactly once #### interface MessageDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagedeletion Notice identifying one deleted message, not its full contents or a recoverable copy - `authorId?: string`: Deleted message's author ID, only when supplied by Fluxer - `content?: string | null`: Deleted text when supplied - `guildId?: string`: Community ID when Fluxer supplies it - `member?: DeletedMessageMember`: The author's community membership as Fluxer attached it to the deletion, read from the community's current state at dispatch time - Inherits from `MessageReference`: `channelId`, `id` #### interface MessageReaction Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagereaction One reaction addition or removal delivered by Fluxer - `action?: "add" | "remove"`: Whether this observation was a reaction addition or removal - `emoji: ReactionEmoji`: Emoji whose reaction changed - `member?: GuildMember`: Community membership of the user whose reaction changed, as Fluxer attached it to the event from the community's current state at dispatch time - `userId: string`: Account ID of the user whose reaction was added or removed - Inherits from `ReactionTarget`: `channelId`, `guildId`, `id` #### interface MessageReactionBatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagereactionbatch Reaction additions grouped by Fluxer into one messageReactionAddMany event - `reactions: readonly { readonly emoji: ReactionEmoji; readonly member?: GuildMember; readonly userId: string }[]`: Frozen additions on the target message, in received order - Inherits from `ReactionTarget`: `channelId`, `guildId`, `id` #### interface MessageReactionEmojiRemoval Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagereactionemojiremoval Notice that every reaction using one emoji was cleared from a message - `emoji: ReactionEmoji`: Emoji whose reactions were cleared - Inherits from `ReactionTarget`: `channelId`, `guildId`, `id` #### interface MiddlewareRegistration Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#middlewareregistration Remove event middleware registered with client.use - `[dispose](): void`: Remove the middleware, as `using` does at the end of a block - `close(): void`: Stop applying the middleware to invocations that start later #### interface ObservedCustomStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#observedcustomstatus A custom status observed in a presence event, kept as Fluxer sent it - `emoji: ObservedCustomStatusEmoji | null`: The emoji shown with the text, or null when the status has none - `expiresAt: string | null`: ISO 8601 time at which the status expires, or null when it does not expire - `text: string | null`: Status text, or null when the status has none, such as one that shows only an emoji #### interface ObservedCustomStatusEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#observedcustomstatusemoji The emoji of an observed custom status - `animated: boolean`: Whether the custom emoji is animated, always false for a Unicode emoji or when Fluxer left the flag out - `id: string | null`: ID of the custom emoji, or null for a Unicode emoji - `name: string | null`: The Unicode emoji, or the custom emoji's name #### interface PresenceUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#presenceupdate Account presence reported by Fluxer at one point in time, not a cached or continuously updated status - `afk: boolean`: Whether Fluxer reported the account as away from keyboard - `customStatus: ObservedCustomStatus | null`: The account's custom status, or null when it has none - `guildId?: string`: Community where the account's presence was observed, when supplied - `mobile: boolean`: Whether Fluxer reported a mobile client - `status: ObservedPresenceStatus`: Status Fluxer reported at event time, which can already be stale when read - `userId: string`: Account ID whose presence changed, without an account lookup #### interface PreviousSnapshots Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#previoussnapshots The cached snapshot that EventContext.previous holds for each event that changes or removes one cached entity, keyed by event name - `guildChannelDelete: GuildChannel`: The deleted or hidden channel from the channel cache - `guildChannelUpdate: GuildChannel`: The channel from the channel cache before the update - `guildDelete: Guild`: The community from the community cache before it was removed or became unavailable - `guildMemberRemove: GuildMember`: The member from the member cache before the removal - `guildMemberUpdate: GuildMember`: The member from the member cache before the update - `guildRoleDelete: GuildRole`: The deleted role from the role cache - `guildRoleUpdate: GuildRole`: The role from the role cache before the update - `guildUpdate: Guild`: The community from the community cache, the guilds category, before the update - `messageDelete: M`: The deleted message from the message cache, as for messageUpdate - `messageDeleteBulk: readonly M[]`: The deleted messages from the message cache, as for messageUpdate, in a frozen list in the order of the event's ids and once per message - `messageUpdate: M`: The edited message from the message cache, with this client's selected message fields - `threadDelete: GuildThreadChannel`: The deleted thread from the channel cache - `threadUpdate: GuildThreadChannel`: The thread from the channel cache before the update, with the bot's membership when the cached snapshot had it #### interface RawDispatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#rawdispatch One gateway dispatch as Fluxer sent it, before the SDK decodes or validates its body - `d: unknown`: Unvalidated dispatch body - `s: number`: Session sequence number of the dispatch - `shardId: number`: Local shard that received the dispatch - `t: string`: Upper-case dispatch type, such as MESSAGE_CREATE #### interface ReactionCollector Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#reactioncollector Wait for the reaction-addition collection created by messages.collectReactions - `[asyncDispose](): Promise`: Close this collector and wait for its cleanup, as `await using` does at the end of a block - `close(): void`: Stop accepting additions now and keep accepted observations for a successful partial result - `result(options?: OperationOptions): ResultAsync`: Wait for the final frozen reaction result after queue, timer, filter, listener and callback cleanup #### interface ReactionCollectorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#reactioncollectoroptions Choose which new reaction events to collect on one message and when to stop - `emoji?: ReactionEmojiInput | readonly ReactionEmojiInput[]`: Collect only one emoji or any emoji in a nonempty array, or omit to accept any emoji - `filter?: (reaction: MessageReaction) => boolean`: Return true to accept an addition, or false to skip it - `guildId?: string`: Community that owns the target channel, as a positive decimal ID within the unsigned 64-bit range - `idleMs?: number`: Stop successfully after this many milliseconds without an accepted addition - `includeRemovals?: boolean`: Also collect single reaction removals alongside additions - `maxBytes?: number`: Maximum UTF-8 JSON bytes kept for accepted MessageReaction values - `maxReactions?: number`: Stop successfully after this many accepted additions and their callbacks - `onReaction?: (reaction: MessageReaction, signal: AbortSignal) => unknown`: Process accepted additions sequentially before accepting the next addition - `signal?: OperationSignal`: Cancel the whole collection - `timeoutMs?: number`: Stop successfully after this many milliseconds from registration - Inherits from `EventBufferOptions`: `maxPendingBytes`, `maxPendingMessages` #### interface ReactionCollectorResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#reactioncollectorresult Successful observations of collected reaction events, not a final vote count - `reactions: readonly MessageReaction[]`: Accepted observations in receive order, then batch order - `reason: "idle" | "limit" | "timeout" | "stopped"`: Successful stop condition: Accepted count, total deadline, idle deadline, or an explicit stop #### interface Subscription Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#subscription Control one event subscription returned by on or subscribe - `id: string`: Identifier of this subscription, such as messageCreate#3, used in failure reports and log records - `[asyncDispose](): Promise`: Close this subscription and wait for its cleanup, as `await using` does at the end of a block - `close(): void`: Stop new deliveries, drop queued events and stop running handlers, without waiting for the handler that called close - `waitForClose(options?: OperationOptions): ResultAsync`: Wait until this subscription has closed and the SDK has released its queue and listeners #### interface ThreadDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threaddeletion Identity of a deleted thread, without its former settings or messages, which EventContext.previous can hold from the channel cache - `guildId: string`: Community that held the thread - `id: string`: Decimal ID of the deleted thread - `parentId: string`: Channel that held the thread - `type: 10 | 11 | 12`: Type of the deleted thread #### interface ThreadListSync Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadlistsync The bot's complete set of active threads in a community, or in some of its channels, as Fluxer replaced it - `guildId: string`: Community whose threads were replaced - `parentIds?: readonly string[]`: Channels whose threads were replaced - `threads: readonly GuildThreadChannel[]`: Every active thread the bot can view in the replaced scope, each with the bot's membership when it is a member #### interface ThreadMemberUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadmemberupdate Updated thread membership for the bot itself, delivered on THREAD_MEMBER_UPDATE - `guildId: string`: Community that holds the thread, as a decimal ID - Inherits from `ThreadMember`: `flags`, `joinedAt`, `member`, `threadId`, `userId` #### interface ThreadMembersUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadmembersupdate Accounts that joined or left one thread, including the bot itself - `added: readonly ThreadMember[]`: Members who joined, each with their community membership when Fluxer has one for the account - `guildId: string`: Community that holds the thread - `memberCount: number`: Approximate number of thread members after the change, capped at 50 - `removedUserIds: readonly string[]`: Decimal IDs of the accounts that left - `threadId: string`: Decimal ID of the thread #### interface TypingStart Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#typingstart Notice that an account began typing, not a lasting indication that it is still typing - `channelId: string`: Channel ID where typing began - `guildId?: string`: Owning community ID, when supplied - `member?: GuildMember`: Community membership of the account that began typing, as Fluxer attached it from the community's current state at dispatch time - `timestamp: number`: Fluxer's Unix timestamp in whole seconds, not milliseconds - `userId: string`: Account ID that began typing #### interface UndocumentedRawDispatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#undocumentedrawdispatch A raw dispatch whose type GatewayDispatchPayloads does not describe, such as one Fluxer added after the SDK's reviewed commit - `documented: false`: False: No SDK type describes this dispatch type - Inherits from `RawDispatch`: `d`, `s`, `shardId`, `t` #### interface VoiceIceServer Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voiceiceserver One STUN or ICE server entry delivered inside a peer-to-peer VoiceServerUpdate grant - `credential?: string`: Optional ICE authentication credential when supplied by the instance - `urls: readonly string[]`: ICE server URLs, such as stun: addresses, frozen in received order - `username?: string`: Optional ICE authentication username when supplied by the instance #### interface VoiceServerUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voiceserverupdate Frozen voice connection grant delivered by Fluxer's VOICE_SERVER_UPDATE dispatch to the session that requested voice - `channelId: string`: Voice channel or private call channel ID that this grant applies to - `connectionId: string`: Voice connection ID that this grant applies to - `e2eeKey: string | null`: Server-issued room key when encrypted call media is enabled on the channel, otherwise null - `endpoint: string | null`: Media server WebSocket URL when Fluxer issued a server-relayed grant, otherwise null - `guildId: string | null`: Community that owns the channel, or null when the grant is for a private call - `iceServers: readonly VoiceIceServer[]`: Frozen STUN or ICE server entries for peer-to-peer connections, empty when omitted or none are configured - `p2p: boolean`: Whether this grant selects peer-to-peer media rather than a media server - `token: string | null`: Media server access token when Fluxer issued a server-relayed grant, otherwise null #### interface VoiceSignal Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voicesignal Frozen peer-to-peer voice signaling message delivered by Fluxer's VOICE_SIGNAL dispatch to the target connection's session - `channelId: string`: Voice channel or private call channel ID shared by both connections - `data: Readonly>`: Deep-frozen signaling payload object relayed from the sender - `from: string`: Sender's voice connection ID - `guildId: string | null`: Community that owns the channel, or null when the signal belongs to a private call - `userId: string`: Account ID that owns the sending connection #### interface VoiceState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voicestate One account's voice connection as observed in a community, without audio or video access - `channelId: string | null`: Observed voice channel ID, or null for a disconnect - `connectionId: string`: Fluxer's connection ID, usable to target one connection in a move or disconnect request - `guildId: string`: Community that owns this voice connection - `isDeafened: boolean`: Whether the community has deafened this connection - `isE2eeCapable: boolean`: Whether the participant's client supports encrypted call media - `isMobile: boolean`: Whether Fluxer identifies this connection as mobile - `isMuted: boolean`: Whether the community has muted this connection - `isPeerToPeer: boolean`: Whether this connection exchanges media peer-to-peer and not through LiveKit - `isSelfDeafened: boolean`: Whether the participant has deafened themselves - `isSelfMuted: boolean`: Whether the participant has muted themselves - `isSelfStreaming: boolean`: Whether the connection advertises a screen-share track - `isSelfVideoOn: boolean`: Whether the participant is publishing camera video - `isSuppressed: boolean`: Whether Fluxer reports this connection as prevented from speaking - `member?: GuildMember`: The participant's community member data as Fluxer attached it to this voice state, omitted when Fluxer sends none - `sessionId?: string`: Gateway session ID, when supplied by Fluxer - `userId: string`: Connected account's user ID - `version?: number`: Fluxer's monotonic version of this participant's voice state, omitted when Fluxer sends none - `viewerStreamKeys: readonly string[]`: Keys of the screen shares this connection is watching, empty when it watches none or Fluxer omits them #### interface VoiceStateSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voicestatesnapshot Visible voice connections supplied when a community becomes available - `guildId: string`: Community whose availability data supplied these connections - `voiceStates: readonly VoiceState[]`: Frozen voice connections in received order, including an explicitly supplied empty array #### interface WebhooksUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#webhooksupdate Notice that the webhooks in a channel changed - `channelId: string`: Channel whose webhook collection changed - `guildId: string`: Community that owns the channel, as a decimal ID #### type EventEntry Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#evententry Discriminated union of event entries delivered to `client.onMany` - `{ readonly [E in K]: EventEntryOf }[K]` #### type EventInvocation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventinvocation One on handler invocation passed to event middleware - `{ readonly [K in EventName]: EventInvocationOf }[EventName]` #### type EventMiddleware Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventmiddleware Event middleware for the default API, run around each client.on handler invocation that starts after registration - `(invocation: EventInvocation, next: () => Promise, signal: AbortSignal) => unknown` #### type EventName Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventname Event-name strings accepted by on, onMany, events and waitFor in both entry points - `keyof EventMap` #### type ObservedPresenceStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#observedpresencestatus An account status observed in a presence event - `"online" | "idle" | "dnd" | "offline" | "invisible" | "unknown"` #### type PreviousSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#previoussnapshot The type of EventContext.previous for event K: The PreviousSnapshots entry or undefined, and only undefined for an event without one - `K extends keyof PreviousSnapshots ? PreviousSnapshots[K] | undefined : undefined` #### type RawDispatchEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#rawdispatchevent What the raw event delivers: A dispatch whose type the SDK describes, or one it does not - `{ readonly [T in keyof GatewayDispatchPayloads]: DocumentedRawDispatch }[keyof GatewayDispatchPayloads] | UndocumentedRawDispatch` #### type ThreadCreateEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadcreateevent A thread that was created or that the bot was added to, with whether it was just created - `GuildThreadChannel & { readonly isNewlyCreated: boolean }` ### Guilds and Members #### variable AuditLogActions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogactions Event categories for filtering a community's audit log, such as role changes, bans or invite creation - `BotAdd: 28`: A bot was added to the community - `ChannelCreate: 10`: A community channel was created - `ChannelDelete: 12`: A community channel was deleted - `ChannelOverwriteCreate: 13`: A channel-specific role or member permission overwrite was added - `ChannelOverwriteDelete: 15`: A channel-specific permission overwrite was removed - `ChannelOverwriteUpdate: 14`: An existing channel-specific permission overwrite changed - `ChannelUpdate: 11`: A community channel's settings changed - `EmojiCreate: 60`: A custom community emoji was created - `EmojiDelete: 62`: A custom community emoji was deleted - `EmojiUpdate: 61`: A custom community emoji's metadata changed - `GuildUpdate: 1`: Community-wide settings changed - `InviteCreate: 40`: An invitation code was created - `InviteDelete: 42`: An invitation code was revoked - `InviteUpdate: 41`: An existing invitation's settings changed - `MemberBanAdd: 22`: An account was banned from the community - `MemberBanRemove: 23`: An account's community ban was lifted - `MemberDisconnect: 27`: A member was disconnected from voice - `MemberKick: 20`: A member was removed from the community without a ban - `MemberMove: 26`: A member was moved between voice channels - `MemberPrune: 21`: A bulk membership-pruning action was recorded - `MemberRoleUpdate: 25`: A member's assigned roles changed - `MemberUpdate: 24`: A member's community-specific settings or moderation state changed, which can include a `roles` change as MemberRoleUpdate describes - `MessageBulkDelete: 73`: A bulk message-deletion action was recorded - `MessageDelete: 72`: A message deletion was recorded, potentially with a consolidated count - `MessagePin: 74`: A message was pinned - `MessageUnpin: 75`: A message was unpinned - `RoleCreate: 30`: A community role was created - `RoleDelete: 32`: A community role was deleted - `RoleUpdate: 31`: A community role's settings changed - `StickerCreate: 90`: A custom community sticker was created - `StickerDelete: 92`: A custom community sticker was deleted - `StickerUpdate: 91`: A custom community sticker's metadata changed - `ThreadCreate: 110`: A thread was created - `ThreadDelete: 112`: A thread was deleted - `ThreadUpdate: 111`: A thread's settings changed - `WebhookCreate: 50`: A webhook was created - `WebhookDelete: 52`: A webhook was deleted - `WebhookUpdate: 51`: An existing webhook's settings changed #### variable DiscoveryCategories Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverycategories Named category IDs for listing a community in Fluxer's public community directory - `AnimeAndManga: 6`: Category for anime and manga communities - `ContentCreator: 5`: Category for streamer and artist communities, named ContentCreator in Fluxer's constants - `Education: 3`: Category for educational communities - `Entertainment: 2`: Category for entertainment communities - `Gaming: 0`: Category for gaming communities - `MoviesAndTv: 7`: Category for movie and television communities - `Music: 1`: Category for music communities - `Other: 8`: Category for communities outside the named categories - `ScienceAndTechnology: 4`: Category for science and technology communities #### variable GuildContentWarningLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcontentwarninglevels Choose the community-wide warning policy through GuildEdit.contentWarningLevel - `ContentWarning: 1`: Request a community-wide content warning - `Inherit: 0`: Use the inherited warning policy #### variable GuildDefaultMessageNotifications Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guilddefaultmessagenotifications Set the initial notification preference for new community members through GuildEdit.defaultMessageNotifications - `AllMessages: 0`: Notify for all messages by default - `OnlyMentions: 1`: Notify only when mentioned by default #### variable GuildExplicitContentFilters Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildexplicitcontentfilters Choose whose uploaded media Fluxer filters for explicit content through GuildEdit.explicitContentFilter - `AllMembers: 2`: Apply filtering to all members - `Disabled: 0`: Do not enable this filtering policy - `MembersWithoutRoles: 1`: Apply filtering to members without assigned roles #### variable GuildFeatureToggles Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildfeaturetoggles Optional community behaviors that a bot with ManageGuild can replace through GuildEdit.featureToggles - `CloneEmojiEnabled: "CLONE_EMOJI_ENABLED"`: Allow eligible callers to clone this community's emoji into another community - `CloneStickerEnabled: "CLONE_STICKER_ENABLED"`: Allow eligible callers to clone this community's stickers into another community - `DetachedBanner: "DETACHED_BANNER"`: Display the community banner in a separate section below the community header in the Fluxer app - `HideOwnerCrown: "HIDE_OWNER_CROWN"`: Hide the community owner's crown indicator - `InvitesDisabled: "INVITES_DISABLED"`: Disable community invitations - `MemberDmsDisabled: "MEMBER_DMS_DISABLED"`: Disable direct messages between community members who do not already have a direct message or friendship - `TextChannelFlexibleNames: "TEXT_CHANNEL_FLEXIBLE_NAMES"`: Permit flexible text-channel names - `VisitsEnabled: "VISITS_ENABLED"`: Let people visit the community without joining it #### variable GuildMemberJoinSourceTypes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmemberjoinsourcetypes Fluxer's known sources for a community membership recorded by the indexed member-search service - `AdminForceAdd: 4`: The member was added by an administrator - `BotInvite: 3`: The bot was added through a bot installation invitation - `Creator: 0`: The member created the community - `Discovery: 6`: The member joined through the public community directory - `InstantInvite: 1`: The member joined through a regular invitation code - `VanityUrl: 2`: The member joined through the community's custom invitation code #### variable GuildMemberProfileFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmemberprofileflags Known Fluxer community-profile bit flags - `AvatarUnset: 1`: Mark the community-profile avatar as explicitly unset - `BannerUnset: 2`: Mark the community-profile banner as explicitly unset #### variable GuildMfaLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmfalevels Values of Guild.mfaLevel, the community's two-factor requirement for moderation permissions - `Elevated: 1`: Moderation permissions work only for the owner and for callers with two-factor authentication enabled - `None: 0`: No two-factor requirement for moderation permissions #### variable GuildNsfwLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildnsfwlevels Values of Guild.nsfwLevel, Fluxer's older age-restriction level for a community - `AgeRestricted: 3`: The community is marked as adult content - `Safe: 0`: The community is not marked as adult content #### variable GuildSplashCardAlignments Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsplashcardalignments Position the card over the invite splash image through GuildEdit.splashCardAlignment - `Center: 0`: Center the invitation card over its background image - `Left: 1`: Place the invitation card on the left side of its background image - `Right: 2`: Place the invitation card on the right side of its background image #### variable GuildSystemChannelFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsystemchannelflags Suppress selected automatic messages in a community's system channel through GuildEdit.systemChannelFlags - `SuppressJoinNotifications: 1`: Hide automatic member-join notifications #### variable GuildVerificationLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildverificationlevels Values for the verification policy required before members can participate in a community - `High: 3`: Require Medium and, when join time is available, at least ten minutes of community membership - `Low: 1`: Require a verified account for members who are not exempt - `Medium: 2`: Require Low and an account at least five minutes old - `None: 0`: No community-level verification requirement, except that discoverable communities still enforce Low #### variable MemberMentionPreferences Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membermentionpreferences Fluxer's per-community reply-mention preferences - `NoPreference: 0`: Express no preference about mentions on replies - `PreferMention: 1`: Prefer replies to mention this member - `PreferNoMention: 2`: Prefer replies not to mention this member #### interface AuditLogChange Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogchange Before-and-after information for one field recorded by an audit entry - `key: string`: Provider-defined field key, including future field names - `newValue?: AuditLogChangeValue`: Value after the change - `oldValue?: AuditLogChangeValue`: Value before the change #### interface AuditLogEntry Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogentry One recorded administrative action in a community, with any available actor, target, reason and changed settings - `actionType: number`: Recorded Fluxer action, compared with AuditLogActions values - `changes?: readonly AuditLogChange[]`: Changed fields, omitted when the action recorded none - `id: string`: Decimal audit-entry ID - `options?: AuditLogOptions`: Action-specific context, omitted when no published option applies - `reason?: string`: Recorded audit reason, omitted when the action had none - `targetId?: string | null`: Affected entity ID or invite code when Fluxer supplied one, not necessarily a decimal ID - `userId?: string | null`: Acting user ID when Fluxer supplied one #### interface AuditLogIterationQueryBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogiterationquerybase Settings for reading filtered audit entries from newest to oldest, with explicit limits - `before?: string`: Exclusive decimal audit-entry cursor selecting older entries - Inherits from `PaginationQuery`: `maxItems`, `maxPages`, `pageSize` #### interface AuditLogOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogoptions Extra details for an audit record, such as the destination channel or number of affected items - `channelId?: string`: Decimal channel ID relevant to the action - `count?: number`: Number of affected entities, including a consolidated deletion count - `deleteMemberDays?: string`: Legacy whole-day deletion value recorded for a member ban - `deleteMessagesMs?: number`: Milliseconds of recent messages deleted for a member ban, in the unit of BanInput deleteMessagesMs - `id?: string`: Decimal overwrite target or other action-specific ID - `integrationType?: number`: Provider integration-type value - `inviterId?: string`: Decimal ID of an invite creator - `maxAgeSeconds?: number`: Configured invite lifetime in seconds - `maxUses?: number`: Configured maximum invite uses - `membersRemoved?: number`: Number of memberships removed by a prune action - `messageId?: string`: Decimal message ID relevant to the action - `roleName?: string`: Role name recorded by an applicable action - `temporary?: boolean`: Whether the applicable recorded entity is temporary - `type?: number`: Channel or permission-overwrite type recorded by an applicable action - `uses?: number`: Invite use count recorded by an applicable action #### interface AuditLogPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogpage One filtered page of administrative records, with public user, token-free webhook and thread details used by that page - `entries: readonly AuditLogEntry[]`: Entries in descending entry-ID order for filtered requests - `threads: readonly GuildThreadChannel[]`: Snapshots of the threads that this page's thread actions target and that still exist, without a cache write - `users: readonly User[]`: Public user snapshots referenced by this page, without a user-cache write - `webhooks: readonly AuditLogWebhook[]`: Token-free webhook snapshots referenced by this page #### interface AuditLogPermissionsDiff Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogpermissionsdiff Permission names added or removed by a recorded role change - `added: readonly string[]`: Permission names added by the change - `removed: readonly string[]`: Permission names removed by the change #### interface AuditLogQueryBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogquerybase Common settings for one filtered remote audit-log page request - `actionType?: AuditLogActionType`: Action filter - `after?: string`: Audit-entry ID for reading newer entries, excluding the entry itself - `before?: string`: Audit-entry ID for reading older entries, excluding the entry itself - `limit?: number`: Maximum returned entries, 1–100, default 50 - `userId?: string`: Acting-user filter #### interface AuditLogWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogwebhook Frozen, token-free webhook metadata accompanying an audit-log page - `avatarHash?: string | null`: Webhook avatar hash, or null when Fluxer supplied none - `channelId?: string | null`: Decimal destination channel ID, or null when Fluxer supplied none - `guildId?: string | null`: Decimal owning guild ID, or null when Fluxer supplied none - `id: string`: Decimal webhook ID - `name: string`: Webhook display name - `type: 1 | 2`: Fluxer webhook type: 1 incoming or 2 channel follower #### interface AuditLogs Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogs Read a community's audit log with ViewAuditLog permission, without connecting the gateway - `fetchPage(guildId: string, query: AuditLogQuery, options?: RequestOptions): ResultAsync`: Fetch one filtered audit page with referenced users and webhook metadata that excludes tokens - `iterate(guildId: string, query: AuditLogIterationQuery, options?: RequestOptions): AsyncIterable>`: Read filtered audit entries newest first, buffering one page and never prefetching #### interface BanInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#baninput Ban an account from a community permanently or for a provider-managed duration, optionally deleting recent messages - `deleteMessagesMs?: number`: How far back to delete the user's recent messages, in milliseconds and whole seconds, 0–604,800,000 (seven days), default 0 - `durationMs?: number`: Ban length in milliseconds, in whole seconds: 0 or omitted for a permanent ban, or 60,000–63,072,000,000 (two years) for a provider-managed temporary ban - `reason?: string`: Stored ban reason, up to 512 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming #### interface DeletedMessageMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#deletedmessagemember The author's community membership as Fluxer attached it to a message deletion, with the account fields left out - Inherits from `GuildMember`: `accentColor`, `avatar`, `banner`, `communicationDisabledUntil`, `isDeafened`, `isMuted`, `joinedAt`, `mentionFlags`, `nickname`, `profileFlags`, `roleIds` - Inherits from `MemberReference`: `guildId`, `userId` #### interface Discovery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discovery Search Fluxer's public community directory and manage a community's directory application - `apply(guildId: string, input: DiscoveryApplicationInput, options?: RequestOptions): ResultAsync`: Submit a community's application to the public directory - `edit(guildId: string, input: DiscoveryApplicationEdit, options?: RequestOptions): ResultAsync`: Change supplied fields of a pending or approved directory application - `fetchCategories(options?: RequestOptions): ResultAsync`: Fetch directory category IDs and Fluxer's category labels in provider order - `fetchStatus(guildId: string, options?: RequestOptions): ResultAsync`: Fetch a community's current directory eligibility and application state - `search(query?: DiscoverySearchQuery, options?: RequestOptions): ResultAsync`: Fetch one page from the current public community directory - `withdraw(guildId: string, options?: RequestOptions): ResultAsync`: Withdraw a pending application or remove an approved directory listing #### interface DiscoveryApplication Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryapplication Current application or public listing returned by directory reads and writes - `appliedAt: string`: ISO 8601 application time - `categoryId: number`: Observed provider category ID - `description: string`: Observed directory description - `guildId: string`: Decimal guild ID whose application was observed - `guildNsfwLevel?: number | null`: Provider NSFW level when supplied, null when unspecified, or an omitted field when not returned - `primaryLanguage: string | null`: Observed primary language, null if absent - `removalReason: string | null`: Provider removal explanation, null if absent - `removedAt: string | null`: ISO 8601 removal time, null if not removed - `reviewedAt: string | null`: ISO 8601 review time, null if not reviewed - `reviewReason: string | null`: Provider review explanation, null if absent - `status: string`: Provider state, currently pending, approved, rejected or removed - `tags: readonly string[]`: Frozen provider tags, not a mutable copy of submitted input #### interface DiscoveryApplicationInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryapplicationinput Describe a community for a public community-directory application - `categoryId: number`: Integer 0–8, selected using DiscoveryCategories or fetchCategories - `description: string`: Listing description, 10–300 UTF-16 code units - `primaryLanguage?: string`: Primary language tag such as en-US, using the provider's case-sensitive supported BCP-47 codes - `tags?: readonly string[]`: Up to ten tags, each 2–30 UTF-16 code units before and after normalization #### interface DiscoveryCategory Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverycategory A category returned by discovery.fetchCategories, with Fluxer's display name rather than an SDK-translated label - `id: number`: Numeric provider category ID to pass as categoryId when applying or editing - `name: string`: Provider-supplied display name #### interface DiscoveryCategoryCount Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverycategorycount Frozen category match count for the current directory filters, ignoring the selected category - `categoryId: number`: Provider category ID - `count: number`: Current matching community count #### interface DiscoveryGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryguild Public community listing returned by discovery.search - `badgeIds?: readonly string[]`: Decimal IDs of the custom badges assigned to the community, omission means unavailable - `banner: string | null`: Banner hash, or null when the directory has none - `categoryId: number`: Provider directory category ID - `description: string | null`: Directory description, or null when absent - `features: readonly string[]`: Provider feature names - `icon: string | null`: Icon hash, or null when the directory has none - `id: string`: Decimal guild ID - `memberCount: number`: Approximate directory member count - `name: string`: Directory-visible community name - `onlineCount: number`: Approximate directory online-member count - `primaryLanguage: string | null`: Provider primary language, or null when absent - `tags: readonly string[]`: Frozen provider directory tags - `verificationLevel: number`: Provider verification level #### interface DiscoverySearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverysearchpage One page of public community listings, with the offset, page limit and number of current matches - `categoryCounts: readonly DiscoveryCategoryCount[]`: Frozen current-filter category counts, ignoring DiscoverySearchQuery.categoryId - `guilds: readonly DiscoveryGuild[]`: Frozen directory results in provider order - `limit: number`: Effective request page limit - `offset: number`: Effective zero-based request offset - `total: number`: Provider-reported matching community count, which can change immediately #### interface DiscoverySearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverysearchquery Filter and choose one page of public community listings with discovery.search - `categoryId?: number`: Provider category ID from 0 through 8 - `limit?: number`: Results per page from 1 through 48, defaulting to 24 - `offset?: number`: Zero-based result offset, a nonnegative safe integer defaulting to 0 - `primaryLanguage?: string`: Case-sensitive language code, 2–35 UTF-16 code units in a BCP-47-style format - `query?: string`: Free-text query of at most 100 UTF-16 code units - `sortBy?: "relevance" | "memberCount" | "onlineCount"`: Provider ordering - `tag?: string`: Directory tag of at most 30 UTF-16 code units #### interface DiscoveryStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverystatus Current listing eligibility and application state returned by discovery.fetchStatus - `application: DiscoveryApplication | null`: Current application or listing, null when no record exists - `eligible: boolean`: False when directory discovery is disabled (see ResolvedInstance.discoveryEnabled) or the community fails current eligibility - `minMemberCount: number`: Provider's current minimum member count, not a local configuration setting #### interface Guild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guild Identity and settings of a Fluxer guild, the community that owns channels, members and roles - `afkChannelId?: string | null`: AFK voice-channel ID - `afkTimeoutSeconds?: number`: Seconds before Fluxer moves inactive voice participants to the AFK channel, omission means unavailable - `badgeIds?: readonly string[]`: Decimal IDs of the custom badges assigned to the community, omission means unavailable - `banner?: string | null`: Banner asset hash, not an image URL - `contentWarningLevel?: GuildContentWarningLevel`: Whether Fluxer displays a community-wide content warning, omission means unavailable - `contentWarningText?: string | null`: Custom community-wide warning text - `defaultMessageNotifications?: GuildDefaultMessageNotification`: Default notification level for new members, omission means unavailable - `embedSplash?: string | null`: Background asset hash for embedded invites - `explicitContentFilter?: GuildExplicitContentFilter`: Explicit-media filtering level, omission means unavailable - `features: readonly string[]`: Feature names supplied by Fluxer, including unknown future names - `icon?: string | null`: Icon asset hash, not an image URL - `id: string`: Decimal guild ID - `messageHistoryCutoff?: string | null`: ISO 8601 historical-message cutoff - `mfaLevel?: GuildMfaLevel`: Two-factor requirement for moderation permissions, omission means unavailable - `name: string`: Current community name - `nsfw?: boolean`: Whether Fluxer marks the community as adult content, omission means unavailable - `nsfwLevel?: GuildNsfwLevel`: Fluxer's older age-restriction level, which Fluxer derives from nsfw, omission means unavailable - `ownerId: string`: Decimal owner user ID, not a permission decision - `rulesChannelId?: string | null`: Rules channel ID - `splash?: string | null`: Background asset hash for invites - `splashCardAlignment?: GuildSplashCardAlignment`: Invite splash-card alignment, omission means unavailable - `systemChannelFlags?: number`: System-message suppression flags, omission means unavailable - `systemChannelId?: string | null`: System-message channel ID - `vanityUrlCode?: string | null`: Vanity invite code, without the invite host - `verificationLevel?: GuildVerificationLevel`: Required member-verification level, omission means unavailable #### interface GuildBan Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildban Recorded ban details returned by members.fetchBan and members.fetchBans, including available reason, moderator and expiry - `bannedAt: string`: ISO 8601 time the ban was recorded - `expiresAt?: string | null`: ISO 8601 expiry, null for permanent, omitted when unavailable - `isBot: boolean`: Omitted upstream bot flag means false - `moderatorId: string`: Decimal user ID of the moderator - `reason?: string | null`: Stored reason, preserving absent versus null - `user?: User`: Public identity of the banned account, with its discriminator and display name for telling accounts with the same username apart - `username: string`: Account username returned with this ban - Inherits from `MemberReference`: `guildId`, `userId` #### interface GuildCount Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcount Member totals returned for one requested community by Fluxer's gateway - `guildId: string`: Requested guild ID as a positive decimal string with no leading zeroes, no greater than 9223372036854775807 - `memberCount: number`: Member count Fluxer reported for this community, never negative - `onlineCount: number`: Visible online-member count Fluxer reported for this community, never negative #### interface GuildCountsResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcountsresult Results from one explicit request for several community counts, ordered to match the requested IDs - `counts: readonly GuildCount[]`: Frozen count entries in the caller's requested guild-ID order - `omittedGuildIds: readonly string[]`: Frozen requested guild IDs without a returned entry, in caller input order #### interface GuildEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildedit Change an existing community's settings through the bot client - `afkChannelId?: string | null`: AFK voice-channel ID, or null or an empty string to disable automatic AFK moves, as Fluxer reads an empty string as null here - `afkTimeoutSeconds?: number`: Integer AFK timeout in seconds from 60 through 3600 - `banner?: string | null`: Base64 image data or data URI for the community banner, or null or an empty string to clear it - `contentWarningLevel?: GuildContentWarningLevel`: Whether Fluxer displays a community-wide content warning before entry - `contentWarningText?: string | null`: Warning text with 0–200 raw UTF-16 code units, or null to restore Fluxer's localized default - `defaultMessageNotifications?: GuildDefaultMessageNotification`: Default notification level for new members - `embedSplash?: string | null`: Base64 image data or data URI for the embedded-invite splash, or null or an empty string to clear it - `explicitContentFilter?: GuildExplicitContentFilter`: Explicit-media filtering level - `featureToggles?: readonly GuildFeatureToggle[]`: Complete desired set of bot-toggleable features, replacing every prior toggle in GuildFeatureToggles - `icon?: string | null`: Base64 image data or data URI for the community icon, or null or an empty string to clear it - `messageHistoryCutoff?: string | null`: ISO 8601 cutoff for members without Read Message History, or null or an empty string to disable their historical access, as Fluxer reads an empty string as null here - `name?: string`: Community name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `nsfw?: boolean`: Mark or unmark the community as adult content - `splash?: string | null`: Base64 image data or data URI for the invite splash, or null or an empty string to clear it - `splashCardAlignment?: GuildSplashCardAlignment`: Invite splash-card alignment - `systemChannelFlags?: number`: Bitwise combination of GuildSystemChannelFlags - `systemChannelId?: string | null`: System-message channel ID, or null or an empty string to disable system messages, as Fluxer reads an empty string as null here - `verificationLevel?: GuildVerificationLevel`: Verification required before members can participate, from None (0) through High (3) #### interface GuildIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guilditerationquery Limits and starting point for guilds.iterate, reading the bot's community memberships in ascending community-ID order - `after?: string`: Start after this decimal community ID, excluding it - `withCounts?: boolean`: Ask Fluxer to include approximate member and presence counts on each page, default false - Inherits from `PaginationQuery`: `maxItems`, `maxPages`, `pageSize` #### interface GuildListQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildlistquery One remote page of the authenticated bot's community memberships - `after?: string`: Existing membership cursor after which to list - `before?: string`: Existing membership cursor before which to list - `limit?: number`: Page size, integer 1–200, default 200 - `withCounts?: boolean`: Request provider-supplied approximate member and presence counts #### interface GuildListSummary Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildlistsummary Details of one community this bot belongs to, freshly returned by the REST membership list - `approximateMemberCount?: number`: Provider-supplied approximate member count when withCounts was requested and Fluxer could obtain it - `approximatePresenceCount?: number`: Provider-supplied approximate presence count when withCounts was requested and Fluxer could obtain it - `permissions?: bigint`: Raw unsigned permission bits that Fluxer made available for this membership - `threadsActive: boolean`: Whether Fluxer reports that threads, forum channels and media channels are available to the caller in this community - Inherits from `Guild`: `afkChannelId`, `afkTimeoutSeconds`, `badgeIds`, `banner`, `contentWarningLevel`, `contentWarningText`, `defaultMessageNotifications`, `embedSplash`, `explicitContentFilter`, `features`, `icon`, `id`, `messageHistoryCutoff`, `mfaLevel`, `name`, `nsfw`, `nsfwLevel`, `ownerId`, `rulesChannelId`, `splash`, `splashCardAlignment`, `systemChannelFlags`, `systemChannelId`, `vanityUrlCode`, `verificationLevel` #### interface GuildMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmember A user's membership in one community, including assigned roles, community-profile settings and available moderation state - `accentColor?: number | null`: Community-profile RGB accent color, preserving absent versus null - `avatar?: string | null`: Community avatar hash, preserving absent versus null - `banner?: string | null`: Community banner hash, preserving absent versus null - `communicationDisabledUntil?: string | null`: ISO 8601 timeout expiry, null when cleared, omitted when unavailable - `isBot: boolean`: Omitted upstream bot flags mean false - `isDeafened?: boolean`: Whether Fluxer reports this member as community-deafened, omitted when the returned member data excludes voice flags - `isMuted?: boolean`: Whether Fluxer reports this member as community-muted, omitted when the returned member data excludes voice flags - `joinedAt: string`: ISO 8601 community join timestamp - `mentionFlags?: MemberMentionPreference | null`: Community reply-mention preference, preserving absent versus null - `nickname?: string | null`: Community-specific display name - `profileFlags?: number | null`: Community-profile bitfield supplied by Fluxer, preserving absent versus null - `roleIds: readonly string[]`: Roles assigned to this member - `user?: User`: The member's public account, as Fluxer sent it with this membership, including the account display name and avatar - `username: string`: Account username - Inherits from `MemberReference`: `guildId`, `userId` #### interface GuildVanityUrl Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildvanityurl The community's current custom invitation code and shareable URL, or null fields when no custom code is set - `code: string | null`: Lowercase custom code, or null when removed - `url: string | null`: Invite URL built from the selected instance's discovered invite base, or null without a code #### interface GuildVanityUrlUsage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildvanityurlusage Custom invitation details with a use count returned by guilds.fetchVanityUrl - `uses: number`: Observed nonnegative use count, not retained or inferred by editVanityUrl - Inherits from `GuildVanityUrl`: `code`, `url` #### interface Guilds Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guilds Read community settings and bot memberships, or use the optional guild cache - `deleteOwnMessages(guildId: string, options: OwnMessageDeletionOptions): ResultAsync`: Irreversibly delete this bot's entire authored message history across one community - `edit(guildId: string, input: GuildEdit, options?: AuditedRequestOptions): ResultAsync`: Change only supplied community settings that a bot may edit - `editVanityUrl(guildId: string, code: string | null, options?: AuditedRequestOptions): ResultAsync`: Set a community's custom invite code, replace it, or pass null or an empty string to remove it, as Fluxer reads an empty code as null - `fetch(guildId: string, options?: RequestOptions): ResultAsync`: Fetch a community's identity and settings by decimal ID - `fetchCounts(guildIds: readonly string[], options?: RequestOptions): ResultAsync`: Request fresh, visibility-filtered counts for 1–100 communities over the connected gateway - `fetchPage(query?: GuildListQuery, options?: RequestOptions): ResultAsync`: Fetch one page of communities this bot belongs to, ordered by ascending guild ID - `fetchVanityUrl(guildId: string, options?: RequestOptions): ResultAsync`: Fetch a community's custom invite code, URL and use count with ManageGuild permission - `get(guildId: string): Guild | undefined`: Look up a community in the enabled guild cache, without a request or gateway connection - `iterate(query: GuildIterationQuery, options?: RequestOptions): AsyncIterable>`: Read the bot's community memberships in ascending ID order, retaining one page and never prefetching - `leave(guildId: string, options?: RequestOptions): ResultAsync`: Remove this bot from one community while preserving its authored messages #### interface MemberChunk Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberchunk One batch yielded by members.iterateChunks, with frozen member observations and optional visible presences - `count: number`: Number of batches advertised for this response, from 1 through 100 - `guildId: string`: Requested guild ID as a positive decimal string with no leading zeroes, no greater than 9223372036854775807 - `index: number`: Zero-based batch index, delivered in provider order without gaps or duplicate indices - `members: readonly GuildMember[]`: Up to 1,000 frozen member observations - `omittedUserIds?: readonly string[]`: On the final batch of an explicit user-ID request, requested IDs without a returned member, in input order - `presences?: readonly PresenceUpdate[]`: Present only when requested, including an empty array when Fluxer supplied no visible presences #### interface MemberChunkOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberchunkoptions Set how long a member stream can run and how many unread bytes it can hold - `maxPendingBytes?: number`: Maximum source-JSON bytes counted for unread batches, a positive safe integer, default 4,194,304 (4 MiB) - `timeoutMs?: number`: Total milliseconds from when the SDK accepts the request until the final batch arrives, including waits for gateway pacing, integer 1–2,147,483,647, default 30,000 - Inherits from `OperationOptions`: `signal` #### interface MemberProfileEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberprofileedit Change this bot's nickname and community-specific profile in one community - `accentColor?: number | null`: RGB integer from 0 through 16,777,215, or null to clear - `avatar?: string | null`: Base64 image data or data URI, or null or an empty string to clear - `banner?: string | null`: Base64 image data or data URI, or null or an empty string to clear - `bio?: string | null`: Community-profile biography, 1–1,000 normalized UTF-16 code units, or null or an empty string to clear it, as Fluxer reads an empty string as null here - `mentionFlags?: MemberMentionPreference | null`: Per-community reply-mention preference, or null to clear the override - `nickname?: string | null`: Community nickname, or null, an empty string or only whitespace to clear it, as Fluxer reads each of them as null - `profileFlags?: number | null`: Nonnegative 32-bit profile bitfield, or null to clear - `pronouns?: string | null`: Community-profile pronouns, 1–40 normalized UTF-16 code units, or null or an empty string to clear them, as Fluxer reads an empty string as null here #### interface MemberQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberquery Select one REST page of community members, for example to inspect a bounded set or continue after a previous user ID - `after?: string`: Return user IDs greater than this decimal ID - `limit?: number`: Maximum member count, integer 1–1000, default 100 #### interface MemberReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberreference Address one user's membership in one community for member reads and changes - `guildId: string`: Decimal guild ID - `userId: string`: Decimal user ID #### interface MemberSearchHit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchhit A member matched by the search index, with indexed identity, roles and available membership-source details - `discriminator: string`: Indexed four-digit account discriminator - `displayName: string | null`: Indexed account-wide display name, null when absent - `guildId: string`: Decimal guild ID, equal to the requested guild - `inviterId: string | null`: Decimal inviter user ID, or null when absent or redacted because the caller lacks ManageGuild - `isBot: boolean`: Indexed bot classification - `joinedAtSeconds: number`: Indexed community-join time as a nonnegative whole Unix-second value - `joinSourceType: GuildMemberJoinSourceType | null`: Indexed membership source, or null when absent or redacted because the caller lacks ManageGuild - `nickname: string | null`: Indexed community nickname, null when absent - `roleIds: readonly string[]`: Explicit indexed role IDs, not effective permissions or the implicit everyone role - `sourceInviteCode: string | null`: Indexed invite code, or null when absent or redacted because the caller lacks ManageGuild - `userId: string`: Decimal member user ID - `username: string`: Indexed account username #### interface MemberSearchIterationLimits Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchiterationlimits Limit how much work members.iterateSearch may perform while reading matching indexed members - `pageSize?: number`: Indexed hits requested per POST, 1–100 and default 100 - Inherits from `PaginationQuery`: `maxItems`, `maxPages` #### interface MemberSearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchpage Matching indexed members and counts from one search request - `guildId: string`: Decimal guild ID, equal to the requested guild - `indexing: boolean`: Whether Fluxer reported that it is currently building this community's member index - `members: readonly MemberSearchHit[]`: Frozen indexed hit observations - `pageResultCount: number`: Number of returned members in this page - `totalResultCount: number`: Indexed matches observed for this request, which can change before a later offset page #### interface MemberSearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchquery Search Fluxer's community member index by text, roles, join dates or how members joined - `isBot?: boolean`: Include only bot or only non-bot indexed members - `joinedAtAfterSeconds?: number`: Include members whose indexed community-join time is at or after this nonnegative whole Unix-second value - `joinedAtBeforeSeconds?: number`: Include members whose indexed community-join time is at or before this nonnegative whole Unix-second value - `joinSourceTypes?: readonly GuildMemberJoinSourceType[]`: Require one of these indexed membership sources - `limit?: number`: Results in this offset page, 1–100, default 25 - `offset?: number`: Zero-based indexed-result offset, a nonnegative safe integer, default 0 - `query?: string`: Text matched by Fluxer against indexed usernames, display names, nicknames, discriminators and user IDs - `roleIds?: readonly string[]`: Require every supplied role ID - `sortBy?: "relevance" | "joinedAt"`: Fluxer relevance or indexed join-time ordering - `sortOrder?: "asc" | "desc"`: Indexed join-time direction - `sourceInviteCodes?: readonly string[]`: Require one of these indexed invite codes - `userCreatedAtAfterSeconds?: number`: Include members whose indexed account-creation time is at or after this nonnegative whole Unix-second value - `userCreatedAtBeforeSeconds?: number`: Include members whose indexed account-creation time is at or before this nonnegative whole Unix-second value #### interface Members Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#members Read community members, search indexed members, moderate or ban them and change role assignments - `addRole(member: MemberReference, roleId: string, options?: AuditedRequestOptions): ResultAsync`: Grant one role to a member without replacing their other roles - `ban(target: MemberReference, input?: BanInput, options?: AuditedRequestOptions): ResultAsync`: Ban a user from a community, including a user who is not currently a member - `clearTimeout(target: MemberReference, options?: TimeoutOptions): ResultAsync`: Clear a member's timeout and return the HTTP member snapshot - `disconnect(target: VoiceConnectionReference, options?: AuditedRequestOptions): ResultAsync`: Disconnect one observed voice connection, or all active connections if target.connectionId is omitted - `editSelf(guildId: string, input: MemberProfileEdit, options?: AuditedRequestOptions): ResultAsync`: Change this bot's community profile, not its global account or another member - `fetch(member: MemberReference, options?: RequestOptions): ResultAsync`: Fetch one community member by decimal guildId and userId - `fetchBan(target: MemberReference, options?: RequestOptions): ResultAsync`: Fetch one user's active ban record in a community with BanMembers permission - `fetchBans(guildId: string, options?: RequestOptions): ResultAsync`: Fetch a community's current full ban list with BanMembers permission - `fetchCanManage(target: MemberReference, options?: CanManageOptions): ResultAsync`: Check whether the bot, or the member named by options.actorUserId, is above a target member in the community's role hierarchy - `fetchPage(guildId: string, query?: MemberQuery, options?: RequestOptions): ResultAsync`: Fetch one page of members ordered by ascending user ID - `fetchSelf(guildId: string, options?: RequestOptions): ResultAsync`: Fetch this bot's membership in a community without knowing its user ID - `get(member: MemberReference): GuildMember | undefined`: Look up a community member by decimal guildId and userId in the enabled cache, without a request - `getSelf(guildId: string): GuildMember | undefined`: Look up this bot's own membership of a community by decimal guildId in the enabled member cache, without a request - `iterate(guildId: string, query: UserIterationQuery, options?: RequestOptions): AsyncIterable>`: Read community members by ascending user ID, without connecting the gateway or downloading the community eagerly - `iterateChunks(guildId: string, query: MemberChunkQuery, options?: MemberChunkOptions): AsyncIterable>`: Request one community's members over the gateway and deliver frozen batches without accumulating a roster - `iterateSearch(guildId: string, filters: Omit & { readonly limit?: undefined }, limits: MemberSearchIterationLimits, options?: RequestOptions): AsyncIterable>`: Read unique indexed member-search hits with a bounded scan - `kick(target: MemberReference, options?: AuditedRequestOptions): ResultAsync`: Remove a member from the community, succeeding with no value after HTTP 204 - `move(target: VoiceConnectionReference, channelId: string, options?: AuditedRequestOptions): ResultAsync`: Move a member who is already in voice to a positive decimal voice-channel ID - `removeRole(member: MemberReference, roleId: string, options?: AuditedRequestOptions): ResultAsync`: Remove one role from a member while leaving other roles unchanged - `search(guildId: string, filters?: MemberSearchQuery, options?: RequestOptions): ResultAsync`: Search Fluxer's member index for a community, without using or populating the member cache - `setDeaf(target: MemberReference, input: VoiceDeafenInput, options?: AuditedRequestOptions): ResultAsync`: Set or clear the community deafen flag for a member currently connected to voice - `setMute(target: MemberReference, input: VoiceMuteInput, options?: AuditedRequestOptions): ResultAsync`: Set or clear the community mute flag for a member currently connected to voice - `setNickname(member: MemberReference, nickname: string | null, options?: AuditedRequestOptions): ResultAsync`: Set one member's nickname, or pass null to clear it - `setRoles(member: MemberReference, roleIds: readonly string[], options?: AuditedRequestOptions): ResultAsync`: Replace one member's entire assigned role list in a single PATCH request - `timeout(target: MemberReference, durationMs: number, options?: TimeoutOptions): ResultAsync`: Temporarily restrict a community member for durationMs milliseconds - `timeoutState(member: Pick, options?: TimeoutStateOptions): MemberTimeoutState`: Report whether a member is timed out, from the member's communicationDisabledUntil and a moment in time - `unban(target: MemberReference, options?: AuditedRequestOptions): ResultAsync`: Remove a user's community ban, succeeding with no value after HTTP 204 #### interface UserIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#useriterationquery Limits and starting point for ascending member or reaction-user traversal - `after?: string`: Start with decimal user IDs greater than this ID, excluding it - Inherits from `PaginationQuery`: `maxItems`, `maxPages`, `pageSize` #### interface VoiceConnectionReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#voiceconnectionreference Identifies one member and, optionally, one of that member's active voice connections - `connectionId?: string`: Connection ID from a voice-state observation, 1–32 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - Inherits from `MemberReference`: `guildId`, `userId` #### interface VoiceDeafenInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#voicedeafeninput The community deafen state to set for a member connected to voice - `deafened: boolean`: True to community-deafen the member, false to remove the community deafen #### interface VoiceMuteInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#voicemuteinput The community mute state to set for a member connected to voice - `muted: boolean`: True to community-mute the member, false to remove the community mute #### type AuditLogActionType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogactiontype One currently supported Fluxer audit-action value - `typeof AuditLogActions[keyof typeof AuditLogActions]` #### type AuditLogChangeValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogchangevalue A value recorded as a setting before or after an audit-log change - `string | number | boolean | null | readonly string[] | readonly number[] | AuditLogPermissionsDiff | readonly ForumTag[] | ForumDefaultReaction` #### type AuditLogFilter Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogfilter Choose an actor filter, action filter or both to read the audit log without changing it - `{ readonly actionType?: AuditLogActionType; readonly userId: string } | { readonly actionType: AuditLogActionType; readonly userId?: string }` #### type AuditLogIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogiterationquery Read filtered audit entries from newest to oldest, bounded by the requested page and item limits - `AuditLogIterationQueryBase & AuditLogFilter` #### type AuditLogQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogquery Read one page of community audit records for an actor, action category or both - `AuditLogQueryBase & AuditLogFilter` #### type DiscoveryApplicationEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryapplicationedit Change an existing directory application or listing with discovery.edit - `Partial` #### type GuildContentWarningLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcontentwarninglevel One Fluxer community-wide content-warning level - `typeof GuildContentWarningLevels[keyof typeof GuildContentWarningLevels]` #### type GuildDefaultMessageNotification Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guilddefaultmessagenotification One Fluxer default-notification level - `typeof GuildDefaultMessageNotifications[keyof typeof GuildDefaultMessageNotifications]` #### type GuildExplicitContentFilter Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildexplicitcontentfilter One Fluxer explicit-media filtering level - `typeof GuildExplicitContentFilters[keyof typeof GuildExplicitContentFilters]` #### type GuildFeatureToggle Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildfeaturetoggle One community feature that a bot can include in GuildEdit.featureToggles - `typeof GuildFeatureToggles[keyof typeof GuildFeatureToggles]` #### type GuildMemberJoinSourceType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmemberjoinsourcetype One known Fluxer community-member join source - `typeof GuildMemberJoinSourceTypes[keyof typeof GuildMemberJoinSourceTypes]` #### type GuildMfaLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmfalevel One Fluxer community two-factor requirement level - `typeof GuildMfaLevels[keyof typeof GuildMfaLevels]` #### type GuildNsfwLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildnsfwlevel One Fluxer community age-restriction level - `typeof GuildNsfwLevels[keyof typeof GuildNsfwLevels]` #### type GuildSplashCardAlignment Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsplashcardalignment One Fluxer invite splash-card alignment - `typeof GuildSplashCardAlignments[keyof typeof GuildSplashCardAlignments]` #### type GuildSystemChannelFlag Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsystemchannelflag One known system-channel flag bit - `typeof GuildSystemChannelFlags[keyof typeof GuildSystemChannelFlags]` #### type GuildVerificationLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildverificationlevel One Fluxer member-verification level - `typeof GuildVerificationLevels[keyof typeof GuildVerificationLevels]` #### type MemberChunkQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberchunkquery Choose the members to request through one community's gateway shard - `({ readonly all: true; readonly limit?: never; readonly query?: never; readonly userIds?: never } | { readonly all?: never; readonly limit?: never; readonly query?: never; readonly userIds: readonly s...` #### type MemberMentionPreference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membermentionpreference One of Fluxer's currently defined per-community reply-mention preferences - `typeof MemberMentionPreferences[keyof typeof MemberMentionPreferences]` #### type MemberTimeoutState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membertimeoutstate Whether a member is timed out: `"active"` while the expiry is in the future, `"none"` when the member has no timeout or it has ended, and `"unknown"` when the member snapshot does not say - `"none" | "active" | "unknown"` ### Invites and Webhooks #### function createWebhookClient Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#createwebhookclient - `createWebhookClient(options: WebhookClientOptions): WebhookClient`: Create a client that uses one webhook's token rather than bot authentication #### variable WebhookType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooktype Select a received webhook's shape by comparing its type with these constants - `ChannelFollower: 2`: A webhook created when a text channel follows an announcement channel - `Incoming: 1`: A webhook that accepts messages through its own secret token #### interface ChannelFollowerWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#channelfollowerwebhook A webhook that delivers published messages from a followed announcement channel, selected by type === WebhookType.ChannelFollower - `sourceChannel?: WebhookSourceChannel`: Followed channel while it exists and the original creator can view it - `sourceGuild?: WebhookSourceGuild`: Source community while it exists and the original creator can view it - `type: 2`: Always WebhookType.ChannelFollower - Inherits from `WebhookBase`: `avatar`, `channelId`, `creator`, `guildId`, `id`, `name` #### interface CreatedWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#createdwebhook Result of creating a webhook, including the secret needed to use it without a bot token - `credentials: WebhookCredentials`: Secret-bearing object for createWebhookClient - `webhook: IncomingWebhook`: Frozen incoming webhook details, without the required token held separately in credentials #### interface IncomingWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#incomingwebhook A webhook that accepts token-authenticated operations, selected by type === WebhookType.Incoming - `type: 1`: Always WebhookType.Incoming - Inherits from `WebhookBase`: `avatar`, `channelId`, `creator`, `guildId`, `id`, `name` #### interface Invite Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#invite An invite link and the destination details Fluxer returned to this caller - `channel: { readonly id: string; readonly name?: string | null; readonly type: number }`: Minimal destination channel identity, not a full channel snapshot - `code: string`: Provider code, not a full URL - `expiresAt?: string | null`: ISO 8601 expiry - `guild?: { readonly badgeIds?: readonly string[]; readonly features?: readonly string[]; readonly icon?: string | null; readonly id: string; readonly name: string }`: Present for community invites only - `inviter?: User`: Public identity of the creator, absent when there is no creator or Fluxer's account data is incomplete - `inviterId?: string | null`: Creator ID - `memberCount: number`: Observed destination member count - `presenceCount?: number`: Observed presence count, available for community invites - `temporary: boolean`: Whether Fluxer treats membership gained through this invite as temporary - `type: "guild" | "group"`: Community invite or invitation to an existing group DM - `url: string`: Invite URL built from the selected instance's discovered invite base and an encoded code, ready to share with intended recipients #### interface InviteCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#invitecreate Set how long an invite lasts, how many times it can be used and whether Fluxer may reuse an existing code - `maxAgeSeconds?: number`: Lifetime in seconds, integer 0–604800 - `maxUses?: number`: Maximum uses, integer 0–100 - `temporary?: boolean`: Default false - `unique?: boolean`: Default true requests a new code, where Fluxer's own default is false #### interface InviteMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#invitemetadata Invite details returned by creation and management lists, including creation time and use limits - `createdAt: string`: ISO 8601 creation time - `maxAgeSeconds?: number`: Configured lifetime in seconds - `maxUses: number`: Zero means unlimited uses until expiry - `uses: number`: Observed uses, which may change immediately - Inherits from `Invite`: `channel`, `code`, `expiresAt`, `guild`, `inviter`, `inviterId`, `memberCount`, `presenceCount`, `temporary`, `type`, `url` #### interface Invites Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#invites Inspect, create, list and revoke invite codes with the bot's credentials - `create(channelId: string, input?: InviteCreate, options?: AuditedRequestOptions): ResultAsync`: Create an invite for an accessible channel, including an existing group direct message - `delete(code: string, options?: AuditedRequestOptions): ResultAsync`: Revoke an invite code, succeeding with no value after HTTP 204 - `fetch(code: string, options?: RequestOptions): ResultAsync`: Look up an invite code without using it or joining its destination - `fetchForChannel(channelId: string, options?: RequestOptions): ResultAsync`: List a channel's management-visible invites in Fluxer's order - `fetchForGuild(guildId: string, options?: RequestOptions): ResultAsync`: List a community's management-visible invites with ManageGuild permission #### interface UnknownWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#unknownwebhook A webhook kind this SDK version does not know, selected by type === "unknown" - `rawType: number`: Numeric webhook kind Fluxer sent, outside the known WebhookType constants - `type: "unknown"`: Always "unknown" - Inherits from `WebhookBase`: `avatar`, `channelId`, `creator`, `guildId`, `id`, `name` - Inherits from `ChannelFollowerWebhook`: `sourceChannel`, `sourceGuild` #### interface WebhookBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookbase Identity, appearance and destination shared by every received webhook kind, without credentials - `avatar: string | null`: Identifier for the webhook's avatar image, not a complete URL - `channelId: string`: ID of the channel that receives its messages, as last reported by Fluxer - `creator?: User`: Account that created the webhook, from reads, lists and creation by the bot - `guildId: string`: ID of the community that owns this webhook - `id: string`: Webhook identifier, kept as a decimal string to avoid JavaScript number rounding - `name: string`: Default sender name shown on webhook messages - `type: 1 | "unknown" | 2`: A WebhookType constant, or "unknown" for a kind this SDK version does not know #### interface WebhookClient Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookclient Send and manage messages with one incoming webhook's token, without a bot token or gateway - `id: string`: The webhook's decimal ID, without its token or a token-bearing URL - `instance: Pick`: Resolve this webhook client's selected instance and get pure URL helpers for it - `[asyncDispose](): Promise`: Shut down this client and wait for cleanup, as `await using` does at the end of a block - `delete(options?: RequestOptions): ResultAsync`: Delete this webhook remotely using its token, succeeding after HTTP 204 - `deleteMessage(messageId: string, options?: WebhookMessageOperationOptions): ResultAsync`: Delete this webhook's message, succeeding with no value after HTTP 204 - `edit(input: WebhookTokenEdit, options?: RequestOptions): ResultAsync`: Change this webhook's name or avatar using its token and return metadata without credentials - `editMessage(messageId: string, input: string | WebhookMessageEdit, options?: WebhookMessageOperationOptions): ResultAsync`: Change this webhook's message and return its updated snapshot - `fetch(options?: RequestOptions): ResultAsync`: Fetch this incoming webhook's current metadata using its token, not bot authentication - `fetchMessage(messageId: string, options?: WebhookMessageOperationOptions): ResultAsync`: Fetch a message authored by this webhook in its current channel, using a decimal message ID - `send(input: string | WebhookMessageInput | MessageBuilder, options?: RequestOptions): ResultAsync`: Send a webhook message and return the created message after Fluxer's HTTP response - `shutdown(): ResultAsync`: Permanently stop this local client, reject new work, cancel active work and await transport cleanup #### interface WebhookCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookcreate Settings for a webhook that will post messages to the channel selected in the create call - `avatar?: string | null`: Base64 image data or data URI, or null or an empty string for the default avatar - `name: string`: Default sender name, 1–80 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming #### interface WebhookCredentials Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookcredentials The secret returned when an incoming webhook is created, kept separate from its public details - `id: string`: ID of the webhook this secret belongs to - `revealToken(): string`: Return the token as plain text for secure storage or transfer #### interface WebhookEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookedit Changes to an existing webhook made through a bot client's webhooks.edit operation - `avatar?: string | null`: Base64 image data or data URI, as for WebhookCreate.avatar, or null or an empty string to remove the avatar - `channelId?: string`: Move future messages within the same community, subject to Fluxer's permissions - `name?: string`: New default sender name, 1–80 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming #### interface WebhookForumPostOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookforumpostoptions Settings for starting a new post in a forum or media channel through a webhook - `appliedTagIds?: readonly string[]`: IDs of the tags to apply to the new post, at most 5 - `threadName?: string`: Name of the new post, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming #### interface WebhookForwardReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookforwardreference Ask Fluxer to copy an existing message into a forwarded webhook message in the same channel - `source: ForwardMessageInput`: Source message and optional attachment/embed selections - `type: "forward"`: Select forwarding rather than a reply with newly written content #### interface WebhookMessageEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessageedit Changes to a message previously sent by this webhook - `allowedMentions?: AllowedMentions`: Which mentions in the edited message may notify people - `content?: string | null`: New message text, or null or an empty string, which Fluxer reads as null here, to remove the existing text - `embeds?: readonly (EmbedInput | EmbedBuilder)[]`: New rich-message cards as plain objects or EmbedBuilder instances, or an empty array to remove the existing embeds - `flags?: number`: Replacement flags containing only MessageFlags.SuppressEmbeds and MessageFlags.SuppressNotifications #### interface WebhookReplyReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookreplyreference Attach a webhook message as a reply to an existing message in the webhook's destination channel - `target: MessageReference`: Message ID and channel ID to reply to - `type: "reply"`: Select reply behavior rather than copying a message as a forward #### interface WebhookSourceChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooksourcechannel A frozen snapshot of a followed announcement channel - `id: string`: Decimal ID of the followed announcement channel - `name: string`: Source channel name when Fluxer returned this snapshot #### interface WebhookSourceGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooksourceguild A frozen snapshot of the community that owns a followed announcement channel - `icon?: string | null`: Community icon hash, not a complete URL - `id: string`: Decimal ID of the source community - `name: string`: Source community name when Fluxer returned this snapshot #### interface WebhookTokenEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooktokenedit Change an incoming webhook's default name or avatar through its token-only client - `avatar?: string | null`: Base64 image data or data URI, as for WebhookCreate.avatar, or null or an empty string to remove the avatar - `name?: string`: New default sender name, 1–80 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming #### interface Webhooks Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooks Manage webhooks with this bot's credentials, without connecting the gateway - `create(channelId: string, input: WebhookCreate, options?: AuditedRequestOptions): ResultAsync`: Create an incoming webhook in a text, voice, announcement, forum or media channel using the bot's permissions - `delete(id: string, options?: AuditedRequestOptions): ResultAsync`: Delete an incoming webhook and revoke its credential, or delete a follower webhook to unfollow its source - `edit(id: string, input: WebhookEdit, options?: AuditedRequestOptions): ResultAsync`: Change the supplied incoming or follower webhook settings, including its destination channel - `fetch(id: string, options?: RequestOptions): ResultAsync`: Fetch incoming, follower or unknown-kind metadata by decimal ID, discarding any returned token - `fetchForChannel(channelId: string, options?: RequestOptions): ResultAsync`: List the channel's accessible incoming, follower and unknown-kind webhook metadata without pagination - `fetchForGuild(guildId: string, options?: RequestOptions): ResultAsync`: List the community's accessible incoming, follower and unknown-kind webhook metadata #### type Webhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhook A frozen snapshot of a webhook's kind, appearance and destination when Fluxer last returned it - `IncomingWebhook | ChannelFollowerWebhook | UnknownWebhook` #### type WebhookClientOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookclientoptions Credentials and limits for createWebhookClient - `({ readonly id: string; readonly revealToken?: never; readonly token: string } | WebhookCredentials & { readonly token?: never }) & { readonly instance?: InstanceOptions; readonly logging?: LoggingOpt...` #### type WebhookMessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessageinput A message to send through a webhook client, using the webhook's token rather than a bot token - `MessageBody & WebhookMessageOptions & WebhookForumPostOptions & { readonly messageReference?: WebhookReplyReference } | WebhookMessageOptions & { readonly appliedTagIds?: never; readonly attachments?:...` #### type WebhookMessageOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessageoptions Delivery settings shared by new, reply and forward webhook messages - `allowedMentions?: AllowedMentions`: Which mentions may notify people - `avatarUrl?: string | null`: Override the avatar for this message only - `flags?: number`: Message behavior flags from MessageFlags - `nonce?: MessageNonce`: Application-chosen correlation nonce, a string of 1–32 UTF-16 code units or a nonnegative safe integer encoded as a decimal string - `threadId?: string`: Decimal ID of a thread in the webhook's channel, sent as the thread_id query parameter so the message goes to that thread instead of the channel - `username?: string | null`: Override the sender name for this message only, using 1–80 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming #### type WebhookMessageReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessagereference Choose a reply with new content or a forward copied from an existing message when calling webhook.send - `WebhookReplyReference | WebhookForwardReference` ### Logging and Diagnostics #### interface ClientCounters Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#clientcounters Running totals for one client since creation, returned by diagnostics().counters - `cacheChangesDropped: number`: Cache changes not delivered to a cache.onChange listener because its waiting changes reached maxPendingChanges or the client shut down first - `cleanupFailures: number`: Shutdown or subscription cleanup steps that failed - `commandRejections: number`: Prefix commands rejected by a guard, cooldown or argument parser - `eventsDropped: { readonly closed: number; readonly collector: number; readonly malformed: number; readonly overflow: number }`: Events not delivered to a subscription, by reason - `eventsDroppedByEvent: Readonly>>`: Events not delivered, by event name, counted at the same places as eventsDropped - `handlerFailures: number`: Reported event handler and command failures, including a returned or resolved Err result - `hookFailures: number`: Failed onError hooks, which threw or rejected while reporting a failure - `protocolFailures: number`: Gateway messages rejected as invalid protocol data, including skipped malformed dispatches - `rateLimitWaits: number`: REST rate-limit waits that took place - `reconnects: number`: Gateway reconnection attempts after an established connection was lost - `reportsDropped: number`: Failure reports that could not be queued for a busy hook and were logged instead - `restBusy: number`: REST requests that failed with reason busy before sending, because the REST queue or the upload byte budget was full - `restRetries: number`: Automatic retries of read requests after a network error or HTTP 500, 502, 503 or 504 - `resumes: number`: Successful session resumes - `sinkFailures: number`: Log output failures: Sink and observe calls that threw or rejected, console or Effect logger output that failed, and failure reports that could not be formatted - `unknownDispatches: number`: Dispatch types the SDK does not handle - `unknownOpcodes: number`: Gateway opcodes the SDK does not handle - `unmatchedCommands: number`: Messages with the command prefix that matched no command #### interface ClientDiagnostics Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#clientdiagnostics Inspect this client's current connection state, occupied request slots and cache usage - `caches: Readonly>`: Accounting for each local cache category - `counters: ClientCounters`: Running totals of failures, drops, retries, waits and reconnects since creation, including work the logs summarized or suppressed - `events: { readonly activeHandlers: number; readonly messageCollectors: number; readonly reactionCollectors: number; readonly subscriptions: number }`: Current event sources, collectors and running callbacks owned by this client, not process memory or a shared quota - `gatewayLatencyMs: number | null`: Slowest current shard heartbeat round-trip time in milliseconds, or null under ClientState.gatewayLatencyMs availability rules - `gatewayRequests: { readonly activeCapacity: number; readonly activeRequests: number }`: Local request slots shared by fresh counts and member streams, not provider worker occupancy or a cross-process quota - `rest: { readonly activeCapacity: number; readonly activeRequests: number; readonly queuedCapacity: number; readonly queuedJsonByteCapacity: number; readonly queuedJsonBytes: number; readonly queuedRequests:...`: HTTP requests running or waiting for a slot in this client - `shards: readonly ShardState[]`: Current locally owned shard state only, in configured local order - `state: ConnectionState`: Current aggregate client lifecycle state, not an event history or a readiness promise - `uploads: { readonly byteCapacity: number; readonly reservedBytes: number }`: Attachment transfer reservations across queued and active uploads, not caller buffers or remote temporary storage #### interface ClientLogging Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#clientlogging Change what this client logs while it runs - `configure(settings: LogLevelSettings): void`: Replace the client's log level and per-category levels, and optionally its Debug categories, effective for the next record #### interface ErrorInfo Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#errorinfo Readable facts about an error attached to a log record or failure report - `cause?: ErrorInfo`: The next error in the cause chain, limited to a few levels - `code?: string`: Fixed SDK error code, or a string code property of an application error with credentials masked - `details?: Readonly>`: Safe structured facts from an SDK error - `errors?: readonly ErrorInfo[]`: The errors inside an AggregateError, such as each rejection of Promise.any, limited to the first 10 and a few levels - `hint?: string`: Suggested next step from an SDK error - `message: string`: Error message, or a text form of a thrown non-Error value - `name: string`: Error name, such as TypeError or GuildOperationError, or Non-Error value (string) for a thrown value that is not an Error - `origin: "application" | "sdk" | "provider"`: Where the failure came from - `retryable?: boolean`: Whether repeating the same call is safe and may succeed, present for SDK errors - `retryAfterMs?: number`: Milliseconds to wait before repeating a rate-limited or busy-slot call, when known - `stack?: string`: Stack trace, when the value had one - `validationErrors?: readonly { readonly explanation: string; readonly path?: string; readonly providerCode?: string }[]`: Validation problems reported by Fluxer inside an API error, masked and capped at 32 items #### interface FailureMessageReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#failuremessagereference IDs of the message involved in a failure, without its content - `channelId: string`: Channel ID - `guildId?: string`: Guild ID when the message belongs to a community - `id: string`: Message ID #### interface FailureReport Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#failurereport A failure outside any returned result, delivered to an onError hook or logged at Error with its full error - `command?: string`: Prefix command name, when a command callback failed - `error: unknown`: The original thrown, rejected or failed value - `event?: keyof EventMap`: Event whose delivery failed, when the failure belongs to an event subscription - `kind: FailureKind`: What failed - `message?: FailureMessageReference`: IDs of the message being handled, when there was one - `subscriptionId?: string`: Identifier of the subscription that owns the failed work, matching Subscription.id and log records - `taskName?: string`: Name of the scheduled task whose run failed, when client.schedule was given one in its name option - `describe(options?: { readonly color?: boolean | "auto" }): string`: Readable multi-line summary with the error's name, application code, message, stack and cause chain #### interface HandlerObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#handlerobservation One finished event handler or prefix command router invocation, including event and command middleware - `command?: string`: Canonical prefix command name when the router matched one, including denied or middleware-stopped commands - `durationMs: number`: Milliseconds from the start of the invocation until it finished - `errorCode?: string`: Stable code of the failure's error, when it has one - `errorName?: string`: Name of the failure's error, such as TypeError, for a failed invocation - `event: keyof EventMap`: Event the handler received, such as messageCreate - `outcome: "success" | "failure" | "cancelled"`: How the invocation ended - `shardId: number`: Local shard that received the event - `subscriptionId: string`: Identifier of the subscription that ran the handler, such as messageCreate#3 - `type: "handler"`: Discriminator for a finished handler invocation #### interface LogRecord Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logrecord One structured SDK log record, delivered frozen to sinks and printed by the built-in console output - `attempt?: number`: One-based attempt number for retried work - `category: LogCategory`: SDK area that produced the record - `closeCode?: number`: WebSocket close code - `code: string`: Stable dotted identifier, such as lifecycle.ready, ratelimit.wait or events.dropped - `command?: string`: Prefix command name that the record concerns - `delayMs?: number`: Milliseconds until the next attempt or the end of a wait - `durationMs?: number`: Elapsed milliseconds for the described work - `error?: ErrorInfo`: The error that the record describes - `event?: string`: Event name that the record concerns, such as messageCreate - `fields?: Readonly>`: Other safe facts, such as counts, opcodes and dispatch types - `hint?: string`: Suggested next step for an actionable warning or failure, masked like other record text - `level: LogLevel`: Record severity - `message: string`: Readable sentence describing what happened, which can change between releases - `otherErrors?: readonly ErrorInfo[]`: Other failures and defects in the same Cause, after the one in error, with credentials masked - `requestId?: number`: Monotonic per-client identifier that correlates a REST request across attempts, retries, rate limits and payloads - `route?: string`: REST route template with IDs replaced by placeholders, such as /channels/:id/messages - `shardId?: number`: Local shard that the record concerns - `status?: number`: HTTP status - `subscriptionId?: string`: Identifier of the event subscription or cache observer that the record concerns - `time: string`: ISO 8601 wall-clock time when the SDK created the record #### interface LoggingOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#loggingoptions Configure what the SDK logs and where the output goes - `categories?: Readonly>>`: Per-category minimum severity that replaces level for that category, such as { rest: "debug", cache: "warn" } - `debug?: boolean | readonly LogCategory[]`: Enable Debug records for every category with true, or for the listed categories - `dedupe?: false | { readonly windowMs?: number }`: Collapse repeated identical Warn, Error and Fatal records within a window - `format?: "pretty" | "json"`: Built-in console output format - `level?: LogThreshold`: Minimum severity to emit, default info - `sink?: LogSink | readonly LogSink[]`: Receive records instead of the built-in console output - `unsafe?: { readonly categories?: readonly LogCategory[]; readonly payloads: true }`: Print received and sent payload bodies at Trace level for debugging, for all categories or the listed ones #### interface RateLimitObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#ratelimitobservation A REST request that waits before retrying because Fluxer rate-limited it with HTTP 429 - `bodyGlobal?: boolean`: The body's global member, unlike global, which combines it with the headers - `bucket?: string`: The X-RateLimit-Bucket header, an opaque identifier of the route's rate-limit bucket - `global: boolean`: Whether Fluxer declared the limit global, which pauses every API route of this client and is shared with the other children of a supervisor - `limit?: number`: The X-RateLimit-Limit header, the number of requests the route allowance admits at once - `method: string`: HTTP method of the waiting request - `pause: "client" | "bucket"`: What the SDK paused for the wait - `remaining?: number`: The X-RateLimit-Remaining header, the number of requests the route allowance still admits - `resetAfterSeconds?: number`: The X-RateLimit-Reset-After header, seconds until the whole route allowance is available again - `retryAfterHeaderSeconds?: number`: The Retry-After header in seconds - `retryAfterSeconds?: number`: The body's retry_after member, seconds until Fluxer admits another request - `route: string`: Route template of the waiting request, with IDs replaced by placeholders - `scope?: string`: The X-RateLimit-Scope header, such as user, shared or global - `type: "rateLimit"`: Discriminator for a rate-limit wait - `waitMs: number`: Milliseconds the request waits before its retry #### interface ReconnectObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#reconnectobservation A shard begins a reconnection attempt after its established connection was lost - `shardId: number`: Local shard that reconnects - `type: "reconnect"`: Discriminator for a reconnection attempt #### interface RestObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#restobservation One finished REST request attempt - `attempt: number`: One-based attempt number - `durationMs: number`: Milliseconds from sending the request until its response headers arrived or it failed - `method: string`: HTTP method, such as GET or POST - `route: string`: Route template with IDs replaced by placeholders, such as /channels/:id/messages - `status: number | null`: HTTP status of the response, or null when no response arrived, such as after a network failure or timeout - `type: "rest"`: Discriminator for a finished REST request attempt #### interface RestRateLimitHold Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#restratelimithold Queued HTTP requests that wait for a rate limit, as diagnostics().rest.rateLimitHold reports them at the moment of the call - `reason: "client" | "global" | "route"`: Why they wait: "global" for a global limit Fluxer declared, which a supervisor shares with its other children, "client" for a pause of this client after a 429 that named no limit, such as one from a proxy, including the wait for the one request that shows whether it has passed, and "route" when only learned route limits hold them - `requests: number`: Queued requests that wait for any rate limit, including route limits during a global or client pause - `route: string | null`: Method and route template with IDs replaced, such as "POST /channels/:id/messages", of the route with the most requests waiting for its own limit, or null when none waits for a route limit - `waitMs: number`: Milliseconds until the longest known wait among them ends, rounded up #### interface ResumeObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#resumeobservation A shard resumed its session, and Fluxer replayed the missed dispatches it keeps for replay - `outageMs?: number`: Milliseconds the shard was offline, when it was connected before in this process - `shardId: number`: Local shard that resumed - `type: "resume"`: Discriminator for a resumed session #### type FailureKind Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#failurekind What failed - `"handler" | "overflow" | "collector" | "filter" | "progress" | "cache" | "observer" | "task"` #### type LogCategory Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logcategory The SDK area that produced a log record - `"lifecycle" | "gateway" | "rest" | "ratelimit" | "cache" | "events" | "commands" | "collectors" | "supervisor" | "sdk"` #### type LogLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#loglevel Severity of an SDK log record, from most to least verbose - `"trace" | "debug" | "info" | "warn" | "error" | "fatal"` #### type LogLevelSettings Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#loglevelsettings The level, categories and debug settings of LoggingOptions, which client.logging.configure changes while a client runs - `Pick` #### type LogSink Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logsink A synchronous callback that receives each emitted SDK record - `(record: LogRecord) => void` #### type LogThreshold Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logthreshold A minimum severity for SDK log output, or silent to emit nothing - `LogLevel | "silent"` #### type Observation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#observation One structured measurement passed to the observe client option - `RestObservation | RateLimitObservation | ReconnectObservation | ResumeObservation | HandlerObservation` #### type Observer Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#observer Receive structured measurements of this client's work, such as REST request durations, rate-limit waits, reconnection attempts, resumed sessions and handler durations, to export as metrics or traces to any monitoring system - `(observation: Observation) => void` ### Messages #### function voiceWaveform Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#voicewaveform - `voiceWaveform(samples: ArrayLike, sampleRate: number, options?: VoiceWaveformOptions): VoiceWaveform`: Compute a voice note's duration and waveform from decoded audio samples, with the same steps as Fluxer's apps (fluxer_app/src/features/voice/utils/VoiceMessageRecordingUtils.ts:22 to 58 and :84 to 98 at 5f3fc0b1), so the bars match a note recorded in Fluxer #### variable MessageFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageflags Known bits in a received message's flags, including server-managed publishing state - `Crossposted: 1`: Server-managed bit on an announcement message that has been published to following channels - `FailedToMentionSomeRolesInThread: 256`: Server-managed bit on a message in a thread that mentions a role, when Fluxer could not add every member of that role to the thread - `HasThread: 32`: Server-managed bit on a message that a thread was started from - `IsCrosspost: 2`: Server-managed bit on a published copy delivered to a following channel - `SourceMessageDeleted: 8`: Server-managed bit on a published copy whose source was deleted or can no longer be delivered - `SuppressEmbeds: 4`: Writable bit that hides embeds on this message - `SuppressNotifications: 4096`: Writable bit that suppresses push and desktop notifications - `VoiceMessage: 8192`: Bit that marks a voice note, an uploaded audio file unrelated to voice channel connections #### variable MessageType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagetype Fluxer's message types, the values of Message.type, such as `message.type === MessageType.UserJoin` - `Call: 3`: A call in a private conversation - `ChannelFollowAdd: 12`: A notice that this channel began following an announcement channel - `ChannelIconChange: 5`: A notice that the conversation's icon changed - `ChannelNameChange: 4`: A notice that a group conversation or thread was renamed - `ChannelPinnedMessage: 6`: A notice that a message was pinned - `Default: 0`: A regular message - `RecipientAdd: 1`: A notice that a user was added to a group conversation or a thread - `RecipientRemove: 2`: A notice that a user was removed from a group conversation or a thread - `Reply: 19`: A reply to another message, whose messageReference names the target - `ThreadCreated: 18`: A notice in a text or announcement channel that a public or announcement thread was started there - `ThreadStarterMessage: 21`: The first message of a thread started from a message - `UserJoin: 7`: A notice that a user joined the community #### interface AllowedMentions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#allowedmentions Choose which existing mentions may notify users when sending, replying or editing - `everyone?: boolean`: Permit @everyone and @here notifications, default false - `repliedUser?: boolean`: Permit notification of the reply target's author, default false - `roles?: readonly string[]`: Permit notifications for textual mentions of these role IDs, at most 100 - `users?: readonly string[]`: Permit notifications for textual mentions of these account IDs, at most 100 #### interface Attachment Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachment Information about a file attached to a received message - `contentHash?: string`: Optional server content hash - `contentType?: string`: Optional detected MIME type - `description?: string`: Optional alternative-text description - `duration?: number`: Optional audio/video duration in seconds - `expired?: boolean`: Optional server expiry observation, not a live availability check - `expiresAt?: string`: File-retention expiry reported by Fluxer as an ISO timestamp, separate from the download link's signature expiry - `filename: string`: Display filename returned by Fluxer - `flags: number`: Platform attachment bits: Spoiler is `1 << 3`, explicit media is `1 << 4` and animated media is `1 << 5` - `height?: number`: Optional image/video height in pixels - `id: string`: Decimal attachment ID - `nsfw?: boolean`: Optional server adult-content classification, separate from an uploader's explicit-media mark - `placeholder?: string`: Optional encoded preview placeholder - `proxyUrl?: string`: Proxy URL returned by Fluxer - `size: number`: File size in bytes, not the SDK's retained metadata size - `title?: string`: Optional display title - `url?: string`: File URL returned by Fluxer - `waveform?: string`: Optional base64-encoded audio waveform - `width?: number`: Optional image/video width in pixels #### interface AttachmentBytesInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentbytesinput New caller-owned bytes supplied as an attachment - `contentType?: string`: Optional MIME type hint of printable ASCII characters, 1 through 255 of them after Fluxer trims surrounding whitespace, so a blank hint fails locally - `data: Uint8Array`: File bytes, including Node buffers and subarray views - `description?: string | null`: Optional alternative-text description, 1–4,096 normalized UTF-16 code units, or null for none - `duration?: number | null`: Length of an audio file in whole seconds, from 0 through 2,147,483,647, for a voice note - `explicitMedia?: boolean`: Mark the file as explicit media, so Fluxer's apps treat it as sensitive, as they do media Fluxer's own check flags - `file?: undefined`: Do not combine a file source with data - `filename: string`: Display filename, not a filesystem path - `id?: undefined`: Not accepted for new uploads, use AttachmentReference to keep an existing attachment during an edit - `size?: undefined`: Do not supply size, the SDK uses data.byteLength - `spoiler?: boolean`: Mark the file as a spoiler - `stream?: undefined`: Do not combine a stream source with data - `title?: string | null`: Optional display title, 1–1,024 normalized UTF-16 code units, or null for none - `waveform?: string | null`: Waveform of an audio file for a voice note's preview, as Fluxer's apps draw it: Base64-encoded amplitude bytes, 1 through 4,096 UTF-16 code units after Fluxer's normalization, or at most 256 in a webhook send, the limit of Fluxer's multipart webhook schema #### interface AttachmentDownloadOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentdownloadoptions Limit the bytes and time used by an attachment download - `maxBytes: number`: Maximum bytes to accept, required and a positive safe integer - `timeoutMs?: number`: Total deadline in milliseconds, an integer from 1 through 2,147,483,647, including discovery and the GET - Inherits from `OperationOptions`: `signal` #### interface AttachmentFileInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentfileinput Attach a caller-owned file whose size is known - `contentType?: string`: Optional MIME type hint of printable ASCII characters, 1 through 255 of them after Fluxer trims surrounding whitespace, so a blank hint fails locally - `data?: undefined`: Do not combine copied bytes with a file source - `description?: string | null`: Optional alternative-text description, 1–4,096 normalized UTF-16 code units, or null for none - `duration?: number | null`: Length of an audio file in whole seconds, from 0 through 2,147,483,647, for a voice note - `explicitMedia?: boolean`: Mark the file as explicit media, so Fluxer's apps treat it as sensitive, as they do media Fluxer's own check flags - `file: AttachmentFileSource`: A Blob, File or compatible sized source, not a path string - `filename: string`: Display filename, not a filesystem path - `id?: undefined`: Not accepted for new uploads, use AttachmentReference to keep an existing attachment during an edit - `size?: undefined`: Do not supply size separately, the SDK uses file.size - `spoiler?: boolean`: Mark the file as a spoiler - `stream?: undefined`: Do not combine a separate stream with a file source - `title?: string | null`: Optional display title, 1–1,024 normalized UTF-16 code units, or null for none - `waveform?: string | null`: Waveform of an audio file for a voice note's preview, as Fluxer's apps draw it: Base64-encoded amplitude bytes, 1 through 4,096 UTF-16 code units after Fluxer's normalization, or at most 256 in a webhook send, the limit of Fluxer's multipart webhook schema #### interface AttachmentFileSource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentfilesource A file-like source the SDK can read in byte ranges for an attachment upload - `size: number`: Exact file length in bytes, a nonnegative safe integer - `slice(start?: number, end?: number, contentType?: string): AttachmentFileSource`: Return a source for the byte range from start inclusive to end exclusive - `stream(): AttachmentStreamSource`: Create a byte stream for this source #### interface AttachmentReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentreference Keep an existing attachment while editing a message, optionally changing its display title or description - `contentType?: undefined`: The existing attachment's media type cannot be replaced - `data?: undefined`: Keeping an attachment does not accept new byte data - `description?: string | null`: Replacement alternative-text description, 1–4,096 normalized UTF-16 code units, or null to clear - `duration?: undefined`: The existing attachment's duration cannot be replaced - `explicitMedia?: undefined`: The existing attachment's explicit-media mark cannot be replaced - `file?: undefined`: Keeping an attachment does not accept a new file source - `filename?: undefined`: The existing attachment cannot be renamed through this reference - `id: string`: Decimal attachment ID from the message being edited, not its message ID - `size?: undefined`: The existing attachment's byte size cannot be replaced - `spoiler?: undefined`: The existing attachment's spoiler flag cannot be replaced - `stream?: undefined`: Keeping an attachment does not accept a new stream source - `title?: string | null`: Replacement display title, 1–1,024 normalized UTF-16 code units, or null to clear - `waveform?: undefined`: The existing attachment's waveform cannot be replaced #### interface AttachmentStreamInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreaminput Attach a caller-owned stream that ends after a known number of bytes - `contentType?: string`: Optional MIME type hint of printable ASCII characters, 1 through 255 of them after Fluxer trims surrounding whitespace, so a blank hint fails locally - `data?: undefined`: Do not combine copied bytes with a stream source - `description?: string | null`: Optional alternative-text description, 1–4,096 normalized UTF-16 code units, or null for none - `duration?: number | null`: Length of an audio file in whole seconds, from 0 through 2,147,483,647, for a voice note - `explicitMedia?: boolean`: Mark the file as explicit media, so Fluxer's apps treat it as sensitive, as they do media Fluxer's own check flags - `file?: undefined`: Do not combine a file source with a stream source - `filename: string`: Display filename, not a filesystem path - `id?: undefined`: Not accepted for new uploads, use AttachmentReference to keep an existing attachment during an edit - `size: number`: Exact byte count, a nonnegative safe integer - `spoiler?: boolean`: Mark the file as a spoiler - `stream: AttachmentStreamSource`: A finite byte stream that can be consumed once, not a stream factory or an unbounded live feed - `title?: string | null`: Optional display title, 1–1,024 normalized UTF-16 code units, or null for none - `waveform?: string | null`: Waveform of an audio file for a voice note's preview, as Fluxer's apps draw it: Base64-encoded amplitude bytes, 1 through 4,096 UTF-16 code units after Fluxer's normalization, or at most 256 in a webhook send, the limit of Fluxer's multipart webhook schema #### interface AttachmentStreamOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamoptions Add an optional AbortSignal to the stream limits - `maxBytes: number`: Maximum bytes to accept, required and a positive safe integer with no upper limit of the SDK's own - `timeoutMs?: number`: Total deadline in milliseconds, an integer from 1 through 2,147,483,647, including discovery and the GET - Inherits from `OperationOptions`: `signal` #### interface AttachmentStreamReader Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamreader Reader owned by the SDK only after an upload begins consuming its AttachmentStreamSource - `cancel(reason?: unknown): PromiseLike`: Stop reading and release source resources - `read(): PromiseLike`: Resolve with the next Uint8Array chunk, or done true when no bytes remain - `releaseLock(): void`: Release this reader's exclusive stream lock #### interface AttachmentStreamReaderOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamreaderoptions Optional native stream-reader mode - `mode?: "byob"`: Native bring-your-own-buffer mode, included for compatibility #### interface AttachmentStreamSource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamsource Finite byte stream accepted as an attachment source - `getReader(options: { readonly mode: "byob" }): unknown`: Native bring-your-own-buffer reader form, included for compatibility - `getReader(): AttachmentStreamReader`: Return the default byte reader, locking the stream until releaseLock - `getReader(options?: AttachmentStreamReaderOptions): unknown`: Native optional-options overload, included for compatibility with ReadableStream #### interface Attachments Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachments Refresh signed attachment URL strings explicitly, or download received Attachment data all at once or as chunks - `download(attachment: Attachment, options: AttachmentDownloadOptions): ResultAsync, CancelledError | ConfigurationError | AttachmentDownloadFailure>`: Download attachment.url into one Uint8Array - `refreshUrls(urls: readonly string[], options?: RequestOptions): ResultAsync`: Ask Fluxer's bot-authenticated API to reissue signatures for 1 through 50 URL strings - `stream(attachment: Attachment, options: AttachmentStreamOptions): AsyncIterable, CancelledError | ConfigurationError | AttachmentDownloadFailure>>`: Read attachment.url as chunks without combining the file into one array #### interface ChannelConfirmOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#channelconfirmoptions Reaction confirmation settings for messages.confirm, where no message identifies an asker, so users is required - `users: PageTurners`: Who may confirm or cancel, such as `[userId]`, or `() => true` for anyone - Inherits from `ConfirmOptions`: `approveEmoji`, `cancelEmoji`, `signal`, `timeoutMs` #### interface ChannelPaginateOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#channelpaginateoptions Reaction page settings for messages.paginate, where no message identifies an asker, so users is required - `users: PageTurners`: Who may turn pages, such as `[userId]`, or `() => true` for anyone - Inherits from `PaginateOptions`: `idleMs`, `removeClicks`, `signal`, `timeoutMs` #### interface ConfirmOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#confirmoptions Choose who may confirm or cancel a reaction prompt, which emoji represent each choice and how long it listens - `approveEmoji?: ReactionEmojiInput`: Emoji that confirms the prompt, default `"✅"` - `cancelEmoji?: ReactionEmojiInput`: Emoji that cancels the prompt, default `"❌"` - `timeoutMs?: number`: Stop with reason timeout after this many milliseconds from registration - `users?: PageTurners`: Who may confirm or cancel - Inherits from `OperationOptions`: `signal` #### interface ConfirmResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#confirmresult Outcome of a reaction confirmation prompt after listening normally - `confirmed: boolean`: True when an allowed user reacted with approveEmoji, false when cancelled or timed out - `message: M`: Snapshot of the sent prompt message - `reason: "timeout" | "cancelled" | "confirmed"`: How the prompt ended: Confirmed by approveEmoji, cancelled by cancelEmoji, or timed out before either arrived - `userId: string | null`: Decimal account ID of the user who confirmed or cancelled, or null on timeout #### interface CrosspostSource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#crosspostsource Frozen source metadata for a published message copy or a channel-follow notice - `guild: CrosspostSourceGuild`: Frozen public source community snapshot #### interface CrosspostSourceGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#crosspostsourceguild A public community snapshot identifying where a published copy or follow notice originated - `approximateMemberCount: number | null`: Approximate member count, with null meaning unavailable rather than zero - `approximatePresenceCount: number | null`: Approximate online-member count, with null meaning unavailable rather than zero - `badgeIds?: readonly string[]`: Decimal IDs of the source community's custom badges, when Fluxer supplies them - `banner?: string | null`: Source banner hash, with null meaning no banner and omission meaning unavailable - `description: string | null`: Public discovery description, with null meaning unavailable - `discoverable: boolean`: Whether the source community is discoverable - `features: readonly string[]`: Provider-supplied public badge features, currently VERIFIED, PARTNERED and DISCOVERABLE - `icon?: string | null`: Source icon hash, with null meaning no icon and omission meaning unavailable - `id: string`: Decimal source community ID - `name: string`: Source community name #### interface Embed Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embed A rich card or generated link preview received with a message, including any child preview - `children?: readonly EmbedChild[]`: At most one server-generated child, with no further nesting - Inherits from `EmbedChild`: `audio`, `author`, `color`, `description`, `fields`, `footer`, `html`, `htmlHeight`, `htmlWidth`, `image`, `nsfw`, `provider`, `thumbnail`, `timestamp`, `title`, `type`, `url`, `video` #### interface EmbedAuthor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedauthor Author information received with a message - `iconUrl?: string`: Original icon URL - `name: string`: Server-provided label - `proxyIconUrl?: string`: Icon URL served through Fluxer's media proxy, when supplied - `url?: string`: Destination for the label #### interface EmbedAuthorInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedauthorinput Label above the embed body, with optional links for its name and icon - `iconUrl?: string`: HTTP(S) icon URL without credentials, 1 through 2048 characters after normalization - `name: string`: Required author name, 1–256 normalized UTF-16 code units - `proxyIconUrl?: undefined`: Server-assigned on received authors - `url?: string`: Destination for the author label #### interface EmbedChild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedchild One received card or link preview, without its optional child previews - `audio?: EmbedMedia`: Audio metadata, not a playable SDK resource - `author?: EmbedAuthor`: Author metadata - `color?: number`: Server-provided color integer - `description?: string`: Body text - `fields?: readonly EmbedField[]`: Frozen named sections in received order - `footer?: EmbedFooter`: Footer metadata - `html?: string`: Preview HTML supplied by Fluxer - `htmlHeight?: number`: Preferred HTML preview height in pixels - `htmlWidth?: number`: Preferred HTML preview width in pixels - `image?: EmbedMedia`: Full-size image metadata - `nsfw?: boolean`: Whether Fluxer marks the embed as NSFW - `provider?: EmbedProvider`: Preview provider metadata - `thumbnail?: EmbedMedia`: Thumbnail metadata - `timestamp?: string`: Server-provided ISO timestamp string - `title?: string`: Linked title - `type: string`: Server-provided type, including types unknown to this SDK - `url?: string`: Destination URL - `video?: EmbedMedia`: Video metadata, not a playable SDK resource #### interface EmbedField Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfield A heading and body pair received within an embed - `inline: boolean`: Whether inline display was requested - `name: string`: Server-provided heading - `value: string`: Server-provided body #### interface EmbedFieldInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfieldinput One heading and body pair within an embed, such as a Status field with value Passed - `inline?: boolean`: Request side-by-side display when space permits - `name: string`: Required heading, 0–256 normalized UTF-16 code units - `value: string`: Required body, 0–1,024 normalized UTF-16 code units #### interface EmbedFooter Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfooter Footer information received with a message - `iconUrl?: string`: Original icon URL - `proxyIconUrl?: string`: Icon URL served through Fluxer's media proxy, when supplied - `text: string`: Server-provided label #### interface EmbedFooterInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfooterinput Text beneath the embed body, with an optional icon - `iconUrl?: string`: HTTP(S) icon URL without credentials, 1 through 2048 characters after normalization - `proxyIconUrl?: undefined`: Server-assigned on received footers - `text: string`: Required footer text, 1–2,048 normalized UTF-16 code units #### interface EmbedInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedinput A card for a message's `embeds` array, with optional text, images and named sections - `audio?: undefined`: Server-assigned on received embeds - `author?: EmbedAuthorInput`: Author label and optional links - `children?: undefined`: Server-assigned on received embeds - `color?: number`: RGB integer from 0x000000 through 0xffffff - `description?: string`: Main body text - `fields?: readonly EmbedFieldInput[]`: Up to 25 named sections, in display order - `footer?: EmbedFooterInput`: Footer label and optional icon - `html?: undefined`: Server-assigned on received embeds - `htmlHeight?: undefined`: Server-assigned on received embeds - `htmlWidth?: undefined`: Server-assigned on received embeds - `image?: EmbedMediaInput`: Full-size HTTP(S) image or attachment://filename for one same-message uploaded image or video - `nsfw?: undefined`: Server-assigned on received embeds - `provider?: undefined`: Server-assigned on received embeds - `thumbnail?: EmbedMediaInput`: Small HTTP(S) image or attachment://filename for one same-message uploaded image or video - `timestamp?: string`: Time shown with the embed, an ISO 8601 string with a timezone such as `new Date().toISOString()` - `title?: string`: Heading text, up to 256 normalized UTF-16 code units - `type?: undefined`: Server-assigned on received embeds - `url?: string`: Destination URL for the title - `video?: undefined`: Server-assigned on received embeds #### interface EmbedMedia Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedmedia Information about an embed image, video or audio file, not downloaded bytes - `contentHash?: string`: Server's identifier for the media contents - `contentType?: string`: Media type such as image/png, when known - `description?: string`: Alternative text when provided - `duration?: number`: Duration in seconds - `flags: number`: Platform media bits: Explicit media is `1 << 4` and animated media is `1 << 5` - `height?: number`: Height in pixels - `placeholder?: string`: Base64 placeholder supplied by Fluxer, not decoded by the SDK - `proxyUrl?: string`: Media URL served through Fluxer's media proxy, when supplied - `url: string`: Original media location - `width?: number`: Width in pixels #### interface EmbedMediaInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedmediainput Media for an image or thumbnail field in a rich card - `contentHash?: undefined`: Server-assigned on received media - `contentType?: undefined`: Server-assigned on received media - `description?: string`: Optional description for readers who cannot see the media - `duration?: undefined`: Server-assigned on received media - `flags?: undefined`: Server-assigned on received media - `height?: undefined`: Server-assigned on received media - `placeholder?: undefined`: Server-assigned on received media - `proxyUrl?: undefined`: Server-assigned on received media - `url: string`: Required HTTP(S) image URL or attachment://filename naming an uploaded image or video for image and thumbnail fields - `width?: undefined`: Server-assigned on received media #### interface EmbedProvider Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedprovider Preview-provider information received with a message, such as the site a link preview came from - `name: string`: Server-provided label - `url?: string`: Destination for the label #### interface ForwardMessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#forwardmessageinput Input for copying a source message into a new forward - `attachmentIds?: readonly string[]`: Source attachment IDs to copy, at most ten - `embedIndices?: readonly number[]`: Source embed positions to copy, at most ten, with 0 identifying the first embed - `nonce?: MessageNonce`: Application-chosen correlation nonce, or omit for one SDK-generated nonce per messages.forward execution - `source: MessageReference`: Source address Fluxer should capture #### interface HistoryIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#historyiterationquery Limits and starting point for messages.iterateHistory, reading newest messages first - `before?: string`: Start with messages older than this decimal message ID, excluding it - Inherits from `PaginationQuery`: `maxItems`, `maxPages`, `pageSize` #### interface Message Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#message Message data returned by a request or delivered through messageCreate and messageUpdate - `attachments: readonly Attachment[]`: Attached file metadata in received order, or an empty array - `author: MessageUser`: Partial account identity supplied as the author, without profile lookup or account methods - `channelType?: number`: Fluxer's numeric type of the channel the message was sent in, such as ChannelType.Text - `content: string`: Message text without trimming, possibly empty for a message containing only media - `createdAt?: string`: Creation timestamp as an ISO 8601 string with a timezone, when supplied - `editedAt?: string | null`: Latest edit timestamp as an ISO 8601 string with a timezone - `embeds: readonly Embed[]`: Received embeds in display order, or an empty array when none were supplied - `flags?: number`: Fluxer's integer flag set, when supplied - `guildId?: string`: Community containing the message, when supplied - `member?: GuildMember`: The author's community membership as Fluxer attached it to a messageCreate or messageUpdate event, read from the community's current state at dispatch time - `mentionChannels?: readonly MessageChannelMention[] | null`: Channel mentions supplied with the message - `mentionedEveryone?: boolean`: Whether Fluxer reports an @everyone or @here mention - `mentionedHere?: boolean`: Whether Fluxer reported a here mention on a messageCreate event - `mentionRoleIds?: readonly string[]`: Mentioned role IDs in received order - `mentions?: readonly MessageUser[]`: Mentioned accounts in received order - `messageReference?: MessageContextReference | null`: Received context for a reply, forward, published copy or channel-follow notice, when supplied - `messageSnapshots?: readonly MessageSnapshot[] | null`: Copies captured when Fluxer created a forward - `nicknames?: Readonly>`: The nicknames of a group direct message, keyed by decimal user ID, as Fluxer attached them to a messageCreate event - `nonce?: string | null`: Correlation nonce returned by Fluxer, null when explicitly reported, or absent when not supplied - `nsfwEmojiIds?: readonly string[]`: Custom emoji IDs that Fluxer classified as explicit - `pinned?: boolean`: Pin status at observation time - `reactions?: readonly MessageReactionSummary[] | null`: Reaction counts at observation time, not a list of users or counts that update after delivery - `referencedMessage?: ReferencedMessage | null`: Resolved reply snapshot - `referencedUsers?: readonly MessageUser[] | null`: Accounts referenced by non-notifying text, embeds or forward snapshots - `stickers: readonly MessageSticker[]`: Attached sticker metadata in received order, or an empty array - `thread?: GuildThreadChannel`: The thread started from this message, as observed when Fluxer supplied the message - `tts?: boolean`: Whether the message was sent as text-to-speech - `type?: number`: Fluxer's integer message type, when supplied, such as MessageType.Reply - `webhookId?: string`: Webhook that sent this message, when Fluxer supplied its ID - Inherits from `MessageReference`: `channelId`, `id` #### interface MessageChannelMention Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagechannelmention Channel identity supplied in message or forward-snapshot mention data - `id: string`: Mentioned channel ID as a decimal string - `name: string`: Channel name captured with the mention - `type: number`: Fluxer's numeric channel type #### interface MessageCleanupBatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupbatch Exact IDs in one cleanup bulk-delete request, containing at most 100 IDs - `batchIndex: number`: Submission position, with 0 identifying the first batch - `messageIds: readonly string[]`: Selected IDs assigned to this request, in preview order #### interface MessageCleanupOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupoptions Settings for cleanup's batch submissions - `onProgress?: (progress: MessageCleanupProgress) => unknown`: Observe submitting, submitted and failed batches synchronously - Inherits from `RequestOptions`: `signal`, `timeoutMs` #### interface MessageCleanupPlan Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupplan Frozen preview of the exact messages to inspect before requesting deletion - `channelId: string`: Channel inspected by preview and the only channel this plan can delete from - `scannedCount: number`: Number of messages inspected, including messages rejected by the selection - `selectedMessages: readonly M[]`: Exact selected message snapshots, newest first - `stopReason: MessageCleanupStopReason`: Condition that ended preview #### interface MessageCleanupReport Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupreport Report returned after cleanup received successful responses for its selected batches - `channelId: string`: Channel targeted by the preview plan - `scannedCount: number`: Number of history messages inspected during the earlier preview, not during deletion - `selectedMessageIds: readonly string[]`: Exact IDs copied from the plan, newest first - `submittedBatches: readonly MessageCleanupBatch[]`: Batch requests that received successful HTTP responses, in submission order #### interface MessageCleanupSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupselection Choose messages for previewCleanup without deleting them - `authorId?: string`: Select only messages authored by this account ID, as a decimal string - `filter?: (message: M) => boolean`: Return true to select a message, false to skip it - `maxScanned: number`: Maximum history messages to fetch and inspect, a required integer from 1 through 10,000 - `maxSelected: number`: Maximum selected snapshots to keep in the plan, a required integer from 1 through 10,000 #### interface MessageContextReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecontextreference Received source context for a reply, forward, published copy or channel-follow notice - `channelId: string`: Source channel ID as a decimal string, required even when no source message is identified - `guildId?: string | null`: Source community ID, or null when Fluxer explicitly supplied no community - `id?: string`: Source message ID as a decimal string - `type?: number`: Reference kind, when supplied #### interface MessagePin Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagepin One pin observed by a request, pairing a message snapshot with the time it was pinned - `message: M`: Message as returned by this page, using the client's messageFields selection - `pinnedAt: string`: Time Fluxer pinned the message, preserved as an ISO 8601 string with a timezone #### interface MessagePinsPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagepinspage One frozen page of pins, ordered newest pin time first - `hasMore: boolean`: True when Fluxer reports more visible pins after this page - `items: readonly MessagePin[]`: Pins in Fluxer's received order, with no more entries than the requested limit - `nextBefore: string | null`: Timestamp to pass as before, using the last pin time when hasMore is true, otherwise null #### interface MessagePinsQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagepinsquery Choose one page of pins for messages.fetchPins - `before?: string`: Pin-time cursor as an ISO 8601 timestamp with seconds and a Z or ±hh:mm offset, such as "2026-01-01T00:00:00Z" - `limit?: number`: Maximum pins requested in this page, an integer from 1 through 50, default 50 #### interface MessageReactionEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagereactionemoji Emoji information supplied beside a message's reaction count - `animated?: boolean | null`: Animation flag when supplied, retaining null separately from absence - `id?: string | null`: Custom emoji ID, or null for an explicitly identified Unicode emoji - `name: string`: Literal Unicode emoji text or the custom emoji's name #### interface MessageReactionSummary Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagereactionsummary Count of reactions using one emoji when Fluxer supplied this message - `count: number`: Nonnegative reaction count reported at observation time - `emoji: MessageReactionEmoji`: Emoji to which this count belongs - `me?: boolean | null`: Whether the observing bot had reacted, when supplied #### interface MessageReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagereference Identify a message by its channel ID and message ID - `channelId: string`: Channel ID as a decimal string, identifying where to send the operation - `id: string`: Message ID as a decimal string #### interface MessageSearchChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchchannel Channel information supplied beside message search results - `guildId?: string`: Owning community ID, when Fluxer supplied it - `id: string`: Channel ID as a decimal string - `name?: string | null`: Observed channel name, when supplied - `type: number`: Fluxer's numeric channel type, including unrecognized future values #### interface MessageSearchIndexingPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchindexingpage Successful search response indicating that Fluxer is still preparing an index - `indexing: true`: True distinguishes this response from a MessageSearchResultsPage #### interface MessageSearchIterationLimits Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchiterationlimits Limit how many messages and pages messages.iterateSearch can read - `pageSize?: number`: Maximum messages per request, an integer from 1 through 25, default 25 - Inherits from `PaginationQuery`: `maxItems`, `maxPages` #### interface MessageSearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchquery Filters and paging settings for one messages.search request - `attachmentExtensions?: readonly string[]`: Attached file extensions to match, at most 50 strings of 1 through 32 UTF-16 code units each - `attachmentFilenames?: readonly string[]`: Attached file names to match, at most 100 strings of 1 through 1,024 UTF-16 code units each - `authorIds?: readonly string[]`: Match messages from these author IDs, at most 100 decimal strings - `authorTypes?: readonly MessageSearchAuthorType[]`: Author categories to include, at most 20 entries - `channelIds?: readonly string[]`: Limit matches to these channel IDs, at most 500 decimal strings - `content?: string`: Text for Fluxer to search, from 1 through 1,024 UTF-16 code units after trimming - `contents?: readonly string[]`: Multiple search texts, at most 100 strings, each from 1 through 1,024 UTF-16 code units - `embedProviders?: readonly string[]`: Embed provider names to match, at most 50 strings of 1 through 256 UTF-16 code units each - `embedTypes?: readonly MessageSearchEmbedType[]`: Embed categories to require, at most 20 entries, including generated and explicitly supplied embeds - `exactPhrases?: readonly string[]`: Contiguous phrases to match, at most 10 strings, each from 1 through 1,024 UTF-16 code units - `excludeAttachmentExtensions?: readonly string[]`: Attached file extensions to exclude, at most 50 strings of 1 through 32 UTF-16 code units each - `excludeAttachmentFilenames?: readonly string[]`: Attached file names to exclude, at most 100 strings of 1 through 1,024 UTF-16 code units each - `excludeAuthorIds?: readonly string[]`: Exclude messages from these author IDs, at most 100 decimal strings - `excludeAuthorTypes?: readonly MessageSearchAuthorType[]`: Author categories to exclude, at most 20 entries - `excludeChannelIds?: readonly string[]`: Exclude matches from these channels, at most 500 decimal ID strings - `excludeEmbedProviders?: readonly string[]`: Embed provider names to exclude, at most 50 strings of 1 through 256 UTF-16 code units each - `excludeEmbedTypes?: readonly MessageSearchEmbedType[]`: Embed categories to exclude, at most 20 entries, including generated and explicitly supplied embeds - `excludeHas?: readonly MessageSearchContentType[]`: Content categories to exclude, at most 20 entries - `excludeLinkHostnames?: readonly string[]`: Link hostnames to exclude, at most 100 strings of 1 through 255 UTF-16 code units each - `excludeMentions?: readonly string[]`: Exclude matches mentioning these accounts, at most 100 decimal ID strings - `has?: readonly MessageSearchContentType[]`: Content categories to require, at most 20 entries - `includeNsfw?: boolean`: Request results from channels Fluxer marks NSFW, default false - `limit?: number`: Maximum indexed messages requested, an integer from 1 through 25, default 25 - `linkHostnames?: readonly string[]`: Link hostnames to match, at most 100 strings of 1 through 255 UTF-16 code units each - `maxId?: string`: Include message IDs smaller than this decimal ID - `mentionedEveryone?: boolean`: Require or exclude messages that Fluxer's index marks as mentioning @everyone or @here - `mentions?: readonly string[]`: Match account mentions using these IDs, at most 100 decimal strings - `minId?: string`: Include message IDs greater than this decimal ID - `page?: number`: Numbered result page, an integer from 1 through 400 with 1 meaning the first page - `pinned?: boolean`: Require pinned messages with true, or unpinned messages with false, according to the index - `sortBy?: "relevance" | "timestamp"`: Request timestamp or relevance order, default timestamp - `sortOrder?: "asc" | "desc"`: Ascending or descending timestamp order, default desc #### interface MessageSearchResultsPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchresultspage Search results returned once Fluxer's index can answer the request - `channels: readonly MessageSearchChannel[]`: One channel snapshot per distinct channel in messages that is not a thread, without extras, private recipient lists or permission data - `hitsPerPage: number`: Page capacity Fluxer reported for this response, not necessarily the number of returned messages - `indexing: false`: False distinguishes this response from an index-preparation response - `messages: readonly M[]`: Indexed message snapshots using the client's messageFields selection, without extra fetches or cache writes - `page: number`: Page number Fluxer applied, starting at 1 - `threads: readonly GuildThreadChannel[]`: One thread snapshot per distinct thread in messages, with membership set on each thread the bot has joined - `total: number`: Indexed match count observed with this response, not a stable count for a multi-page run #### interface MessageSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesnapshot Copy of source content captured by Fluxer when a message was forwarded - `attachments?: readonly Attachment[] | null`: Copied attachment metadata in display order, without downloading file contents - `content?: string | null`: Source text at capture time, including null when explicitly supplied - `createdAt: string`: Source message creation time as an ISO 8601 string with a timezone - `editedAt?: string | null`: Source edit time at capture, as an ISO 8601 string, or null when explicitly supplied - `embeds?: readonly Embed[] | null`: Source embed copies in captured display order - `flags: number`: Source flag set at capture, retaining unrecognized bits - `mentionChannels?: readonly MessageChannelMention[] | null`: Source channel mentions in captured display order - `mentionRoleIds?: readonly string[] | null`: Role IDs mentioned in the source at capture time - `mentionUserIds?: readonly string[] | null`: Account IDs mentioned in the source, not account objects - `stickers?: readonly MessageSticker[] | null`: Source sticker metadata in captured display order, without downloading images - `type: number`: Fluxer's integer source message type at capture, retaining unrecognized future values #### interface MessageSticker Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesticker Sticker metadata supplied with a message or forward snapshot - `animated: boolean`: Whether Fluxer identifies this sticker as animated - `id: string`: Sticker ID as a decimal string - `name: string`: Sticker name at observation time #### interface MessageUser Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageuser Partial account identity embedded in a message response - `avatar?: string | null`: Avatar asset hash, null when explicitly absent - `avatarColor?: number | null`: Dominant avatar color, null when explicitly absent - `discriminator?: string`: Provider discriminator when supplied - `displayName?: string | null`: Account-wide display name, null when explicitly unset - `flags?: number`: Public account flags when supplied - `id: string`: Account or webhook identity as a decimal string - `isBot: boolean`: True when Fluxer marked the identity as a bot, otherwise false - `isSystem?: boolean`: Whether Fluxer marked this as an official system account - `mentionFlags?: 0 | 1 | 2`: Account-wide reply mention preference: 0 for none, 1 to prefer a mention, or 2 to prefer no mention - `username: string`: Username or webhook name at observation time #### interface Messages Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messages Read, send and change messages with client.messages, or collect future messages and reactions - `addReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: RequestOptions): ResultAsync`: Add the bot's own reaction to a message - `cleanup(plan: MessageCleanupPlan, options?: MessageCleanupOptions): ResultAsync`: Delete the exact IDs in a plan returned by previewCleanup, in sequential batches of at most 100 - `clearReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: RequestOptions): ResultAsync`: Remove all users' reactions for one emoji on the message - `clearReactions(message: MessageReference, options?: RequestOptions): ResultAsync`: Remove all users' reactions for all emoji on the message, without deleting the message - `collect(channelId: string, options?: CollectorOptions): Collector`: Collect a bounded set of future messageCreate events from one channel - `collectReactions(message: MessageReference, options?: ReactionCollectorOptions): ReactionCollector`: Collect future reaction additions for one message - `confirm(channelId: string, input: string | MessageInput | MessageBuilder, options: ChannelConfirmOptions): ResultAsync, CancelledError | ConfirmFailure>`: Send a prompt message and wait for an allowed user to confirm or cancel it with reactions, because Fluxer has no buttons - `delete(message: MessageReference, options?: AuditedRequestOptions): ResultAsync`: Delete one message, succeeding with no value after HTTP 204 - `deleteAttachment(message: MessageReference, attachmentId: string, options?: RequestOptions): ResultAsync`: Delete one attachment by its decimal ID from a message authored by this bot - `deleteMany(channelId: string, messageIds: readonly string[], options?: AuditedRequestOptions): ResultAsync`: Delete 1–100 distinct decimal message IDs from one community channel - `deleteOwnMessages(channelId: string, options: OwnMessageDeletionOptions): ResultAsync`: Irreversibly delete this bot's entire authored message history in one channel and in every thread under it, active or archived - `edit(message: MessageReference, input: string | EditMessageInput, options?: RequestOptions): ResultAsync`: Change a message's supplied fields and return its frozen updated snapshot after HTTP, without waiting for a gateway event - `fetch(message: MessageReference, options?: RequestOptions): ResultAsync`: Fetch one message from Fluxer, rather than reading the cache - `fetchCrosspostSource(target: MessageReference, options?: RequestOptions): ResultAsync`: Fetch frozen public source-community metadata for a published copy or a ChannelFollowAdd notice - `fetchHasReaction(message: MessageReference, emoji: ReactionEmojiInput, userId: string, options?: RequestOptions): ResultAsync`: Check whether one user currently has a given reaction on a message, with one request and no cache - `fetchHistory(channelId: string, query?: MessageHistoryQuery, options?: RequestOptions): ResultAsync`: Fetch one page of channel messages from Fluxer, newest first - `fetchPins(channelId: string, query?: MessagePinsQuery, options?: RequestOptions): ResultAsync, CancelledError | ConfigurationError | MessageOperationFailure>`: Fetch one frozen page of pinned messages in descending pin-time order - `fetchReactionUsers(message: MessageReference, emoji: ReactionEmojiInput, query?: ReactionUsersQuery, options?: RequestOptions): ResultAsync`: Fetch one page of users who currently have a selected reaction on the message - `forward(channelId: string, input: ForwardMessageInput, options?: RequestOptions): ResultAsync`: Copy an accessible source message into the destination channel and return the new message - `get(message: MessageReference): M | undefined`: Look up a message in this client's cache, without an HTTP request - `iterateHistory(channelId: string, query: HistoryIterationQuery, options?: RequestOptions): AsyncIterable>`: Read older messages newest first, without connecting the gateway - `iteratePins(channelId: string, query: PinIterationQuery, options?: RequestOptions): AsyncIterable, CancelledError | ConfigurationError | MessageOperationFailure | PaginationError>>`: Read pinned messages newest pin first, without adding message cache entries - `iterateReactionUsers(message: MessageReference, emoji: ReactionEmojiInput, query: UserIterationQuery, options?: RequestOptions): AsyncIterable>`: Read users who reacted with one selected emoji, in ascending user-ID order - `iterateSearch(context: MessageSearchContext, filters: Omit & { readonly limit?: undefined; readonly page?: undefined }, limits: MessageSearchIterationLimits, options?: RequestOptions): AsyncIterable>`: Read indexed search hits from the supplied community or channel context, following numbered pages without polling, prefetching or cache population - `keepTyping(channelId: string, task: (signal: AbortSignal) => PromiseLike, options?: RequestOptions): ResultAsync`: Keep the bot's typing indicator active while a task runs, returning the task's value - `paginate(channelId: string, pages: readonly PageInput[], options: ChannelPaginateOptions): ResultAsync, CancelledError | PaginateFailure>`: Show several pages in one message that people flip with ◀ and ▶ reactions, because Fluxer has no buttons - `pin(message: MessageReference, options?: AuditedRequestOptions): ResultAsync`: Pin a message using its decimal id and channelId - `previewCleanup(channelId: string, selection: MessageCleanupSelection, options?: RequestOptions): ResultAsync, CancelledError | ConfigurationError | MessageCleanupError>`: Preview a bounded message-deletion selection without deleting anything - `publish(target: MessageReference, options?: RequestOptions): ResultAsync`: Publish an ordinary source message from an announcement channel and return its frozen updated snapshot - `removeReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: RequestOptions): ResultAsync`: Remove only the bot's own reaction for the selected emoji - `removeUserReaction(message: MessageReference, emoji: ReactionEmojiInput, userId: string, options?: RequestOptions): ResultAsync`: Remove one user's reaction for one emoji, leaving other users and emoji groups unchanged - `reply(message: MessageReference, input: string | ReplyInput | MessageBuilder, options?: RequestOptions): ResultAsync`: Send a reply that references an existing message and return the new reply - `search(context: MessageSearchContext, query?: MessageSearchQuery, options?: RequestOptions): ResultAsync, CancelledError | ConfigurationError | MessageOperationFailure>`: Search messages in one explicit community or channel and return one page from Fluxer's search index - `send(channelId: string, input: string | MessageInput | MessageBuilder, options?: RequestOptions): ResultAsync`: Send text, embeds, files or stickers to a channel and return the created message - `typing(channelId: string, options?: RequestOptions): ResultAsync`: Show this bot's temporary typing indicator in a channel - `unpin(message: MessageReference, options?: AuditedRequestOptions): ResultAsync`: Remove a pin without deleting the message or its pin-created system message #### interface PaginateOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#paginateoptions Choose who may turn reaction pages and how long they listen - `idleMs?: number`: Stop after this many milliseconds without an accepted click - `removeClicks?: boolean`: Count only added arrows, and remove the clicker's arrow after each turn so the next click is another addition - `timeoutMs?: number`: Stop after this many milliseconds from registration, regardless of clicks - `users?: PageTurners`: Who may turn pages - Inherits from `OperationOptions`: `signal` #### interface PaginateResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#paginateresult How reaction pages ended after listening normally - `message: M`: Latest snapshot of the page message, as sent or as returned by the last page change - `page: number`: Position of the page shown at the end, with 0 identifying the first page - `reason: "idle" | "timeout" | "singlePage"`: The reason idle means idleMs passed without a click, timeout means timeoutMs passed and singlePage means only one page was sent, without arrows or listening #### interface PinIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#piniterationquery Limits and starting point for messages.iteratePins, reading newest pin times first - `before?: string`: Start with older pin times than this ISO 8601 timestamp with a timezone - Inherits from `PaginationQuery`: `maxItems`, `maxPages`, `pageSize` #### interface ReactionEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionemoji Emoji identity supplied in a reaction event - `animated?: boolean`: Whether a custom emoji is animated, when supplied - `id?: string`: Custom emoji ID as a decimal string - `name: string`: Literal Unicode emoji text, or the custom emoji name at event time #### interface ReactionTarget Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactiontarget Message address carried by a reaction event, with optional community context - `guildId?: string`: Owning community ID when supplied - Inherits from `MessageReference`: `channelId`, `id` #### interface ReactionUser Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionuser Account identity returned in a reaction-user page - `avatar?: string | null`: Avatar asset hash, not an image URL, null when the account has no avatar - `avatarColor?: number | null`: Dominant avatar color, or null - `discriminator?: string`: Discriminator that tells accounts with the same username apart - `displayName?: string | null`: Account-wide display name, null when unset - `flags?: number`: Public account flags - `id: string`: Account ID as a decimal string, not a JavaScript number - `isBot: boolean`: True if Fluxer marked the account as a bot, otherwise false - `isSystem?: boolean`: Whether Fluxer marked this as an official system account - `mentionFlags?: 0 | 1 | 2`: Account-wide reply mention preference: 0 for none, 1 to prefer a mention, or 2 to prefer no mention - `username: string`: Username at the time Fluxer returned this page #### interface ReactionUsersPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionuserspage One frozen page of users who reacted with the requested emoji - `hasMore: boolean`: True when Fluxer reported more users after this page - `items: readonly ReactionUser[]`: Users ordered by ascending decimal ID, with no more than the requested limit - `nextAfter: string | null`: Cursor to pass as after for the next request #### interface ReactionUsersQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionusersquery Choose one page of users who reacted with a particular emoji - `after?: string`: Return user IDs greater than this decimal ID, excluding the cursor user - `limit?: number`: Maximum users requested in this page, an integer from 1 through 100, default 25 #### interface RefreshedAttachmentUrl Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#refreshedattachmenturl One result from an explicit attachment URL refresh - `original: string`: Requested string exactly as supplied to attachments.refreshUrls - `refreshed: string`: Newly signed URL, or the original string when it is not an attachment URL of the selected instance #### interface VoiceWaveform Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#voicewaveform-1 Duration and waveform of a voice note, ready to spread into a new attachment beside its data and filename - `duration: number`: Length in whole seconds, rounded to the nearest second and at least 1, as Fluxer's apps send it - `waveform: string`: Base64 text of 1 through 256 amplitude bytes, one for each started 0.1 seconds of audio up to maxPoints, which Fluxer's apps draw as the voice note's bars #### interface VoiceWaveformOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#voicewaveformoptions Options for voiceWaveform - `maxPoints?: number`: Most amplitude bytes in the waveform, an integer from 1 through 256 #### type AttachmentInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentinput A file to send with a message, using exactly one source: Data bytes, a sized file, or a finite stream with its exact size - `AttachmentBytesInput | AttachmentFileInput | AttachmentStreamInput` #### type AttachmentStreamReadResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamreadresult The result of reading an attachment stream: A byte chunk, or done true when the stream ends - `{ readonly done?: false; readonly value: Uint8Array } | { readonly done: true; readonly value: Uint8Array | undefined } | { readonly done: true; readonly value?: Uint8Array }` #### type EditMessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#editmessageinput Input for changing an existing message without fetching or merging its old data - `MessageContent & EditMessageOptions | EditMessageOptions & { readonly attachments?: never; readonly content?: never; readonly embeds?: never; readonly flags: num...` #### type EditMessageOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#editmessageoptions Delivery settings that an edit can change alongside or instead of its body - `allowedMentions?: AllowedMentions`: Mentions permitted to notify during this edit, defaulting to none, including the reply author - `flags?: number`: Replacement writable flags containing only MessageFlags.SuppressEmbeds and MessageFlags.SuppressNotifications #### type MessageBody Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagebody Content for a new message: Text, embeds, file uploads, stickers, or a combination - `(MessageContent | { readonly attachments?: readonly AttachmentInput[]; readonly content?: string | null; readonly embeds?: readonly (EmbedInput | EmbedBuilder)[]; readonly stickerIds:...` #### type MessageCleanupOutcome Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupoutcome What is known about the failed stage's request - `"notDispatched" | "rejected" | "unknown"` #### type MessageCleanupProgress Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupprogress Progress notification for a cleanup batch, not durable evidence of individual deletions - `{ readonly batch: MessageCleanupBatch; readonly state: "submitting" } | { readonly batch: MessageCleanupBatch; readonly state: "submitted" } | { readonly batch: MessageCleanupBatch; readonly failure: ...` #### type MessageCleanupStopReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupstopreason Why preview stopped: An empty history page, the scan cap, or the selected-message cap - `"historyExhausted" | "scanLimit" | "selectionLimit"` #### type MessageContent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecontent Text, embeds and files of a message body, where at least one of content, embeds or attachments is required - `{ readonly attachments?: readonly A[]; readonly content: string | null; readonly embeds?: readonly (EmbedInput | EmbedBuilder)[] } | { readonly attachments?: readonly A[]; readonly content?: string | ...` #### type MessageCore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecore Message fields available even when messageFields is an empty array - `Pick` #### type MessageField Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagefield Name of a Message property accepted by the client's messageFields option - `keyof Message` #### type MessageFields Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagefields Message property names to retain in this client's request results, events, cache and collectors - `readonly MessageField[]` #### type MessageFlag Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageflag One known bit from MessageFlags, including server-managed bits observed in received messages - `typeof MessageFlags[keyof typeof MessageFlags]` #### type MessageHistoryQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagehistoryquery Choose one page for messages.fetchHistory - `{ readonly limit?: number } & ({ readonly after?: never; readonly around?: never; readonly before?: string } | { readonly after?: string; readonly around?: never; readonly before?: never } | { readonl...` #### type MessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageinput Input for messages.send, including content and optional delivery settings - `MessageBody & { readonly allowedMentions?: AllowedMentions; readonly flags?: number; readonly messageReference?: MessageReference; readonly nonce?: MessageNonce; readonly tts?: boolean }` #### type MessageNonce Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagenonce Correlation identifier attached to a send, reply or forward - `string | number` #### type MessageSearchAuthorType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchauthortype Author category used by Fluxer's message search: A user, bot or webhook sender - `"user" | "bot" | "webhook"` #### type MessageSearchContentType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchcontenttype Kind of content to require or exclude in Fluxer's message search - `"image" | "sound" | "video" | "file" | "sticker" | "embed" | "link" | "poll" | "snapshot"` #### type MessageSearchContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchcontext Community or channel in which to search messages visible to the bot - `{ readonly channelId?: string; readonly guildId: string } | { readonly channelId: string; readonly guildId?: string }` #### type MessageSearchEmbedType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchembedtype Embed category to require or exclude in Fluxer's message search - `"image" | "video" | "sound" | "article"` #### type MessageSearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchpage Successful outcome of one messages.search request - `MessageSearchIndexingPage | MessageSearchResultsPage` #### type PageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#pageinput One page shown by reaction pages, such as `"Page 1"` or `{ embeds: [embed] }` - `string | { readonly content?: string; readonly embeds?: readonly (EmbedInput | EmbedBuilder)[] }` #### type PageTurners Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#pageturners Who may turn pages: A list of account IDs, or a synchronous check that returns true to accept a click - `readonly string[] | ((reaction: MessageReaction) => boolean)` #### type ReactionEmojiInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionemojiinput Emoji accepted by reaction operations and reaction collector selection - `string | ReactionEmoji | GuildEmoji` #### type ReferencedMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#referencedmessage One resolved reply supplied inline with a message - `Omit` #### type ReplyInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#replyinput Content and delivery settings for messages.reply - `MessageBody & Pick & { readonly messageReference?: never }` #### type SelectedMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#selectedmessage Type of message returned for a client's messageFields selection - `F extends undefined ? Message : F extends MessageFields ? number extends F["length"] ? MessageCore & Partial> : Pick : never` ### OAuth #### variable OAuthScopes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthscopes Choose which account data the user may share, or request bot installation, in authorizationUrl - `Bot: "bot"`: Include bot installation in the consent request - `Connections: "connections"`: Read the consenting account's connected accounts - `Email: "email"`: Request the consenting account's email fields - `Guilds: "guilds"`: Read the consenting account's community memberships - `Identify: "identify"`: Read the consenting account's basic identity #### variable oauth Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauth Create confidential OAuth clients and generate PKCE and state values for authorization-code flows - `createPkce: () => OAuthPkce`: Generate a private verifier and matching S256 challenge for one authorization-code flow - `createState: () => string`: Generate an unpredictable 256-bit base64url state string for one authorization-code flow - `create(config: OAuthConfig): OAuthClient`: Create a standalone OAuth client with a clientId and server-held clientSecret #### interface OAuthActiveIntrospection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthactiveintrospection Token-check result when Fluxer reports this application's access or refresh token as active - `active: true`: Fluxer reported this token as active at the time of the request, not guaranteed for later use - `clientId: string`: Decimal ID of the application to which the token belongs - `expiresAtUnixSeconds?: number`: Provider-reported Unix seconds for an access token - `issuedAtUnixSeconds: number`: Provider-reported Unix seconds when this token was issued - `scopes: readonly string[]`: Granted scopes parsed from Fluxer's space-separated response, with no authorization decision or retention - `subjectId?: string`: Subject account ID when Fluxer includes one - `tokenType: "refresh_token" | "Bearer"`: Whether the inspected credential is an access token or refresh token #### interface OAuthAuthorization Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthauthorization Frozen description of the authorization behind a delegated access token, returned by fetchAuthorization - `application: { readonly botPublic: boolean; readonly botRequireCodeGrant: boolean; readonly description: string | null; readonly icon: string | null; readonly id: string; readonly name: string }`: The application the user authorized - `expiresAt: string`: When the access token expires, as an ISO 8601 timestamp - `scopes: readonly string[]`: Scopes granted to the token, as Fluxer lists them - `user?: OAuthIdentity`: The authorizing user, present only when the token has the identify scope #### interface OAuthAuthorizationInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthauthorizationinput Build the consent URL for an authorization-code request with PKCE - `channelId?: string`: Optional group-DM installation target for the bot scope - `codeChallenge: string`: Public hash challenge produced by oauth.createPkce, using S256 and exactly 43 base64url characters - `disableGuildSelect?: boolean`: Ask the bot-installation consent page to hide community selection - `guildId?: string`: Optional community installation target for the bot scope - `permissions?: bigint`: Optional unsigned 64-bit bot permission bitfield, serialized as a decimal provider parameter without local authorization - `redirectUri: string`: A redirect URI registered for the application, using HTTPS, or HTTP for a loopback host or an IP address such as a LAN address, without embedded credentials or a fragment - `scopes: readonly OAuthScope[]`: Provide 1–256 delegated or bot-installation scopes from OAuthScopes - `state: string`: Unpredictable caller-generated value of 1–256 well-formed UTF-16 units, such as one from oauth.createState, verified by the application on callback #### interface OAuthClient Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthclient Use a standalone OAuth client to exchange authorization codes, refresh or revoke tokens, and read delegated user data - `[asyncDispose](): Promise`: Shut down this client and wait for cleanup, as `await using` does at the end of a block - `authorizationUrl(input: OAuthAuthorizationInput, options?: RequestOptions): ResultAsync`: Build an authorization URL for the selected instance using its discovered web application URL, including its path - `exchangeCode(input: OAuthCodeExchangeInput, options?: RequestOptions): ResultAsync`: Exchange the code from an authorization callback for access and refresh tokens - `fetchAuthorization(accessToken: string, options?: RequestOptions): ResultAsync`: Fetch what the delegated user authorized with an access token: The application, the granted scopes, when the token expires and, with the identify scope, the user - `fetchConnections(accessToken: string, options?: RequestOptions): ResultAsync`: Fetch the delegated user's full connections list with a connections-scoped access token - `fetchGuilds(accessToken: string, query?: GuildListQuery, options?: RequestOptions): ResultAsync`: Fetch one bounded page of the delegated user's community memberships - `fetchIdentity(accessToken: string, options?: RequestOptions): ResultAsync`: Fetch the delegated user's identity with an access token granted the identify scope - `introspect(token: string, options?: RequestOptions): ResultAsync`: Inspect an access or refresh token using this client's ID and secret through HTTP Basic authentication - `refresh(refreshToken: string, options?: RequestOptions): ResultAsync`: Exchange a refresh token for a new access and refresh token pair - `request(accessToken: string, input: OAuthRequestInput, options?: RequestOptions): ResultAsync, CancelledError | ConfigurationError | OAuthOperationFailure>`: Send one delegated REST request to this instance's Fluxer API using the supplied user access token as Bearer authorization, without retaining or logging the token - `revoke(input: { readonly token: string; readonly tokenTypeHint?: "access_token" | "refresh_token" }, options?: RequestOptions): ResultAsync`: Revoke the supplied token and every access and refresh token for the same user and application - `shutdown(): ResultAsync`: Permanently stop OAuth work, reject new work, release the client's copied secret and abort active requests #### interface OAuthCodeExchangeInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthcodeexchangeinput Values received or retained by the application for exchangeCode after a consent callback - `code: string`: Callback code of 1–256 well-formed UTF-16 units to exchange for tokens - `codeVerifier: string`: Original secret PKCE verifier, such as the verifier returned by oauth.createPkce - `redirectUri: string`: The redirect URI used in the authorization request, under the same rules #### interface OAuthConfig Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthconfig Create a server-side OAuth client for exchanging authorization codes with an application secret - `clientId: string`: Decimal Fluxer application ID - `clientSecret: string`: Application client secret retained until shutdown - `instance?: InstanceOptions`: Omit for hosted Fluxer - `logging?: LoggingOptions`: Log records for this OAuth client, with the same settings as the client option logging #### interface OAuthConnection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthconnection One connection returned by fetchConnections with the connections scope, as an immutable value - `id: string`: Provider connection identifier, which may be empty and is not necessarily a decimal account ID - `name: string`: Provider connection name, which may be empty - `providerId: string | null`: For oauth connections, the instance connection provider ID, or null while that provider is unavailable or for other connection types - `sortOrder: number`: Provider sort-order value, preserved without reordering the returned list - `type: string`: Connection kind accepted by this SDK's response parser, currently bsky, domain or oauth - `url: string | null`: Link to the connected account or domain, or null when there is none - `verified: boolean`: Whether Fluxer reports that the connection is verified - `visibilityFlags: number`: Provider visibility bitfield, preserved as a nonnegative 32-bit integer without interpreting its flags #### interface OAuthIdentity Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthidentity Frozen basic account identity returned by fetchIdentity using a delegated access token - `avatar: string | null`: Avatar hash, or null when the account has no avatar - `avatarColor: number | null`: Dominant avatar color, for a fallback while the avatar loads, or null when unset - `discriminator: string`: Provider discriminator string, preserved without numeric conversion - `displayName: string | null`: Account-wide display name, or null when absent - `email?: string | null`: Email address when supplied, null when explicitly absent, or an omitted field when not returned - `flags?: number`: Public account flags, such as badges, absent when Fluxer omits them - `id: string`: Decimal account ID, Fluxer's id field - `isBot: boolean`: Whether Fluxer identifies this account as a bot - `isSystem: boolean`: Whether Fluxer identifies this account as a system user - `username: string`: Account username - `verified?: boolean | null`: Provider verification flag when supplied, null when unspecified, or an omitted field when not returned #### interface OAuthInactiveIntrospection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthinactiveintrospection Token-check result when Fluxer does not report the credential as active for this application - `active: false`: Fluxer did not report this token as active for this application #### interface OAuthPkce Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthpkce A PKCE secret and its public hash challenge, used to prove that the code exchange belongs to the authorization request - `challenge: string`: Public S256 challenge to pass to authorizationUrl - `verifier: string`: Secret to retain for exchangeCode, not to publish in the consent URL or logs #### interface OAuthRequestInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthrequestinput One delegated REST request sent with a user's OAuth access token through an OAuthClient - `body?: unknown`: JSON-serializable body for POST, PUT, PATCH or DELETE - `headers?: Readonly>`: Additional HTTP request headers - `method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"`: HTTP method - `path: string`: API path after /v1, such as /users/@me, of at most 2,048 characters - `query?: Readonly>`: Query parameters appended to the path in insertion order #### interface OAuthRequestResponse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthrequestresponse One accepted 2xx response from OAuthClient.request - `body: T`: Parsed JSON value, UTF-8 text for text/* responses, or undefined for an empty response - `headers: Readonly>`: Response headers with lower-case names - `status: number`: Accepted 2xx HTTP status code #### interface OAuthTokens Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthtokens Credentials returned by a successful exchangeCode or refresh call - `accessToken: string`: Bearer credential for delegated reads, not a bot token - `expiresInSeconds: number`: Provider-reported lifetime in seconds, not an absolute expiry or a scheduled refresh - `refreshToken: string`: Credential for an explicit refresh call, which may rotate it - `scopes: readonly string[]`: Granted scopes as returned by Fluxer - `tokenType: "Bearer"`: Authentication scheme for the access token #### type OAuthIntrospection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthintrospection Result of introspect, which explicitly asks Fluxer whether a token is active for this application - `OAuthInactiveIntrospection | OAuthActiveIntrospection` #### type OAuthScope Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthscope One supported authorization scope from OAuthScopes - `typeof OAuthScopes[keyof typeof OAuthScopes]` ### Options #### interface AuditedRequestOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#auditedrequestoptions Settings for a remote mutation that Fluxer can record in the community audit log: Its deadline, an optional AbortSignal and an optional reason - `auditReason?: string`: Optional audit-log reason, 1–512 UTF-16 code units after U+000C and U+202E removal and trimming, in any language - Inherits from `RequestOptions`: `signal`, `timeoutMs` #### interface CanManageOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#canmanageoptions Settings for members.fetchCanManage and roles.fetchCanManage: Whose rank to check, whether enabled caches may replace remote reads and the shared deadline of any remote reads - `actorUserId?: string`: User ID of the member whose rank is checked against the target, such as the moderator who ran a command - `preferCache?: boolean`: Read each observation from an enabled cache before fetching it - Inherits from `RequestOptions`: `signal`, `timeoutMs` #### interface ClientOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#clientoptions Configure a bot client before connecting or making requests - `cache?: { readonly channels?: boolean | ResourceCacheSettings; readonly directMessages?: boolean | ResourceCacheSettings; readonly emojis?: boolean | ResourceCacheSettings<...`: Keep bounded, memory-only resource snapshots for local lookups - `connection?: { readonly maxStartupAttempts?: number; readonly recovery?: ConnectionRecoveryOptions; readonly startupTimeoutMs?: number }`: Set the startup deadline and retry limit used by both connect and run, and the recovery timing after readiness - `gateway?: GatewayOptions`: Gateway protocol handling and the optional fields sent in each new session's Identify - `instance?: InstanceOptions`: Select a self-hosted or other Fluxer instance instead of hosted Fluxer - `logging?: LoggingOptions`: Configure this client's log output without changing another client - `messageFields?: F`: Choose which optional message fields the application receives - `observe?: Observer`: Receive structured measurements of this client's work to export as metrics or traces to any monitoring system: Each REST request attempt with its route template, status and duration, rate-limit waits, reconnection attempts, resumed sessions, and each handler and command invocation with its duration and outcome - `onError?: (report: FailureReport) => unknown`: Receive every failure that has no returned result: Event handler, command, collector callback and filter, cleanup progress and cache-callback failures, subscriptions stopped by overflow, and failed state observers - `rest?: RestOptions`: Tune how many REST requests this client runs and queues, and the default operation deadline - `sharding?: ShardingOptions | "auto"`: Divide community gateway traffic into numbered connections, called shards, and choose which this client owns - `token: string | undefined`: Bot token used to authenticate requests and gateway connections, commonly read from the process environment - `transport?: TransportOptions`: Replace the HTTP and WebSocket implementations or the User-Agent this client sends - `uploads?: { readonly maxBytes?: number }`: Bound the attachment transfer bytes reserved by queued and active upload operations #### interface ConnectionRecoveryOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#connectionrecoveryoptions Retry timing for shards that lost an established session - `attemptTimeoutMs?: number`: Time allowed for one recovery attempt in milliseconds, covering discovery, the handshake and Identify or Resume, an integer from 1,000 through 2,147,483,647 - `healthyResetMs?: number`: Continuous connected time in milliseconds after which the next connection loss restarts the backoff sequence from minDelayMs, an integer from 1,000 through 2,147,483,647 - `maxDelayMs?: number`: Largest backoff ceiling in milliseconds, an integer from minDelayMs through 2,147,483,647 - `minDelayMs?: number`: Ceiling for the first recovery retry in milliseconds, an integer from 100 through 2,147,483,647 #### interface ExpressionDeleteOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#expressiondeleteoptions Choose whether deleting a community emoji or sticker also requests removal of its image asset - `purge?: boolean`: False/default removes the community entry without asking to purge its image - Inherits from `AuditedRequestOptions`: `auditReason`, `signal`, `timeoutMs` #### interface GatewayOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#gatewayoptions Optional gateway settings: Malformed-dispatch handling and the fields sent in each new session's Identify - `flags?: { readonly debounceMessageReactions?: boolean }`: Identify session flags - `ignoredEvents?: readonly string[] | "auto"`: Dispatch types Fluxer should not send to this client's sessions, to save bandwidth and decoding - `onMalformedDispatch?: "skip" | "terminate"`: What to do when Fluxer sends a known dispatch that fails validation - `presence?: PresenceInput`: Initial presence: The status each new session's Identify carries, and the first presence intent, as if presence.set were called with it before connecting #### interface InstanceOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#instanceoptions Connect a client to a selected Fluxer server instead of the hosted default - `allowInsecure?: boolean`: Permit HTTP and WS endpoints only for an explicitly selected local or self-hosted instance - `url: string`: Absolute HTTPS root URL that publishes `/.well-known/fluxer`, such as https://fluxer.example #### interface OperationOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#operationoptions Add cancellation to a default-API operation with an AbortController's signal - `signal?: OperationSignal`: Pass an AbortController's signal to cancel this operation and await its required cleanup #### interface OperationSignal Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#operationsignal The AbortSignal members used by default-API operations - `aborted: boolean`: Whether cancellation has already been requested - `addEventListener(type: "abort", listener: () => void, options?: { once?: boolean }): void`: Register the callback that requests operation cancellation when the signal aborts - `removeEventListener(type: "abort", listener: () => void): void`: Remove the operation's callback when its observation ends #### interface OwnMessageDeletionOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#ownmessagedeletionoptions Required confirmation and deadline for deleting this bot's entire authored history in a channel or community - `confirm: true`: Must be true to acknowledge that the deletion is irreversible and cannot be rolled back - Inherits from `RequestOptions`: `signal`, `timeoutMs` #### interface PaginationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#paginationquery Read a Fluxer list one page at a time through an iterator or Effect Stream - `maxItems: number`: Maximum items to deliver, a required positive safe integer - `maxPages?: number`: Maximum page requests, a positive safe integer - `pageSize?: number`: Maximum items to request per page, reduced when fewer items remain under maxItems #### interface PermissionFetchOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#permissionfetchoptions Settings for permissions.fetch: The shared deadline of its reads, and whether enabled caches may replace them - `preferCache?: boolean`: Read each observation from an enabled cache before fetching it, such as to decide for every command without a request - Inherits from `RequestOptions`: `signal`, `timeoutMs` #### interface RequestOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#requestoptions Settings for one remote operation: Its deadline and an optional AbortSignal - `timeoutMs?: number`: Total milliseconds for this call, an integer from 1 through 2,147,483,647 - Inherits from `OperationOptions`: `signal` #### interface RestOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#restoptions Tune how many REST requests one client runs and queues, and the deadline an operation gets when it omits timeoutMs - `concurrency?: number`: Fluxer API requests, including signed attachment upload parts, that may run at once - `defaultTimeoutMs?: number`: Deadline in milliseconds for a REST operation or attachment download that omits timeoutMs - `maxQueued?: number`: Requests of both kinds that may wait for a slot or a rate-limit window - `mediaConcurrency?: number`: Attachment downloads that may run at once, in slots separate from API requests so a lazy upload source can still read its own attachment - `queuedJsonMaxBytes?: number`: JSON request-body bytes that waiting requests may hold together, excluding attachment transfers #### interface RunBotOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#runbotoptions Configure how runBot stops - `drainMs?: number`: Milliseconds that a requested stop lets running work finish before cancelling it, default 5,000 - `processSignals?: boolean`: Handle SIGINT and SIGTERM for this run only, as a requested stop that drains for drainMs - `reportFailure?: boolean`: Report a failed run for the process, enabled by default - `signal?: OperationSignal`: Stop and close the bot when this signal aborts, as a normal stop #### interface TimeoutOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#timeoutoptions Timeout-only request settings - `timeoutReason?: string | null`: Optional timeout audit metadata - Inherits from `AuditedRequestOptions`: `auditReason`, `signal`, `timeoutMs` #### interface TimeoutStateOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#timeoutstateoptions Settings for members.timeoutState - `now?: Date`: Moment to evaluate the timeout at, such as to test a snapshot or a future time #### interface TransportOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#transportoptions Replace the HTTP and WebSocket implementations one client uses, or the User-Agent it sends - `fetch?: (url: string, init: RequestInit) => Promise`: Fetch-compatible function for every HTTP request, called without a this value - `userAgent?: string`: User-Agent header sent with every HTTP request and gateway handshake, replacing the default `Fluxerly.js/ (+)` - `webSocket?: (url: string, options: WebSocketOptions) => WebSocketLike`: Open one gateway WebSocket for the URL, applying every WebSocketOptions setting #### interface WebSocketLike Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#websocketlike The subset of a ws WebSocket that the gateway uses - `readyState: number`: Ready state in the ws and WHATWG numbering: 0 connecting, 1 open, 2 closing, 3 closed - `close(code: number): void`: Start a close handshake with the given WebSocket close code - `off(event: "message", listener: (data: string | ArrayBuffer | Uint8Array | readonly Uint8Array[], binary: boolean) => void): unknown`: Remove a message listener added with on - `off(event: "error", listener: (error: Error & { code?: string }) => void): unknown`: Remove an error listener added with on - `off(event: "close", listener: (() => void) | ((code: number) => void)): unknown`: Remove a close listener added with on or once - `on(event: "message", listener: (data: string | ArrayBuffer | Uint8Array | readonly Uint8Array[], binary: boolean) => void): unknown`: Receive each message with binary true for binary frames - `on(event: "error", listener: (error: Error & { code?: string }) => void): unknown`: Receive transport failures - `on(event: "close", listener: (code: number) => void): unknown`: Receive the close code once the connection has closed - `once(event: "close", listener: () => void): unknown`: Receive the next close once, used while waiting for a close handshake to finish - `send(data: string, callback: (error?: Error) => void): void`: Send one text frame, then call callback once, with an error when the frame could not be written - `terminate(): void`: Drop the connection immediately without a close handshake #### interface WebSocketOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#websocketoptions Options the gateway passes to a custom WebSocket factory for each connection it opens - `followRedirects: false`: Always false: The gateway URL is used as given and a redirect fails the connection attempt - `headers: Readonly>`: Handshake headers to send - `maxPayload: number`: Largest accepted message in bytes - `perMessageDeflate: false`: Always false: Compression is never negotiated, so received sizes are wire sizes #### interface WebhookMessageOperationOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#webhookmessageoperationoptions Request settings for fetching, editing or deleting a message that a webhook client sent - `threadId?: string`: Decimal ID of the thread that holds the message, sent as the thread_id query parameter - Inherits from `RequestOptions`: `signal`, `timeoutMs` ### REST Routes #### interface RestRoutes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/rest-routes/#restroutes Every Fluxer API route that client.rest.call checks at compile time, keyed by its method and path template as Fluxer's documentation writes them, such as `POST /channels/{channel_id}/messages` - `DELETE /channels/{channel_id}: Route & QueryParameters<{ readonly delete_messages?: boolean; readonly silent?: boolean }> & OptionalJsonBody, undefined>`: Delete a channel - `DELETE /channels/{channel_id}/messages/{message_id}: Route, undefined>`: Delete a message - `DELETE /channels/{channel_id}/messages/{message_id}/attachments/{attachment_id}: Route, undefined>`: Delete a message attachment - `DELETE /channels/{channel_id}/messages/{message_id}/reactions: Route, undefined>`: Remove all reactions from message - `DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}: Route, undefined>`: Remove all reactions with emoji - `DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/{target_id}: Route & QueryParameters<{ readonly session_id?: string }>, undefined>`: Remove reaction from message - `DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me: Route & QueryParameters<{ readonly session_id?: string }>, undefined>`: Remove own reaction from message - `DELETE /channels/{channel_id}/messages/ack: Route, undefined>`: Clear channel read state - `DELETE /channels/{channel_id}/permissions/{overwrite_id}: Route, undefined>`: Delete permission overwrite - `DELETE /channels/{channel_id}/pins/{message_id}: Route, undefined>`: Unpin a message - `DELETE /channels/{channel_id}/recipients/{user_id}: Route & QueryParameters<{ readonly delete_messages?: boolean; readonly silent?: boolean }> & OptionalJsonBody, undefined>`: Remove recipient from group DM - `DELETE /channels/{channel_id}/tags/{tag_id}: Route, ChannelResponse>`: Delete a forum tag - `DELETE /channels/{channel_id}/thread-members/{user_id}: Route, undefined>`: Remove a thread member - `DELETE /channels/{channel_id}/thread-members/@me: Route, undefined>`: Leave a thread - `DELETE /guilds/{guild_id}/bans/{user_id}: Route, undefined>`: Unban guild member - `DELETE /guilds/{guild_id}/discovery: Route, undefined>`: Withdraw discovery application - `DELETE /guilds/{guild_id}/emojis/{emoji_id}: Route & QueryParameters<{ readonly purge?: boolean }>, undefined>`: Delete guild emoji - `DELETE /guilds/{guild_id}/members/{user_id}: Route, undefined>`: Remove guild member - `DELETE /guilds/{guild_id}/members/{user_id}/roles/{role_id}: Route, undefined>`: Remove role from guild member - `DELETE /guilds/{guild_id}/roles/{role_id}: Route, undefined>`: Delete guild role - `DELETE /guilds/{guild_id}/roles/hoist-positions: Route, undefined>`: Reset role hoist positions - `DELETE /guilds/{guild_id}/stickers/{sticker_id}: Route & QueryParameters<{ readonly purge?: boolean }>, undefined>`: Delete guild sticker - `DELETE /invites/{invite_code}: Route, undefined>`: Delete invite - `DELETE /users/@me/channels/{channel_id}/pin: Route, undefined>`: Unpin direct message channel - `DELETE /users/@me/guilds/{guild_id}: Route & QueryParameters<{ readonly delete_messages?: boolean }> & OptionalJsonBody, undefined>`: Leave guild - `DELETE /webhooks/{webhook_id}: Route, undefined>`: Delete webhook - `GET /.well-known/fluxer: Route<{ … }, WellKnownFluxerResponse>`: Get instance discovery document - `GET /applications/@me: Route<{ … }, ApplicationsMeResponse>`: Get current bot application - `GET /channels/{channel_id}: Route, ChannelResponse>`: Fetch a channel - `GET /channels/{channel_id}/follower-stats: Route, ChannelFollowerStatsResponse>`: Get announcement channel follower stats - `GET /channels/{channel_id}/invites: Route, InviteMetadataListResponse>`: List channel invites - `GET /channels/{channel_id}/messages: Route & QueryParameters<{ readonly after?: SnowflakeType; readonly around?: SnowflakeType; readonly before?: SnowflakeType; readonly limit?: number }>, MessageListRespons...`: List messages in a channel - `GET /channels/{channel_id}/messages/{message_id}: Route, MessageResponseSchema>`: Fetch a message - `GET /channels/{channel_id}/messages/{message_id}/crosspost-source: Route, CrosspostSourceResponse>`: Get the source community of a published message copy - `GET /channels/{channel_id}/messages/{message_id}/reactions/{emoji}: Route & QueryParameters<{ readonly after?: SnowflakeType; readonly limit?: number }>, ReactionUsersListResponse>`: List users who reacted with emoji - `GET /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/users: Route & QueryParameters<{ readonly after?: SnowflakeType; readonly limit?: number }>, ReactionUsersPageResponse>`: List users who reacted with emoji - `GET /channels/{channel_id}/messages/pins: Route & QueryParameters<{ readonly before?: string; readonly limit?: number }>, ChannelPinsResponse>`: List pinned messages - `GET /channels/{channel_id}/slowmode: Route, ChannelSlowmodeStateResponse>`: Fetch slowmode state - `GET /channels/{channel_id}/thread-members: Route & QueryParameters<{ readonly after?: SnowflakeType; readonly limit?: number; readonly with_member?: boolean }>, ThreadMemberListResponse>`: List thread members - `GET /channels/{channel_id}/thread-members/{user_id}: Route & QueryParameters<{ readonly with_member?: boolean }>, ThreadMemberResponse>`: Get a thread member - `GET /channels/{channel_id}/threads/archived/private: Route & QueryParameters<{ readonly before?: string; readonly limit?: number }>, ArchivedThreadsResponse>`: List private archived threads - `GET /channels/{channel_id}/threads/archived/public: Route & QueryParameters<{ readonly before?: string; readonly limit?: number }>, ArchivedThreadsResponse>`: List public archived threads - `GET /channels/{channel_id}/threads/search: Route & QueryParameters<{ readonly archived?: boolean; readonly limit?: number; readonly max_id?: SnowflakeType; readonly min_id?: SnowflakeType; readonly name?: string; ...`: Search threads - `GET /channels/{channel_id}/users/@me/threads/archived/private: Route & QueryParameters<{ readonly before?: SnowflakeType; readonly limit?: number }>, ArchivedThreadsResponse>`: List joined private archived threads - `GET /channels/{channel_id}/webhooks: Route, WebhookListResponse>`: List channel webhooks - `GET /discovery/categories: Route<{ … }, DiscoveryCategoryListResponse>`: List discovery categories - `GET /discovery/guilds: Route, GuildEmojiMetadataResponse>`: Get emoji metadata - `GET /emojis/{emoji_id}/source: Route, GuildExpressionSourceGuildResponse>`: Get emoji source guild - `GET /experiments: Route<{ … }, ExperimentAssignmentsResponse>`: Get the experiment assignments - `GET /gateway/bot: Route<{ … }, GatewayBotResponse>`: Get gateway information - `GET /guilds/{guild_id}: Route, GuildResponse>`: Get guild information - `GET /guilds/{guild_id}/audit-logs: Route & QueryParameters<{ readonly action_type?: AuditLogActionTypeInput; readonly after?: SnowflakeType; readonly before?: SnowflakeType; readonly limit?: number; readonly...`: List guild audit logs - `GET /guilds/{guild_id}/bans: Route, GuildBanListResponse>`: List guild bans - `GET /guilds/{guild_id}/bans/{user_id}: Route, GuildBanResponse>`: Get guild ban - `GET /guilds/{guild_id}/channels: Route, ChannelListResponse>`: List guild channels - `GET /guilds/{guild_id}/discovery: Route, DiscoveryStatusResponse>`: Get discovery status - `GET /guilds/{guild_id}/emojis: Route, GuildEmojiWithUserListResponse>`: List guild emojis - `GET /guilds/{guild_id}/invites: Route, InviteMetadataListResponse>`: List guild invites - `GET /guilds/{guild_id}/members: Route & QueryParameters<{ readonly after?: SnowflakeType; readonly limit?: number }>, GuildMemberListResponse>`: List guild members - `GET /guilds/{guild_id}/members/{user_id}: Route, GuildMemberResponse>`: Get guild member by user ID - `GET /guilds/{guild_id}/members/@me: Route, GuildMemberResponse>`: Get current user guild member - `GET /guilds/{guild_id}/roles: Route, GuildRoleListResponse>`: List guild roles - `GET /guilds/{guild_id}/stickers: Route, GuildStickerWithUserListResponse>`: List guild stickers - `GET /guilds/{guild_id}/threads/active: Route, ActiveThreadsResponse>`: List active guild threads - `GET /guilds/{guild_id}/vanity-url: Route, GuildVanityURLResponse>`: Get guild vanity URL - `GET /guilds/{guild_id}/webhooks: Route, WebhookListResponse>`: List guild webhooks - `GET /instance/badges: Route, InstanceBadgesResponse>`: List community badges - `GET /invites/{invite_code}: Route, InviteResponseSchema>`: Get invite information - `GET /ip: Route<{ … }, GeolocationResponse>`: Get client geolocation - `GET /oauth2/applications/{id}/public: Route, ApplicationPublicResponse>`: Get public application - `GET /oauth2/applications/@me: Route<{ … }, OAuth2ApplicationsMeResponse>`: Get current applications endpoint - `GET /stickers/{sticker_id}/metadata: Route, GuildStickerMetadataResponse>`: Get sticker metadata - `GET /stickers/{sticker_id}/source: Route, GuildExpressionSourceGuildResponse>`: Get sticker source guild - `GET /users/{target_id}/profile: Route & QueryParameters<{ readonly guild_id?: SnowflakeType; readonly with_mutual_friends?: boolean; readonly with_mutual_guilds?: boolean }>, UserProfileFullResponse>`: Get user profile - `GET /users/{user_id}: Route, UserPartialResponse>`: Get user by ID - `GET /users/@me: Route<{ … }, UserPrivateResponse>`: Get current user profile - `GET /users/@me/channels: Route<{ … }, ChannelListResponse>`: List private channels - `GET /users/@me/guilds: Route, GuildListResponse>`: List current user guilds - `GET /users/check-tag: Route, UserTagCheckResponse>`: Check username tag availability - `GET /webhooks/{webhook_id}: Route, WebhookResponse>`: Get webhook - `PATCH /channels/{channel_id}: Route & OptionalJsonBody, ChannelResponse>`: Update channel settings - `PATCH /channels/{channel_id}/messages/{message_id}: Route & JsonBody & MessageFiles, MessageResponseSchema>`: Edit a message - `PATCH /guilds/{guild_id}: Route & OptionalJsonBody, GuildResponse>`: Update guild settings - `PATCH /guilds/{guild_id}/channels: Route & JsonBody, undefined>`: Update channel positions - `PATCH /guilds/{guild_id}/discovery: Route & OptionalJsonBody, DiscoveryApplicationResponse>`: Edit discovery application - `PATCH /guilds/{guild_id}/emojis/{emoji_id}: Route & JsonBody, GuildEmojiResponse>`: Update guild emoji - `PATCH /guilds/{guild_id}/members/{user_id}: Route & OptionalJsonBody, GuildMemberResponse>`: Update guild member - `PATCH /guilds/{guild_id}/members/@me: Route & OptionalJsonBody, GuildMemberResponse>`: Update current user guild member - `PATCH /guilds/{guild_id}/roles: Route & JsonBody, undefined>`: Update role positions - `PATCH /guilds/{guild_id}/roles/{role_id}: Route & OptionalJsonBody, GuildRoleResponse>`: Update guild role - `PATCH /guilds/{guild_id}/roles/hoist-positions: Route & JsonBody, undefined>`: Update role hoist positions - `PATCH /guilds/{guild_id}/stickers/{sticker_id}: Route & JsonBody, GuildStickerResponse>`: Update guild sticker - `PATCH /guilds/{guild_id}/vanity-url: Route & OptionalJsonBody, GuildVanityURLUpdateResponse>`: Update guild vanity URL - `PATCH /webhooks/{webhook_id}: Route & OptionalJsonBody, WebhookResponse>`: Update webhook - `POST /attachments/refresh-urls: Route, RefreshAttachmentUrlsResponse>`: Refresh attachment URLs - `POST /auth/logout: Route<{ … }, undefined>`: Logout account - `POST /channels/{channel_id}/attachments: Route & JsonBody, PresignedAttachmentUploadResponse>`: Request presigned attachment upload URLs - `POST /channels/{channel_id}/attachments/complete: Route & JsonBody, CompleteMultipartAttachmentUploadResponse>`: Finalize multipart attachment uploads - `POST /channels/{channel_id}/followers: Route & JsonBody, FollowedChannelResponse>`: Follow an announcement channel - `POST /channels/{channel_id}/invites: Route & OptionalJsonBody, InviteMetadataResponseSchema>`: Create channel invite - `POST /channels/{channel_id}/messages: Route & JsonBody & MessageFiles, MessageResponseSchema>`: Send a message - `POST /channels/{channel_id}/messages/{message_id}/crosspost: Route, MessageResponseSchema>`: Publish a message to following channels - `POST /channels/{channel_id}/messages/{message_id}/threads: Route & JsonBody, ThreadChannelResponse>`: Start a thread from a message - `POST /channels/{channel_id}/messages/bulk-delete: Route & JsonBody, undefined>`: Bulk delete messages - `POST /channels/{channel_id}/messages/bulk-delete-mine: Route & OptionalJsonBody, undefined>`: Bulk delete my messages in channel - `POST /channels/{channel_id}/messages/purge: Route, MessagePurgeResponse>`: Purge all messages in personal notes - `POST /channels/{channel_id}/pins/ack: Route, undefined>`: Acknowledge new pin notifications - `POST /channels/{channel_id}/post-data: Route & JsonBody, ThreadPostDataResponse>`: Get forum post data - `POST /channels/{channel_id}/tags: Route & JsonBody, ChannelResponse>`: Create a forum tag - `POST /channels/{channel_id}/threads: Route & JsonBody, StartForumThreadResponse>`: Start a thread - `POST /channels/{channel_id}/typing: Route, TypingCooldownResponse | undefined>`: Indicate typing activity - `POST /channels/{channel_id}/webhooks: Route & JsonBody, WebhookCreateResponse>`: Create webhook - `POST /guilds/{guild_id}/channels: Route & JsonBody, ChannelResponse>`: Create guild channel - `POST /guilds/{guild_id}/delete: Route & OptionalJsonBody, undefined>`: Delete guild - `POST /guilds/{guild_id}/discovery: Route & JsonBody, DiscoveryApplicationResponse>`: Apply for guild discovery - `POST /guilds/{guild_id}/emojis: Route & JsonBody, GuildEmojiResponse>`: Create guild emoji - `POST /guilds/{guild_id}/emojis/bulk: Route & JsonBody, GuildEmojiBulkCreateResponse>`: Bulk create guild emojis - `POST /guilds/{guild_id}/emojis/clone: Route & JsonBody, GuildEmojiResponse>`: Clone guild emoji - `POST /guilds/{guild_id}/members-search: Route & OptionalJsonBody, GuildMemberSearchResponse>`: Search guild members - `POST /guilds/{guild_id}/roles: Route & JsonBody, GuildRoleResponse>`: Create guild role - `POST /guilds/{guild_id}/stickers: Route & JsonBody, GuildStickerResponse>`: Create guild sticker - `POST /guilds/{guild_id}/stickers/bulk: Route & JsonBody, GuildStickerBulkCreateResponse>`: Bulk create guild stickers - `POST /guilds/{guild_id}/stickers/clone: Route & JsonBody, GuildStickerResponse>`: Clone guild sticker - `POST /guilds/{guild_id}/transfer-ownership: Route & JsonBody, GuildResponse>`: Transfer guild ownership - `POST /search/messages: Route, MessageSearchResponse>`: Search messages - `POST /users/@me/channels: Route, ChannelResponse>`: Create private channel - `POST /users/@me/channels/messages/preload: Route, PreloadMessagesResponse>`: Preload messages for channels (alternative) - `POST /users/@me/guilds/{guild_id}/messages/bulk-delete-mine: Route & OptionalJsonBody, undefined>`: Bulk delete my messages in guild - `POST /users/@me/preload-messages: Route, PreloadMessagesResponse>`: Preload messages for channels - `PUT /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me: Route & QueryParameters<{ readonly session_id?: string }>, undefined>`: Add reaction to message - `PUT /channels/{channel_id}/permissions/{overwrite_id}: Route & JsonBody, undefined>`: Set permission overwrite for channel - `PUT /channels/{channel_id}/pins/{message_id}: Route, undefined>`: Pin a message - `PUT /channels/{channel_id}/recipients/{user_id}: Route, undefined>`: Add recipient to group DM - `PUT /channels/{channel_id}/tags/{tag_id}: Route & JsonBody, ChannelResponse>`: Update a forum tag - `PUT /channels/{channel_id}/thread-members/{user_id}: Route, undefined>`: Add a thread member - `PUT /channels/{channel_id}/thread-members/@me: Route, undefined>`: Join a thread - `PUT /guilds/{guild_id}/bans/{user_id}: Route & OptionalJsonBody, undefined>`: Ban guild member - `PUT /guilds/{guild_id}/members/{user_id}/roles/{role_id}: Route, undefined>`: Add role to guild member - `PUT /users/@me/channels/{channel_id}/pin: Route, undefined>`: Pin direct message channel ### Roles and Permissions #### variable Permissions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissions Named permission grants for role inputs, channel overwrites and raw permission checks - `AddReactions: bigint`: Start a new emoji reaction on a message, rather than only join an existing reaction - `Administrator: bigint`: Grant all permission bits and bypass channel overwrites - `AttachFiles: bigint`: Upload files and media with messages - `BanMembers: bigint`: Ban accounts from a community and optionally remove their recent messages - `BypassSlowmode: bigint`: Send messages without waiting for the channel's per-user slowmode delay - `ChangeNickname: bigint`: Change the member's own nickname in the community - `Connect: bigint`: Join a voice channel and listen to participants - `CreateExpressions: bigint`: Upload custom emoji and stickers and manage the member's own creations - `CreateInstantInvite: bigint`: Create invitation links to a community or channel - `CreatePrivateThreads: bigint`: Start a private thread in a text channel - `CreatePublicThreads: bigint`: Start a public thread or an announcement thread - `DeafenMembers: bigint`: Community-deafen other voice participants, preventing them from hearing or speaking - `EmbedLinks: bigint`: Show automatic embedded previews for links in messages - `KickMembers: bigint`: Remove members from a community without banning them from joining again - `ManageChannels: bigint`: Create, edit or delete community channels and categories - `ManageExpressions: bigint`: Edit or delete custom emoji and stickers created by other members - `ManageGuild: bigint`: Change community-wide settings, such as its name and icon - `ManageMessages: bigint`: Delete other members' messages - `ManageNicknames: bigint`: Change other members' community nicknames - `ManageRoles: bigint`: Manage roles below the member's highest role and edit channel permission overwrites - `ManageThreads: bigint`: Archive, lock, rename and delete threads, see every private thread and act in a locked thread - `ManageWebhooks: bigint`: Create, edit or delete webhooks in the applicable community or channel - `MentionEveryone: bigint`: Use @everyone and @here, and mention roles even when they are not marked mentionable - `ModerateMembers: bigint`: Apply member timeouts that temporarily restrict messaging, reactions and voice participation - `MoveMembers: bigint`: Move members between voice channels they can access, or disconnect them from voice - `MuteMembers: bigint`: Community-mute other voice participants, preventing them from speaking to everyone - `PinMessages: bigint`: Pin or unpin messages, including messages written by other members - `PrioritySpeaker: bigint`: Use the priority push-to-talk key binding to make speech stand out over other speakers - `ReadMessageHistory: bigint`: Read earlier messages in a channel, subject to community history-cutoff rules - `SendMessages: bigint`: Post messages in a channel - `SendMessagesInThreads: bigint`: Send messages in threads and add other members to them - `SendTtsMessages: bigint`: Send text-to-speech messages that enabled recipients can hear read aloud - `Speak: bigint`: Transmit speech in a voice channel - `Stream: bigint`: Share a camera or screen in a voice channel - `UpdateRtcRegion: bigint`: Change the voice-server region used by a voice channel - `UseExternalEmojis: bigint`: Use custom emoji owned by other communities - `UseExternalStickers: bigint`: Use custom stickers owned by other communities - `UseVad: bigint`: Use voice activity detection to transmit speech without holding a push-to-talk key - `ViewAuditLog: bigint`: Read the community's recorded administrative and moderation activity - `ViewChannel: bigint`: See a channel, subject to the channel's applicable overwrites - `ViewChannelMembers: bigint`: See the member list for the applicable channel #### variable hierarchy Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#hierarchy Compare roles and members by Fluxer's role hierarchy from snapshots already held, returning plain values - `HierarchyHelpers` #### variable permissionBits Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionbits Build and inspect raw permission flags with bigint values - `PermissionBitHelpers` #### interface ChannelPermissions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#channelpermissions One entry of the permissions.fetchChannels result: A member's raw permission bits in one community channel - `channel: GuildChannel`: The listed community channel, a frozen snapshot with its permission overwrites - `permissions: bigint`: The member's permission bits in this channel, an unsigned 64-bit bigint that preserves unknown flags #### interface GuildRole Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#guildrole A community role that groups members and supplies permission grants, hierarchy rank and display settings - `color: number`: RGB integer, zero means no explicit color - `hoist: boolean`: Whether members with this role are displayed as a separate group in the member list - `hoistPosition?: number | null`: Separate member-list ordering, preserving absent versus null - `icon?: string | null`: Image icon hash, not an image URL - `mentionable: boolean`: Whether anyone can mention the role - `name: string`: Role display name - `permissions: bigint`: Raw grants from Fluxer, including unknown future bits, as an unsigned 64-bit bigint - `position: number`: Community hierarchy position - `unicodeEmoji?: string | null`: Unicode emoji shown as the role's icon - Inherits from `RoleReference`: `guildId`, `id` #### interface GuildRoleUpdateBulk Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#guildroleupdatebulk One bulk role update, not individual update events or a complete role list - `guildId: string`: Decimal guild ID - `roles: readonly GuildRole[]`: Frozen role observations delivered together #### interface OverwritePatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#overwritepatch Changes for permissionBits.patchOverwrite: Which permissions to allow, deny or return to inheritance - `allow?: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...`: Permissions to allow, which also stops denying them - `deny?: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...`: Permissions to deny, which also stops allowing them - `inherit?: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...`: Permissions to neither allow nor deny, so the role's or member's other permissions decide #### interface PermissionBitInspection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionbitinspection Known permission names and any unnamed bits found by permissionBits.inspect - `names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...`: Present known names in Permissions declaration order, not sorted by display label - `unknownBits: bigint`: Present bits without a known name, preserved exactly rather than discarded #### interface PermissionHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionhelpers Calculate permission flags from supplied data or fresh reads - `calculate(input: PermissionInput): bigint`: Calculate permission flags from supplied guild, member, role and optional channel data - `fetch(target: PermissionTarget, options?: PermissionFetchOptions): ResultAsync`: Fetch guild, member, role and optional channel data, then calculate their permission flags - `fetchChannels(target: MemberReference, options?: RequestOptions): ResultAsync`: Fetch one member's permission flags in every channel of a community, such as to see what the bot can do in each channel #### interface PermissionInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissioninput Calculate a member's community or channel permission bits from supplied guild, member, role and channel data - `channel?: GuildChannel`: Target channel's explicit overwrites, or a thread whose permissions come from `parentChannel` - `guild: Guild`: Community that owns the member, roles, and optional channel - `member: GuildMember`: Membership whose raw permissions are calculated - `parentChannel?: GuildChannel`: Parent channel of a thread supplied as `channel`, with its permission overwrites - `roles: readonly GuildRole[]`: Complete role observations needed to resolve everyone and every member role #### interface PermissionOverwrite Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionoverwrite Give or deny channel permissions to one role or member - `allow: bigint`: Permissions explicitly granted here - `deny: bigint`: Permissions explicitly denied here - `id: string`: Decimal role or member ID - `type: "member" | "role"`: Whether id identifies a role or a community member #### interface PermissionOverwriteInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionoverwriteinput Input for permissionBits.overwrite to construct a frozen PermissionOverwrite for one role or member - `allow?: PermissionOverwriteBits`: Permissions explicitly granted, as an unsigned 64-bit bigint mask or list of Permissions keys - `deny?: PermissionOverwriteBits`: Permissions explicitly denied, as an unsigned 64-bit bigint mask or list of Permissions keys - `id: string`: Decimal role or member ID - `type: "member" | "role"`: Whether id identifies a role or a community member #### interface PermissionTarget Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissiontarget Choose whose permission bits permissions.fetch should calculate, by default from fresh REST reads - `channelId?: string`: Decimal community-channel ID for a channel-scoped calculation - Inherits from `MemberReference`: `guildId`, `userId` #### interface RoleCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolecreate Create a named community role with an optional color and permission grants - `color?: number`: RGB integer 0–16,777,215, default 0 - `icon?: string | null`: Base64 image data or data URI for the role's icon, or null or an empty string for none - `iconSourceRoleId?: string`: ID of a role in this community whose icon the new role copies - `name: string`: Role name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `permissions?: bigint`: Bigint from 0n through 9_223_372_036_854_775_807n, default 0n: Unlike raw Fluxer, never inherit everyone's grants implicitly - `unicodeEmoji?: string | null`: A single Unicode emoji to show as the role's icon, or null or an empty string for none #### interface RoleEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#roleedit Change the name, grants or display settings of an existing role - `color?: number`: RGB integer 0–16,777,215 - `hoist?: boolean`: Display members separately - `hoistPosition?: number | null`: Signed 32-bit member-list position - `icon?: string | null`: Base64 image data or data URI for the role's icon, under the same limits as RoleCreate.icon, or null or an empty string to remove the image - `mentionable?: boolean`: Allow anyone to mention this role - `name?: string`: Role name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming - `permissions?: bigint`: Replace raw grants with a bigint from 0n through 9_223_372_036_854_775_807n, not an incremental grant - `unicodeEmoji?: string | null`: A single Unicode emoji to show as the role's icon, or null or an empty string to remove it #### interface RoleHierarchyInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolehierarchyinput Check whether one community member outranks another using guild, member and role snapshots already held by the caller - `actor: GuildMember`: Member whose hierarchy rank is being evaluated - `guild: Guild`: Community that owns the actor, target, and supplied role observations - `roles: readonly GuildRole[]`: Role observations for every explicit role assigned to actor or target - `target: GuildMember`: Member the actor would need to outrank #### interface RoleHoistPosition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolehoistposition One display-order assignment, independent of permission hierarchy and the role's hoist flag - `hoistPosition: number`: Signed 32-bit display ordering value, not the permission-hierarchy position - `id: string`: Decimal role ID, excluding everyone #### interface RoleManagementInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolemanagementinput Check whether a community member's rank allows managing one role using guild, member and role snapshots already held by the caller - `actor: GuildMember`: Member whose hierarchy rank is being evaluated - `guild: Guild`: Community that owns the actor, role, and supplied role observations - `role: GuildRole`: Role the actor would need to outrank - `roles: readonly GuildRole[]`: Role observations for every explicit role assigned to the actor #### interface RolePosition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#roleposition One requested hierarchy position, not an absolute final-position guarantee - `id: string`: Decimal role ID, excluding the implicit everyone role - `position: number`: Nonnegative safe integer ordering value #### interface RoleReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolereference Address one role inside its owning community for role reads and changes, without fetching it or retaining a client - `guildId: string`: Decimal guild ID - `id: string`: Decimal role ID #### interface Roles Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#roles Create, edit, order and delete community roles, or read their current or cached data - `create(guildId: string, input: RoleCreate, options?: AuditedRequestOptions): ResultAsync`: Create a role with a name, optional color and permission flags - `delete(role: RoleReference, options?: AuditedRequestOptions): ResultAsync`: Delete a role and remove its member assignments in Fluxer - `edit(role: RoleReference, input: RoleEdit, options?: AuditedRequestOptions): ResultAsync`: Change only supplied role fields and return the server's snapshot - `fetchAll(guildId: string, options?: RequestOptions): ResultAsync`: Fetch the community's current role list, including everyone, in server order - `fetchCanManage(role: RoleReference, options?: CanManageOptions): ResultAsync`: Check whether the bot, or the member named by options.actorUserId, can manage a target role in the community's role hierarchy - `get(role: RoleReference): GuildRole | undefined`: Look up a role by decimal guildId and id in the enabled cache, including the everyone role - `getAll(guildId: string): readonly GuildRole[] | undefined`: Look up every role of a community by decimal guildId in the enabled cache, including the everyone role - `reorder(guildId: string, positions: readonly RolePosition[], options?: AuditedRequestOptions): ResultAsync`: Change role hierarchy positions using distinct role IDs and nonnegative safe-integer positions - `resetHoistPositions(guildId: string, options?: AuditedRequestOptions): ResultAsync`: Clear display-position assignments across the community, including roles above the bot - `setHoistPositions(guildId: string, positions: readonly RoleHoistPosition[], options?: AuditedRequestOptions): ResultAsync`: Set roles' display positions without changing their permission hierarchy or enabling hoist #### type HierarchyHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#hierarchyhelpers Compare roles and members by Fluxer's role hierarchy using snapshots the caller already holds - `canManage(input: RoleHierarchyInput): boolean`: Check the rank requirement for one member to manage another from supplied snapshots - `canManageRole(input: RoleManagementInput): boolean`: Check the rank requirement for one member to manage one role, such as to assign or edit it, from supplied snapshots - `compare(left: GuildRole, right: GuildRole): -1 | 0 | 1`: Find which of two roles ranks higher, for example when presenting or checking role order locally - `highestRole(member: GuildMember, roles: readonly GuildRole[]): GuildRole | undefined`: Find the role that gives a member the highest rank, from supplied snapshots - `isAbove(left: GuildRole, right: GuildRole): boolean`: Check whether a supplied role outranks another role, without fetching either one #### type PermissionBitHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionbithelpers Methods of the permissionBits helper, which builds and inspects raw bigint permission flags - `from(names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...): bigint`: Combine names such as `["ManageMessages", "ManageRoles"]` into one bigint permission set for role or overwrite inputs - `has(bits: bigint, permission: "CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "SendMessag...): boolean`: Return whether bits contains one named permission - `hasAll(bits: bigint, names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...): boolean`: Return true if bits contains every requested permission, including true for an empty names array - `hasAny(bits: bigint, names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...): boolean`: Return true if bits contains at least one requested permission, or false for an empty names array - `inspect(bits: bigint): PermissionBitInspection`: Return a frozen object listing present known names and any remaining flags as unknownBits - `label(name: "CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "SendMessag...): string`: Return the English label that Fluxer's own app shows for a permission, such as "Manage community" for ManageGuild and "Time out members" for ModerateMembers - `missing(bits: bigint, names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...): readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "...`: List requested permissions absent from bits, in the order first requested and without duplicates - `overwrite(input: PermissionOverwriteInput): PermissionOverwrite`: Build a frozen PermissionOverwrite for one role or member, accepting either bigint masks or Permissions name arrays for allow and deny and defaulting omitted masks to 0n - `patchOverwrite(current: Pick | undefined, change: OverwritePatch): Readonly>`: Change some permissions of a channel overwrite's allow and deny bits and keep the rest, for channels.setPermissionOverwrite, which replaces both bit sets - `refusedGrants(current: Pick | undefined, next: Pick | undefined, held: bigint): bigint`: Return the permission bits that Fluxer would refuse when an overwrite changes from `current` to `next`, so the change can be checked before the request is sent - `sameOverwrites(first: readonly PermissionOverwrite[], second: readonly PermissionOverwrite[]): boolean`: Return whether two overwrite lists are equal the way Fluxer compares them: The same target IDs, and for each ID the same type, allow and deny - `toDecimal(bits: bigint): string`: Convert unsigned 64-bit bigint permission bits to the decimal string used in Fluxer JSON requests and URLs #### type PermissionName Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionname A key of Permissions, such as `"ManageMessages"`, accepted by the named permissionBits helpers - `keyof typeof Permissions` #### type PermissionOverwriteBits Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionoverwritebits Permission flags for permissionBits.overwrite, accepted either as an unsigned 64-bit bigint mask or a list of Permissions keys - `bigint | readonly PermissionName[]` ### Sharding and Supervision #### function fileSessionStore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#filesessionstore - `fileSessionStore(directory: string | URL): SessionStore`: Create a SessionStore that keeps each shard's snapshot in its own file, shard-ID.json, inside one directory #### variable supervisor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisor Run a fixed group of local Node.js child processes, each with its own client and assigned shards - `SupervisorTools` #### interface IdentifyCoordinator Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#identifycoordinator Coordinates Identify commands for shards that start new sessions, so several processes serving one bot can respect Fluxer's shared Identify budget - `permit(shardId: number, totalShards: number, signal: AbortSignal): Promise`: Resolve when the shard may send Identify now #### interface SessionSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#sessionsnapshot The resumable state of one shard's gateway session, saved at shutdown and offered again at the next startup - `resumeUrl: string`: Gateway URL the session connected to - `savedAt: number`: Wall-clock time the snapshot was taken, in Unix epoch milliseconds, after the session's socket closed - `sequence: number`: Last dispatch sequence this client received on the session, a non-negative integer - `sessionId: string`: Session ID from Fluxer's READY, or empty in the copy that marks a loaded snapshot as used - `totalShards: number`: Total shard count of the plan the session identified with #### interface SessionStore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#sessionstore Persist resumable gateway sessions across restarts - `load(shardId: number): Promise`: Return the snapshot saved for this shard, or undefined when none exists - `save(shardId: number, snapshot: SessionSnapshot): Promise`: Store a snapshot for this shard #### interface ShardRecoveryDiagnostic Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#shardrecoverydiagnostic Connection-attempt snapshot for one shard, a gateway connection owned by this client - `attempt: number`: One-based connection attempt number for this shard's managed run, counting startup and later recovery - `phase: "recovery" | "startup"`: Whether this attempt belongs to initial startup or established-session recovery - `retryDelayMs: number | null`: Scheduled retry wait in milliseconds, or null while the current attempt is not waiting #### interface ShardState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#shardstate Frozen connection-state snapshot for one gateway shard owned by this client - `gatewayLatencyMs: number | null`: Latest current-connection heartbeat round trip in milliseconds, or null when no measurement is current - `recovery: ShardRecoveryDiagnostic | null`: Current safe connection attempt or retry snapshot, or null when this shard is not attempting or waiting - `sessionEpoch: number`: Identifies this shard's current gateway session within the client - `shardId: number`: This client's local shard ID, retained in the configured local order - `state: ConnectionState`: Current connection status for this shard #### interface ShardingOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#shardingoptions Divide the bot's community events among gateway connections called shards - `identify?: IdentifyCoordinator`: Coordinate new-session Identify commands with other processes, for example through a shared lock service - `refillCaches?: boolean`: Whether a shard that resumes a session loaded from sessions refills the enabled community, role and channel caches through REST, default true - `sessions?: SessionStore`: Keep resumable sessions across process restarts, so a restart within Fluxer's 60-second resume window can Resume instead of starting new sessions - `shardIds?: readonly number[]`: Immutable non-empty local IDs, each unique integer from 0 through totalShards minus one - `totalShards: number | "auto"`: Immutable total gateway shards for this bot, an integer from 1 through 16,384 shared by every process serving it #### interface Supervisor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisor-1 Parent that starts and stops child processes for one fixed set of local shards - `shutdown(): ResultAsync`: Ask owned children to stop and return Ok only after their processes exit - `start(): ResultAsync`: Start the configured children and return Ok when each child accepts its shard assignment and finishes configure - `status(): SupervisorStatus`: Return one immutable safe local status snapshot without child output, environment, arguments or paths - `waitForClose(): ResultAsync`: Wait until the supervisor's lifetime ends and its owned child processes have exited - `waitForReady(options?: SupervisorWaitOptions): ResultAsync`: Return Ok when every current child has reported its aggregate gateway state as Connected #### interface SupervisorAssignment Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorassignment Gateway connections assigned to one child process by its parent supervisor - `shardIds: readonly number[]`: Fixed shard IDs owned by this child, in configured order - `totalShards: number`: Immutable total shard count used by this supervisor #### interface SupervisorAssignmentOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorassignmentoptions Name and shard IDs for one Node process that the supervisor starts and stops - `id: string`: Unique nonblank local identifier, at most 128 characters, shown in lifecycle failures and status snapshots - `shardIds: readonly number[]`: One or more unique shard IDs from zero through totalShards minus one #### interface SupervisorChildContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildcontext Client and fixed shard assignment available to configure before the helper starts the gateway connection - `assignment: SupervisorAssignment`: Fixed assignment for this child process - `client: Client`: Client created and owned by child.run - `signal: AbortSignal`: Signal aborted when the parent requests shutdown or its message channel disconnects #### interface SupervisorChildDiagnostics Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchilddiagnostics One diagnostics snapshot a child sent to its parent: Gateway latency and shard states, REST queue use, cache use and running counters, as its client's diagnostics method returns them - `client: ClientDiagnostics`: The child client's diagnostics at the time it sent them - `receivedAt: number`: Parent wall-clock time the snapshot arrived, in Unix epoch milliseconds #### interface SupervisorChildOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildoptions Bot credentials, client settings and setup callback for a JavaScript module launched by a supervisor - `clientOptions?: Omit, "token" | "sharding"> & { readonly sharding?: SupervisorChildSharding }`: Every client setting except token is read by property name and copied before configure, including inherited and non-enumerable properties - `configure: (context: SupervisorChildContext>>) => unknown`: Register subscriptions and local application behavior before the helper calls client.run - `token: string | undefined`: Bot token for the client created by child.run, such as `process.env.FLUXER_BOT_TOKEN` #### interface SupervisorChildSharding Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildsharding Sharding settings a supervised child may add to the shards its parent assigns - `refillCaches?: boolean`: Whether a shard that resumes a session loaded from sessions refills the enabled caches through REST, default true - `sessions?: SessionStore`: Keep this child's resumable sessions across process restarts, as the client option sharding.sessions does #### interface SupervisorChildStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildstatus Frozen snapshot of one child assignment and its current process, without launch settings or child output - `assignment: SupervisorAssignment`: Immutable assignment retained by this supervisor - `connectionState: ConnectionState | null`: Last aggregate gateway connection state reported by the current child process after configuration - `diagnostics: SupervisorChildDiagnostics | null`: Latest client diagnostics the current child process sent, or null before its first snapshot, after exit or when IPC is unavailable - `generation: number`: Fork attempts for this assignment, starting at zero before startup and incrementing even if a fork fails - `id: string`: Stable child identifier from the original assignment - `pid: number | null`: Current owned child process ID, or null before a process starts or after verified exit - `restarts: number`: Replacement attempts used from this child's current budget, including a replacement waiting for its delay - `state: SupervisorChildState`: Current local lifecycle state #### interface SupervisorFileUrl Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorfileurl File URL identifying the JavaScript module to run in each child process - `href: string`: Complete file URL string - `protocol: string`: URL protocol, which must be `file:` #### interface SupervisorIdentifyOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisoridentifyoptions Space out new gateway session starts across the children owned by one supervisor - `coordinator?: IdentifyCoordinator`: Share Fluxer's Identify budget with other supervisors and clients, for example across several hosts, through the same IdentifyCoordinator a client accepts in sharding.identify - `minimumSpacingMs?: number`: Minimum interval between child-confirmed fresh Identify sends in milliseconds, an integer from 1,000 through 2,147,483,647 #### interface SupervisorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisoroptions Plan for running bot gateway connections in separate local Node processes - `args?: readonly string[]`: Program arguments for every owned child, at most 64 strings of at most 4,096 characters each - `assignments?: readonly SupervisorAssignmentOptions[]`: One to totalShards fixed child assignments, with unique IDs and no overlapping shard IDs - `childEnvironment?: Readonly>`: Up to 64 explicit string environment overrides copied over the inherited environment at creation - `childOutput?: "prefix" | "inherit" | "ignore"`: How child standard output and error reach this process - `diagnosticsIntervalMs?: number`: How often each running child sends its client diagnostics to the parent, in milliseconds, an integer from 1,000 through 2,147,483,647 - `entry: string | SupervisorFileUrl`: Absolute module path string or file-URL object passed to every Node child-process fork - `execArgv?: readonly string[]`: Node executable arguments for every owned child - `identify?: SupervisorIdentifyOptions`: Parent-side fresh-Identify pacing shared by these children, or a coordinator shared with other processes - `instance?: InstanceOptions`: Fluxer instance for the community count when totalShards is "auto", as the client option instance - `logging?: LoggingOptions`: Records for the automatic plan, child spawn, exit with code and signal, crash, restart and refused Identify permits, in the supervisor log category - `processes?: number`: Number of child processes that share every shard, an integer from 1 through 16,384 - `restart?: false | SupervisorRestartOptions`: Replacement policy for unexpected local child exits - `shardsPerProcess?: number`: Shards per child process, an integer from 1 through 16,384 - `shutdownTimeoutMs?: number`: Time allowed for an owned child to exit after a stop request, in milliseconds, before the parent force-terminates it - `startupTimeoutMs?: number`: Time allowed for each child to receive its assignment and finish configure, in milliseconds, including replacement children - `token?: string`: Bot token used only to count the bot's communities when totalShards is "auto", such as `process.env.FLUXER_BOT_TOKEN` - `totalShards: number | "auto"`: Total gateway shard count for this bot, an integer from 1 through 16,384 - `transport?: TransportOptions`: HTTP implementation and User-Agent for the community count when totalShards is "auto", as the client option transport #### interface SupervisorRestartOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorrestartoptions Restart a child process after it exits, unless the supervisor has begun shutdown or failed - `healthyResetMs?: number`: Milliseconds a child must run after finishing configuration for its next exit to start a fresh restart budget, a positive safe integer no greater than 2,147,483,647 - `maxAttempts?: number`: Maximum replacement attempts per child, an integer from 0 through 100 - `maxDelayMs?: number`: Maximum exponential replacement delay in milliseconds, a positive safe integer no greater than 2,147,483,647 - `minDelayMs?: number`: First replacement delay in milliseconds, a positive safe integer no greater than maxDelayMs #### interface SupervisorStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorstatus Immutable safe local snapshot without child paths, arguments, environment or stdio - `children: readonly SupervisorChildStatus[]`: One snapshot per child assignment, in assignment order, including children with no current process - `state: SupervisorState`: Current supervisor lifecycle state #### interface SupervisorTools Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisortools Create a local parent supervisor or run its child module using the default API - `child: { run(options: SupervisorChildOptions): ResultAsync }`: Child-module helper - `create(options: SupervisorOptions): Supervisor`: Validate and copy options now and return an idle supervisor #### interface SupervisorWaitOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorwaitoptions Cancel one default-API waitForReady call without stopping or restarting the supervisor - `signal?: OperationSignal`: Cancels only this wait #### type SupervisorChildState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildstate Local process state for a fixed child assignment, not its gateway connection state - `"idle" | "starting" | "running" | "restarting" | "stopping" | "closed" | "failed"` #### type SupervisorState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorstate Local parent-process lifetime state, not the bot's gateway readiness - `"idle" | "starting" | "running" | "stopping" | "closed" | "failed"` ### Users and DMs #### interface DirectMessageChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#directmessagechannel A one-to-one direct message or group conversation outside a community - `icon: string | null`: Group icon hash, or null - `id: string`: Decimal channel ID, accepted by the existing messages API - `lastMessageId: string | null`: Last message ID supplied by Fluxer, or null - `lastPinTimestamp?: string | null`: ISO 8601 time of the most recent pin, or null when nothing was ever pinned - `name: string | null`: Group name, or null when absent - `nicknames: Readonly>`: Supplied nickname overrides, keyed by decimal user ID - `nsfw?: boolean`: Whether the group is marked as adult content - `ownerId: string | null`: Group owner ID, or null for a one-to-one DM - `recipients: readonly User[]`: Public recipient snapshots supplied by Fluxer, not necessarily including the current bot - `type: "group" | "dm"`: Explicitly distinguishes one-to-one and group conversations #### interface DirectMessageGroupEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#directmessagegroupedit Rename a group conversation, change its icon or nicknames, or transfer its ownership - `icon?: string | null`: Base64 image data or data URI, or null or an empty string to clear - `name?: string | null`: Group name, or null or an empty string to clear it, as Fluxer reads an empty string as null here - `nicknames?: Readonly> | null`: Nicknames keyed by user ID - `ownerId?: string`: Transfer ownership to an existing non-bot recipient #### interface DirectMessageLatestMessages Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#directmessagelatestmessages Latest-message lookup results for the selected private channel IDs - `messages: Readonly>`: Returned entries keyed by requested channel ID - `omittedChannelIds: readonly string[]`: Requested IDs omitted by Fluxer, in input order #### interface DirectMessages Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#directmessages Open and manage private one-to-one or group conversations with the bot's credentials - `close(id: string, options?: RequestOptions): ResultAsync`: Close a one-to-one conversation for this bot, or leave a group conversation - `editGroup(id: string, input: DirectMessageGroupEdit, options?: RequestOptions): ResultAsync`: Change supplied settings of an existing group conversation - `fetch(id: string, options?: RequestOptions): ResultAsync`: Fetch a private channel by decimal ID - `fetchAll(options?: RequestOptions): ResultAsync`: Fetch this bot's currently open one-to-one and group conversations - `fetchLatestMessages(channelIds: readonly string[], options?: RequestOptions): ResultAsync, CancelledError | ConfigurationError | UserOperationFailure>`: Fetch the latest messages for 1–100 selected, distinct private channel IDs through Fluxer's batch endpoint - `get(id: string): DirectMessageChannel | undefined`: Look up a private channel in the optional cache using its decimal ID, without a request - `open(userId: string, options?: RequestOptions): ResultAsync`: Open or reopen a one-to-one conversation with the selected user - `removeRecipient(id: string, userId: string, options?: RequestOptions): ResultAsync`: Remove a group recipient as owner, or remove the bot itself - `send(userId: string, input: string | ReplyInput | MessageBuilder, options?: RequestOptions): ResultAsync`: Open or reopen a one-to-one conversation with a user, then send a message #### interface ProfileBadge Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#profilebadge One public badge from a profile read, with what a client needs to draw it - `accessibleLabel?: string`: Screen reader label with the full count, used instead of label when present - `aspectRatio: number | null`: Image width divided by its height, or null for a square badge - `asset: string | null`: Image hash served at the instance's static CDN as badges/{asset}.webp, or null for a text badge or one with assetUrl - `assetUrl: string | null`: Absolute image URL for a badge without a static image hash, such as a custom badge, or null - `caption: string | null`: Short text such as #42: Alt text for a badge with an image, and the shown text for one without - `count?: number`: How many passes the badge stands for, from 2 - `details?: { readonly lines: readonly string[]; readonly title: string }`: Richer tooltip content, absent when label is the whole tooltip - `href: string | null`: Absolute URL to open when the badge is clicked, or null - `key: string`: Stable identity, unique within the list - `kind: "custom" | string & { … } | "staff" | "partner" | "bug_hunter" | "operator_pass" | "visionary" | "visionary_number" | "plutonium" | "premium"`: Badge type, such as staff, partner, bug_hunter, operator_pass, visionary, visionary_number, plutonium, custom or premium - `label: string`: Full description localized for the viewer, for a tooltip, and alt text when caption is null - `quote?: string`: The holder's quote from Fluxer's Operators' wall, absent while the wall does not show it or Fluxer sends null - `smallAsset?: string`: Image hash to use instead of asset at 20 pixels and smaller, when Fluxer supplies one #### interface User Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#user Public identity of a Fluxer account, suitable for displaying who sent a message or belongs to a conversation - `avatar: string | null`: Avatar asset hash, not an image URL, or null when no avatar is supplied - `avatarColor: number | null`: Dominant avatar color, or null - `discriminator: string`: Provider discriminator used with username to distinguish accounts with the same username - `displayName: string | null`: Account-wide name shown instead of username where supported, or null when unset - `flags: number`: Public account flags returned by Fluxer - `id: string`: Decimal account ID - `isBot: boolean`: Whether Fluxer identifies this account as a bot - `isSystem: boolean`: Whether Fluxer identifies this account as a system user - `mentionFlags?: 0 | 1 | 2`: Account-wide reply mention preference: 0 for none, 1 to prefer a mention, or 2 to prefer no mention - `username: string`: Account username, not unique by itself #### interface UserProfile Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#userprofile Result of users.fetchProfile, combining public identity with the profile information Fluxer allowed this caller to see - `guildProfile: UserProfileFields | null`: Explicit community-context profile fields, or null when Fluxer did not supply them - `isLimited: boolean`: Whether Fluxer limited this read by profile privacy - `profile: UserProfileFields`: Account-wide profile fields the SDK includes - `profileBadges?: readonly ProfileBadge[]`: Public badges in Fluxer's display order, when supplied by the instance - `user: User`: Public account identity returned with this profile, without updating the cache #### interface UserProfileFields Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#userprofilefields Displayable biography, pronouns and visual customization from a profile read - `accentColor: number | null`: Packed profile accent color, or null - `banner: string | null`: Banner hash, or null when absent or withheld by Fluxer - `bannerColor?: number | null`: Account-profile banner color when Fluxer supplies it - `bio: string | null`: Biography, null when absent or hidden by profile privacy - `pronouns: string | null`: Pronouns, null when absent or hidden by profile privacy #### interface UserProfileQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#userprofilequery Choose whether users.fetchProfile also asks for profile customization in one community - `guildId?: string`: Decimal guild ID whose profile settings to include when Fluxer supplies them #### interface Users Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#users Read public user account and profile data, without connecting the gateway - `fetch(id: string, options?: RequestOptions): ResultAsync`: Fetch a public account snapshot by decimal user ID - `fetchProfile(id: string, query?: UserProfileQuery, options?: RequestOptions): ResultAsync`: Fetch a user's privacy-filtered profile, optionally for the community specified in query.guildId - `fetchSelf(options?: RequestOptions): ResultAsync`: Fetch the authenticated bot's public account data remotely - `get(id: string): User | undefined`: Look up a public account in the optional cache using its decimal ID, without a request - `getSelf(): User | undefined`: Look up the bot's own public account as the gateway's READY reported it, without a request ## Effect API Import from `@neontechspace/fluxerly/effect` ### Builders and Formatting #### variable assets Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#assets Build image URLs for hosted Fluxer from supplied user, member, community, emoji or sticker data - `AssetHelpers` #### variable colors Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#colors Convert RGB colors between integers, hex strings and channel tuples - `ColorHelpers` #### variable display Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#display Choose a display name from user data and an optional community member, without a request or cache lookup - `DisplayHelpers` #### variable format Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#format Create and read Fluxer mention, timestamp and custom-emoji markup without a client or network requests - `FormatHelpers` #### variable links Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#links Build hosted Fluxer channel, message and bot-installation links on fluxer.com from supplied IDs - `LinkHelpers` #### variable snowflakes Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#snowflakes Validate Fluxer IDs, read their creation time or create pagination boundaries - `SnowflakeHelpers` #### variable text Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#text Split long text into length-bounded pieces without losing its contents, or truncate it to a length with a marker - `TextHelpers` #### type ColorHelpers Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#colorhelpers Methods of the native colors helper, which converts RGB numbers, hex strings and tuples - `parse: (value: ColorInput) => number`: Convert a six-digit hexadecimal string, an RGB array of three integer channels from 0 through 255, or a color number to the integer used by embeds and roles - `toHex: (value: number) => string`: Turn a color integer into a lowercase six-digit string such as `"#000001"`, including leading zeroes - `toRgb: (value: number) => RgbColor`: Split a color integer into a new frozen `[red, green, blue]` array, each from 0 through 255 - `tryParse: (value: ColorInput) => Effect.Effect`: Convert a color with the same rules as parse, but report invalid input without throwing #### type FormatHelpers Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#formathelpers Methods of the native format helper, which creates and reads mention, timestamp and custom-emoji markup and escapes Markdown - `channelMention: (id: string) => string`: Create `` text linking to a channel, such as ``, and return it directly - `customEmoji: (input: CustomEmojiMarkup) => string`: Create `` text, or `` when animated is true - `escapeMarkdown: (value: string) => string`: Add backslashes so text is treated literally by Fluxer's markup parser, for example escaping `**bold**` - `parseCustomEmoji: (value: string) => CustomEmojiMarkup`: Read exactly one `` or `` string into frozen name, ID and animated fields - `parseMention: (value: string) => Mention`: Read a string containing exactly one user, role or channel mention into a frozen `{ kind, id }` object - `parseTimestamp: (value: string) => TimestampMarkup`: Read exactly one `` or `` string into a frozen object with a new Date and style - `roleMention: (id: string) => string`: Create `` text for a decimal role ID, such as ``, and return it directly - `timestamp: (value: Date, style?: TimestampStyle) => string`: Create `` message text from a Date, which Fluxer displays in the reader's local time - `tryParseCustomEmoji: (value: string) => Effect.Effect`: Read custom-emoji markup with the same rules as parseCustomEmoji, but report invalid text without throwing - `tryParseMention: (value: string) => Effect.Effect`: Read a mention with the same rules as parseMention, but report invalid text without throwing - `tryParseTimestamp: (value: string) => Effect.Effect`: Read timestamp markup with the same rules as parseTimestamp, but report invalid text without throwing - `userMention: (id: string) => string`: Create `` text for a decimal user ID, such as ``, and return it directly #### type SnowflakeHelpers Page: https://fluxerly.neontechspace.com/docs/api/effect/builders-and-formatting/#snowflakehelpers Methods of the native snowflakes helper, which reads and converts decimal Fluxer IDs without losing precision - `boundary: (value: Date) => string`: Make the smallest ID for a Date's exact UTC millisecond, useful as a time-based pagination boundary - `createdAt: (value: string) => Date`: Return a new UTC Date for the creation time encoded in an ID - `isValid: (value: unknown) => value is string`: Return true for a decimal string from `"0"` through `"9223372036854775807"`, with no extra leading zeroes - `parse: (value: string) => bigint`: Convert a valid decimal-string ID to bigint without losing precision - `shardFor: (guildId: string, totalShards: number) => number`: Return the shard that receives a community's gateway events when the bot runs totalShards shards - `tryParse: (value: string) => Effect.Effect`: Convert a decimal-string ID with the same rules as parse, but report an invalid ID without throwing #### AssetFormats Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#assetformats The same as in js-ts #### TimestampStyles Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#timestampstyles The same as in js-ts #### builders Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#builders The same as in js-ts #### EmbedBuilder Page: https://fluxerly.neontechspace.com/docs/api/js-ts/embedbuilder/ The same as in js-ts #### MessageBuilder Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messagebuilder/ The same as in js-ts #### AssetUrlOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#asseturloptions The same as in js-ts #### ChannelLinkTarget Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#channellinktarget The same as in js-ts #### CustomEmojiMarkup Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#customemojimarkup The same as in js-ts #### EmbedFieldOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#embedfieldoptions The same as in js-ts #### InstallationLinkOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#installationlinkoptions The same as in js-ts #### StickerAssetUrlOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#stickerasseturloptions The same as in js-ts #### TextSplitOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#textsplitoptions The same as in js-ts #### TextTruncateOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#texttruncateoptions The same as in js-ts #### TimestampMarkup Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#timestampmarkup The same as in js-ts #### AssetFormat Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#assetformat The same as in js-ts #### AssetHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#assethelpers The same as in js-ts #### ColorInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#colorinput The same as in js-ts #### DisplayHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#displayhelpers The same as in js-ts #### LinkHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#linkhelpers The same as in js-ts #### Mention Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#mention The same as in js-ts #### MissingMessageBody Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#missingmessagebody The same as in js-ts #### RgbColor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#rgbcolor The same as in js-ts #### TextHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#texthelpers The same as in js-ts #### TimestampStyle Page: https://fluxerly.neontechspace.com/docs/api/js-ts/builders-and-formatting/#timestampstyle The same as in js-ts ### Caching #### interface CacheObserver Page: https://fluxerly.neontechspace.com/docs/api/effect/caching/#cacheobserver Stop receiving cache changes from client.cache.onChange before its registration Scope closes - `id: string`: Identifier of this observer, such as cacheChange#3, used in its log records and failure reports - `close(): Effect`: Stop delivering changes, including changes recorded or waiting but not yet delivered, and interrupt running listener work without waiting for it #### interface ClientCache Page: https://fluxerly.neontechspace.com/docs/api/effect/caching/#clientcache Inspect, clear or remove entries of this client's optional in-memory caches - `clear(kind?: CacheKind): void`: Release data held by this client's caches without changing which caches are enabled - `delete(kind: CacheKind, key: string): void`: Remove one entry from a cache category by its key, without fetching, refreshing or changing the remote resource - `entries(kind: K, options?: CacheEntriesOptions): Effect[K][]>`: Return frozen snapshots from one configured cache category, ordered least to most recently used - `onChange(listener: (change: CacheChange) => Effect, options?: CacheObserverOptions): Effect`: Observe every later change to this client's local caches: Stored or replaced entries, removed entries and whole-category clears #### CacheChange Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachechange The same as in js-ts #### CacheDiagnostic Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachediagnostic The same as in js-ts #### CacheEntriesOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cacheentriesoptions The same as in js-ts #### CacheObserverOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cacheobserveroptions The same as in js-ts #### CachedResources Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachedresources The same as in js-ts #### MessageCacheOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#messagecacheoptions The same as in js-ts #### MessageCacheSettings Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#messagecachesettings The same as in js-ts #### ResourceCacheSettings Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#resourcecachesettings The same as in js-ts #### CacheKind Page: https://fluxerly.neontechspace.com/docs/api/js-ts/caching/#cachekind The same as in js-ts ### Channels #### interface Channels Page: https://fluxerly.neontechspace.com/docs/api/effect/channels/#channels Read or change community channels and permission overrides, or request gateway member counts - `create(guildId: string, input: ChannelCreate, options?: AuditedRequestOptions): Effect`: Create a supported community channel and return its frozen server snapshot - `createForumTag(channelId: string, input: ForumTagInput, options?: AuditedRequestOptions): Effect`: Add one tag to a forum or media channel and return the frozen updated channel - `delete(channelId: string, options?: AuditedRequestOptions): Effect`: Delete a community channel, succeeding with no value after HTTP 204 - `deleteForumTag(channelId: string, tagId: string, options?: AuditedRequestOptions): Effect`: Delete one tag from a forum or media channel and return the frozen updated channel - `edit(channelId: string, input: ChannelEdit, options?: AuditedRequestOptions): Effect`: Change only the supplied channel settings and return the frozen server snapshot - `editForumTag(channelId: string, tagId: string, input: ForumTagInput, options?: AuditedRequestOptions): Effect`: Replace one tag of a forum or media channel and return the frozen updated channel - `fetch(channelId: string, options?: RequestOptions): Effect`: Fetch a community channel by decimal ID and return a frozen snapshot - `fetchAll(guildId: string, options?: RequestOptions): Effect`: Fetch the community channels currently visible to the bot, without pagination - `fetchFollowerStats(channelId: string, options?: RequestOptions): Effect`: Fetch frozen channel and distinct community follower counts for a viewable announcement channel - `fetchMemberCounts(guildId: string, channelIds: readonly string[], options?: RequestOptions): Effect`: Request fresh member counts for 1–25 channels in one community over the connected gateway - `follow(channelId: string, input: ChannelFollowInput, options?: AuditedRequestOptions): Effect`: Follow an announcement channel into the supplied community text channel and return frozen source and webhook IDs - `get(channelId: string): Effect`: Look up a community channel in the enabled cache, without an HTTP request or a connection - `removePermissionOverwrite(channelId: string, targetId: string, options?: AuditedRequestOptions): Effect`: Remove one explicit permission overwrite by decimal role or member target ID - `reorder(guildId: string, positions: readonly ChannelPosition[], options?: AuditedRequestOptions): Effect`: Submit community-channel moves, succeeding with no value after HTTP 204 - `setPermissionOverwrite(channelId: string, input: PermissionOverwrite, options?: AuditedRequestOptions): Effect`: Replace one explicit role or member permission overwrite #### interface Threads Page: https://fluxerly.neontechspace.com/docs/api/effect/channels/#threads Create threads and forum posts, change, list and search threads, and manage thread members - `addMember(threadId: string, userId: string, options?: RequestOptions): Effect`: Add a community member who can view the parent channel to a thread, succeeding with no value after HTTP 204 - `create(channelId: string, input: ThreadCreate, options?: AuditedRequestOptions): Effect`: Create a thread that is not attached to a message in a text or announcement channel, and return its frozen snapshot - `createFromMessage(message: MessageReference, input: ThreadFromMessageCreate, options?: AuditedRequestOptions): Effect`: Start a public thread on an existing message and return its frozen snapshot - `createPost(channelId: string, input: ForumPostCreate, options?: AuditedRequestOptions): Effect, ChannelOperationFailure>`: Create a post in a forum or media channel, a public thread with its first message, and return both frozen - `edit(threadId: string, input: ThreadEdit, options?: AuditedRequestOptions): Effect`: Change only the supplied thread settings and return the frozen thread - `fetchActive(guildId: string, options?: RequestOptions): Effect`: Fetch every active thread the bot can view in a community, newest first, as one frozen list - `fetchArchived(channelId: string, query?: ArchivedThreadQuery, options?: RequestOptions): Effect`: Fetch one frozen page of archived threads of a text, announcement, forum or media channel, as ArchivedThreadQuery selects - `fetchMember(threadId: string, userId: string, query?: ThreadMemberQuery, options?: RequestOptions): Effect`: Fetch one thread member as a frozen ThreadMember - `fetchMembers(threadId: string, query?: ThreadMemberPageQuery, options?: RequestOptions): Effect`: Fetch one page of thread members in ascending user ID order, as frozen ThreadMember values - `fetchPostData(channelId: string, threadIds: readonly string[], options?: RequestOptions): Effect[], ChannelOperationFailure>`: Read the creator and first message of up to 100 posts in a forum or media channel, as one frozen list in the order of threadIds - `iterateArchived(channelId: string, query: ArchivedThreadIterationQuery, options?: RequestOptions): Stream`: Read archived threads of a text, announcement, forum or media channel across pages, as threads.fetchArchived lists them for the chosen scope, buffering one page and never prefetching - `iterateMembers(threadId: string, query: ThreadMemberIterationQuery, options?: RequestOptions): Stream`: Read thread members in ascending user ID order, buffering one page and never prefetching - `join(threadId: string, options?: RequestOptions): Effect`: Add the bot to a thread, succeeding with no value after HTTP 204 - `leave(threadId: string, options?: RequestOptions): Effect`: Remove the bot from a thread, succeeding with no value after HTTP 204 - `removeMember(threadId: string, userId: string, options?: RequestOptions): Effect`: Remove a member from a thread, succeeding with no value after HTTP 204, and Fluxer posts a RecipientRemove notice in the thread - `search(channelId: string, query?: ThreadSearchQuery, options?: RequestOptions): Effect, ChannelOperationFailure>`: Search the threads of a text, announcement, forum or media channel by name, tags and state, and return one frozen page #### isThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#isthreadchannel The same as in js-ts #### ChannelFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelflags The same as in js-ts #### ChannelType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channeltype The same as in js-ts #### ForumLayout Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumlayout The same as in js-ts #### ForumSortOrder Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumsortorder The same as in js-ts #### ThreadAutoArchiveMinutes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadautoarchiveminutes The same as in js-ts #### AnnouncementChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#announcementchannelcreate The same as in js-ts #### ArchivedThreadIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreaditerationquery The same as in js-ts #### ArchivedThreadPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreadpage The same as in js-ts #### ArchivedThreadQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreadquery The same as in js-ts #### CategoryChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#categorychannelcreate The same as in js-ts #### ChannelCreateBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelcreatebase The same as in js-ts #### ChannelEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channeledit The same as in js-ts #### ChannelFollowInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelfollowinput The same as in js-ts #### ChannelFollowerStats Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelfollowerstats The same as in js-ts #### ChannelMemberCount Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelmembercount The same as in js-ts #### ChannelMemberCountsResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelmembercountsresult The same as in js-ts #### ChannelPosition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelposition The same as in js-ts #### FollowedChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#followedchannel The same as in js-ts #### ForumChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumchannelcreate The same as in js-ts #### ForumChannelCreateBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumchannelcreatebase The same as in js-ts #### ForumDefaultReaction Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumdefaultreaction The same as in js-ts #### ForumDefaultReactionInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumdefaultreactioninput The same as in js-ts #### ForumPost Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpost The same as in js-ts #### ForumPostCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpostcreate The same as in js-ts #### ForumPostData Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpostdata The same as in js-ts #### ForumTag Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumtag The same as in js-ts #### ForumTagInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumtaginput The same as in js-ts #### GuildAnnouncementChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildannouncementchannel The same as in js-ts #### GuildAnnouncementThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildannouncementthreadchannel The same as in js-ts #### GuildCategoryChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildcategorychannel The same as in js-ts #### GuildChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildchannelbase The same as in js-ts #### GuildForumChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildforumchannel The same as in js-ts #### GuildForumChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildforumchannelbase The same as in js-ts #### GuildLinkChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildlinkchannel The same as in js-ts #### GuildMediaChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildmediachannel The same as in js-ts #### GuildPrivateThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildprivatethreadchannel The same as in js-ts #### GuildPublicThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildpublicthreadchannel The same as in js-ts #### GuildTextChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildtextchannel The same as in js-ts #### GuildTextChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildtextchannelbase The same as in js-ts #### GuildThreadChannelBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildthreadchannelbase The same as in js-ts #### GuildUnknownChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildunknownchannel The same as in js-ts #### GuildVoiceChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildvoicechannel The same as in js-ts #### LinkChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#linkchannelcreate The same as in js-ts #### MediaChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#mediachannelcreate The same as in js-ts #### TextChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#textchannelcreate The same as in js-ts #### ThreadCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadcreate The same as in js-ts #### ThreadEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadedit The same as in js-ts #### ThreadFromMessageCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadfrommessagecreate The same as in js-ts #### ThreadMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmember The same as in js-ts #### ThreadMemberIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmemberiterationquery The same as in js-ts #### ThreadMemberPageQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmemberpagequery The same as in js-ts #### ThreadMemberQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmemberquery The same as in js-ts #### ThreadMembership Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadmembership The same as in js-ts #### ThreadParentDefaults Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadparentdefaults The same as in js-ts #### ThreadSearchIndexingPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchindexingpage The same as in js-ts #### ThreadSearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchquery The same as in js-ts #### ThreadSearchResultsPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchresultspage The same as in js-ts #### VoiceChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#voicechannelcreate The same as in js-ts #### ArchivedThreadScope Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#archivedthreadscope The same as in js-ts #### ChannelCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#channelcreate The same as in js-ts #### ForumPostMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#forumpostmessage The same as in js-ts #### GuildChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildchannel The same as in js-ts #### GuildThreadChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#guildthreadchannel The same as in js-ts #### ThreadSearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channels/#threadsearchpage The same as in js-ts ### Client and Lifecycle #### function createClient Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#createclient - `createClient(options: ClientOptions): Effect>, never, Scope | R>`: Create a bot client from the supplied token when this Effect executes #### function defineBot Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#definebot - `defineBot> = Readonly>, C extends Readonly>; readonly execute: unknown }>> = Readonly>; readonly execute: unknown }>>, RouterServices = never, OptionsError = never, OptionsServices = never, SetupServices = never, ReadyServices = never, Callbacks = unknown, G extends Readonly> = { … }>(options: Omit, "token" | "events" | "commands" | "setup"> & { readonly commands?: BotCommandsOptions, S, C, [NoInfer, "token" | "events" | "commands" | "setup"> & { readonly commands?: BotCommandsOptions, S, C, [NoInfer> = Readonly>, C extends Readonly>; readonly execute: unknown }>> = Readonly>; readonly execute: unknown }>>, RouterServices = never, OptionsError = never, OptionsServices = never, SetupServices = never, ReadyServices = never, Callbacks = unknown, G extends Readonly> = { … }>(options: Omit, "events" | "commands" | "setup"> & { readonly commands?: BotCommandsOptions, S, C, [NoInfer] ext...): Effect | Exclude | Exclude | Exclu...`: Run a bot from one configuration object in the application's Effect context and scope #### class FluxerClient Page: https://fluxerly.neontechspace.com/docs/api/effect/fluxerclient/ Effect service holding one native client, for applications that assemble their program from Layers - `constructor(_: never): FluxerClient` - `static layer(options: ClientOptions): Layer`: Build the FluxerClient service from createClient settings - `static layerConfig(options: FluxerClientConfigOptions): Layer`: Build the FluxerClient service from settings that may be read from Effect Config, such as `{ token: Config.Redacted("FLUXER_BOT_TOKEN") }` #### interface BotEventOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#boteventoptions A native runBot event handler with its own delivery settings - `handler: BotEventHandler`: Called for each event - `onError?: (report: FailureReport) => Effect`: Receive this handler's failures instead of the client-level onError - `partitionReady?: (key: string) => Effect`: Hold the events of a partition key until its own setup is done, as the client.on option partitionReady does - Inherits from `HandlerOptions`: `concurrency`, `maxPendingBytes`, `maxPendingMessages`, `overflow`, `partition` #### interface Client Page: https://fluxerly.neontechspace.com/docs/api/effect/client/ A bot client whose asynchronous methods return descriptions of work as Effects or Streams - `application: CurrentBotApplication`: Read documented fields for the authenticated bot's application, without owner details or management operations - `attachments: Attachments`: Refresh signed attachment URLs explicitly or download from this instance's discovered media path with byte limits - `auditLogs: AuditLogs`: Read filtered audit pages or bounded entry scans, without retaining an audit cache - `cache: ClientCache`: Enumerate or release locally cached data - `channels: Channels`: Read or change community channels and optionally look up cached channel data - `directMessages: DirectMessages`: Open and manage one-to-one or group conversations, or send a direct message - `discovery: Discovery`: Search the public community directory and manage listings, without joining communities or finding instance endpoints - `emojis: Emojis`: Manage custom emoji and optionally look up their cached metadata - `gateway: GatewayCommands`: Send gateway commands without an SDK method on this client's ready shards - `gatewayLatencyMs: number | null`: The slowest current heartbeat round-trip time in milliseconds across this client's gateway shards - `guilds: Guilds`: Read community data and memberships, or use the optional local community cache - `instance: Instance`: Find this client's instance endpoints and get pure asset and link URL helpers for that instance - `invites: Invites`: Inspect, create, list and revoke invite codes, without using them to join or retaining codes - `lastReceipt: number`: The receipt of the most recently accepted event, as EventContext.receipt numbers events, or 0 before the first - `logging: ClientLogging`: Change the log level and per-category levels while the client runs - `members: Members`: Read, moderate and ban community members and change their assigned roles - `messages: Messages`: Read, send, edit and delete messages, use the optional message cache, or collect future messages and reactions - `permissions: PermissionHelpers`: Calculate permission flags locally or from fresh resource reads, without caching decisions - `presence: Presence`: Set bot status or select member presence updates, restored after gateway reconnects but not stored across process restarts - `rest: RestRequests`: Send requests to Fluxer API routes without an SDK method, through this client's shared request scheduling - `roles: Roles`: Manage community roles or look up roles in an explicitly enabled local cache - `shards: readonly ShardState[]`: Frozen connection state and heartbeat measurements for this client's shards, in configured local ID order - `state: ConnectionState`: Current connection state, controlled by the SDK rather than the consumer - `stickers: Stickers`: Manage custom stickers and optionally look up their cached metadata - `threads: Threads`: Create threads and forum posts, change, list and search threads, and manage thread members - `users: Users`: Fetch public account data or look up an account in the optional local cache - `voice: Voice`: Send typed gateway voice signaling commands (join, leave and state updates) on each community's owning shard, without opening a media connection or retaining a local voice-state cache - `webhooks: Webhooks`: Manage webhooks with the bot's permissions, returning metadata without tokens - `connect(): Effect`: Connect the gateway and complete when every shard assigned to this client has authenticated and received READY - `diagnostics(): ClientDiagnostics`: Read a frozen local report of active work, queues and cache occupancy - `observeState(): Stream`: Receive the current connection state, then later state updates - `on, E = never, R = never, E2 = never, R2 = never, E3 = E2, R3 = R2>(event: K, handler: (event: EventMap[K], context: EventContext) => Effect, options?: EventHandlerOptions[K], E3, R3>): Effect`: Register a handler for future events of one type, before or after connecting the client - `onMany, E = never, R = never, E2 = never, R2 = never, E3 = E2, R3 = R2>(events: readonly [K, ...K[]], handler: (entry: EventEntry, context: EventContext) => Effect, options?: EventHandlerOptions, E3, R3>): Effect`: Register one handler for future events of several types on a single shared queue and ordering boundary, before or after connecting the client - `run(): Effect`: Start and maintain a gateway connection for the client's whole lifetime, including transient recovery, until shutdown, permanent failure or cancellation - `schedule(task: Effect, options?: ScheduleOptions): Effect>`: Run a task later, once or repeatedly, as part of this client's lifetime instead of an event handler or command - `shardIdForGuild(guildId: string): number | undefined`: Return the ID of this client's shard that receives a community's gateway events, or undefined when another process owns that shard - `shutdown(options?: ShutdownOptions): Effect`: Permanently close this client and wait for startup, recovery, sockets and request cleanup - `subscribe>(event: K, options?: EventBufferOptions): Stream[K], EventOverflowError>`: Receive future events of one type in receive order through a bounded buffer - `use(middleware: EventMiddleware): Effect`: Add event middleware that runs around every later on handler invocation, for every event and subscription, including subscriptions registered before it, command routers and runBot handlers - `waitFor>(event: K, options?: EventWaitOptions): Effect[K], EventWaitFailure>`: Wait for the first future event of one type that passes the supplied synchronous filter - `waitForClose(): Effect`: Wait for this client's final shutdown or permanent connection failure, without starting or owning a connection #### interface CurrentBotApplication Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#currentbotapplication Read the application associated with this bot token and public OAuth2 application metadata - `fetch(options?: RequestOptions): Effect`: Fetch this bot token's application data from /oauth2/applications/@me - `fetchPublic(applicationId: string, options?: RequestOptions): Effect`: Fetch public metadata for one OAuth2 application from /oauth2/applications/{applicationId}/public #### interface GatewayCommands Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#gatewaycommands Read bot gateway guidance from Fluxer and send gateway commands that have no SDK method on this client's ready shards - `fetchBot(options?: RequestOptions): Effect`: Fetch live gateway connection guidance from GET /gateway/bot for this bot token - `send(shardId: number, op: number, d: unknown): Effect`: Send one command frame { op, d } on a Connected local shard #### interface Instance Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#instance Resolve the service addresses and URL helpers for the instance selected at client creation - `fetchBadges(query?: InstanceBadgeQuery, options?: RequestOptions): Effect`: Read the custom badges that communities on this instance can show, by ID or one page at a time, such as the names and images for a Guild's badgeIds - `resolve(options?: RequestOptions): Effect`: Resolve this client's instance endpoints and its pure link and asset URL helpers #### interface Presence Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#presence Set the bot's status or select community members whose presence updates the bot should receive - `set(input: PresenceInput): Effect`: Set the bot's requested status and optional custom status, including before connecting - `setMembers(guildId: string, memberIds: readonly string[]): Effect`: Request presence updates for selected members in one community #### interface RestRequest Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#restrequest One request to a Fluxer API route that the SDK does not wrap, sent with the client's bot credential through the same queue, rate-limit learning, 429 waits, deadline, logging and cancellation as wrapped operations - `auditReason?: string`: Audit-log reason sent as the X-Audit-Log-Reason header, 1 through 512 UTF-16 code units after U+000C and U+202E removal and trimming, which Fluxer otherwise drops silently - `body?: unknown`: JSON body, serialized when the request starts - `files?: readonly AttachmentInput[]`: Files sent inline as multipart/form-data, with the JSON body as payload_json and each file as files[n] in order - `method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"`: HTTP method - `path: string`: API path after /v1, such as /users/@me, of at most 2,048 characters - `query?: Readonly>`: Query parameters appended to the path in insertion order - `timeoutMs?: number`: Total milliseconds across local queueing, rate-limit waits, retries and HTTP #### interface RestRequests Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#restrequests Send requests to Fluxer API routes that the SDK does not wrap, with the client's bot credential and its REST scheduler - `call(route: R, ...input: RestCallArguments>): Effect>, RestRequestFailure>`: Send one request to a route of Fluxer's API description, checked at compile time: The route is its method and path template, such as `POST /channels/{channel_id}/messages`, and params, query and body take Fluxer's official field names - `request(input: RestRequest): Effect, RestRequestFailure>`: Send one request to a route under /v1 and resolve with its status, lower-case headers and parsed JSON body #### interface ScheduledTask Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#scheduledtask A task started with client.schedule - `close(): Effect`: Cancel every later run #### interface Voice Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#voice Send typed gateway voice signaling commands on the shard that owns a community - `join(input: VoiceJoinInput): Effect`: Request joining a community voice channel by sending an opcode 4 Voice State Update on the community's owning shard - `leave(guildId: string): Effect`: Request leaving voice in a community by sending an opcode 4 Voice State Update with `channel_id: null`, `self_mute: false` and `self_deaf: false` on the community's owning shard - `updateState(input: VoiceStateUpdateInput): Effect`: Send an opcode 4 Voice State Update on the community's owning shard to join, move, toggle self flags or disconnect #### type BotEventContext Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#boteventcontext Give a bot handler its event payload, client and EventContext - `{ readonly client: Client; readonly context: EventContext; readonly event: EventMap[K] } & (K extends "messageCreate" ? { readonly message: M; readonly reply: (input: ReplyInput | MessageB...` #### type BotEventHandler Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#boteventhandler A native runBot event handler - `(context: BotEventContext) => Effect.Effect` #### type BotEventServices Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#boteventservices The services required by every handler in a runBot events object, which runBot adds to its own requirements - `Events extends unknown ? { [K in keyof Events]-?: HandlerServices> extends infer R ? unknown extends R ? never : R : never }[keyof Events] : never` #### type BotEvents Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#botevents One optional handler per event, as a function or an object with a handler and delivery settings - `{ readonly [K in EventName]?: BotEventHandler | BotEventOptions }` #### type BotOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#botoptions Configure one Effect bot with client settings, optional stop signals, event handlers, prefix commands and startup work - `ClientOptions & RunBotOptions & { readonly commands?: BotCommandsOptions>; readonly events?: BotEvents Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#fluxerclientconfigoptions Client settings for FluxerClient.layerConfig: The settings of createClient, where the token and any other top-level setting can instead be an Effect Config read when the layer is built - `{ readonly [K in Exclude, "token">]?: ClientOptions[K] | Config.Config[K]> } & { readonly token: Config.Config> | Config.C...` #### type HandlerServices Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#handlerservices The services required by one runBot event handler H, including its onError and partitionReady hooks - `H extends (...args: never[]) => Effect.Effect ? R : H extends { readonly handler: (...args: never[]) => Effect.Effect; readonly onError?: infer Ho...` #### type RestCallInput Page: https://fluxerly.neontechspace.com/docs/api/effect/client-and-lifecycle/#restcallinput The second argument of an Effect API client.rest.call: The route's fields and the shared options - `RestRouteInput & RestRouteOptions` #### BotApplication Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#botapplication The same as in js-ts #### CustomStatusInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#customstatusinput The same as in js-ts #### GatewayBotInfo Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#gatewaybotinfo The same as in js-ts #### GatewaySessionStartLimit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#gatewaysessionstartlimit The same as in js-ts #### InstanceBadge Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadge The same as in js-ts #### InstanceBadgeLookup Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgelookup The same as in js-ts #### InstanceBadgePage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgepage The same as in js-ts #### InstanceBadgePageQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgepagequery The same as in js-ts #### InstanceDomainMigration Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancedomainmigration The same as in js-ts #### InstanceEndpoints Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instanceendpoints The same as in js-ts #### PresenceInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#presenceinput The same as in js-ts #### PublicApplication Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#publicapplication The same as in js-ts #### PublicApplicationBot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#publicapplicationbot The same as in js-ts #### ResolvedInstance Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#resolvedinstance The same as in js-ts #### RestResponse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restresponse The same as in js-ts #### RestRouteOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrouteoptions The same as in js-ts #### ScheduleOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#scheduleoptions The same as in js-ts #### ShutdownOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#shutdownoptions The same as in js-ts #### VoiceJoinInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#voicejoininput The same as in js-ts #### VoiceStateUpdateInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#voicestateupdateinput The same as in js-ts #### ConnectionState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#connectionstate The same as in js-ts #### CustomStatusEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#customstatusemoji The same as in js-ts #### InstanceBadgeQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#instancebadgequery The same as in js-ts #### PresenceStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#presencestatus The same as in js-ts #### RestCallArguments Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restcallarguments The same as in js-ts #### RestRoute Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restroute The same as in js-ts #### RestRouteInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrouteinput The same as in js-ts #### RestRouteResponse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/client-and-lifecycle/#restrouteresponse The same as in js-ts ### Commands #### variable commands Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#commands Define text commands, parse their arguments and attach them to an existing client - `Commands` #### variable guards Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#guards Built-in native command guards, namely guildOnly, dmOnly, ownerOnly, guildOwnerOnly, requirePermissions, requireBotPermissions, requireRoles and canManage - `Guards` #### interface BotCommandsOptions> = Readonly>, C extends BotCommandEntries = BotCommandEntries, RouterServices = never, ReadyServices = never, CallbackServices = never, G extends Readonly> = { … }> Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#botcommandsoptions Prefix commands for the native runBot: The router options of commands.create, the commands themselves, an optional failure hook and the delivery settings of the router's attach - `commands: C & { readonly [K in string | number | symbol]: Omit> ? any[any] : { … }, M, unknown, unknown, unknown, ...`: Commands keyed by name, such as `{ ping: { execute: ({ reply }) => reply("Pong") } }`, or a callback that receives the empty router and returns it with registrations, for groups or commands built elsewhere - `onError?: (report: FailureReport) => Effect`: Receive command failures, and the reports of the router's own subscription, instead of the client-level onError, as the router attach option does - `partitionReady?: (key: string) => Effect`: Hold the commands of a partition key until its own setup is done, as the client.on option partitionReady does for event handlers - Inherits from `PrefixCommandsOptions`: `caseSensitive`, `cooldowns`, `ignoreBots`, `mentionPrefix`, `onReject`, `onUnmatched`, `parse`, `prefix`, `use` - Inherits from `HandlerOptions`: `concurrency`, `maxPendingBytes`, `maxPendingMessages`, `overflow`, `partition` #### interface BuiltInCommandGuard Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#builtincommandguard Built-in native command guard compatible with any message selection `M` and carrying optional type-level message narrowing `Narrow` - `BuiltInCommandGuard(context: PrefixCommandContext): Effect`: Built-in native command guard compatible with any message selection `M` and carrying optional type-level message narrowing `Narrow` - `__message?: Narrow`: Type-only marker naming message properties guaranteed when this guard allows execution #### interface Commands Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#commands-1 Recognize message commands such as `!repeat hello` with `commands` from the package's `/effect` entry point - `create(options: PrefixCommandsOptions, RejectServices | NoInfer, UseServices | NoInfer, UnmatchedServices | NoInfer, RejectErrors | NoInfer, UseErrors | NoInfer, Un...): PrefixCommandRouter`: Validate options and create an empty local router, without connecting or subscribing a client - `memoryCooldowns(options?: MemoryCooldownOptions): MemoryCooldownStore`: Create a fresh in-memory cooldown store - `parseArgument | CommandArgumentUserSelection(token: string | undefined, descriptor: D, options?: CommandArgumentParseOptions): CommandArgumentValue | undefined`: Convert one token with a built-in argument descriptor, such as `commands.parseArgument("30m", { type: "duration" })`, which returns `1_800_000` - `parseQuoted(input: PrefixCommandParseInput): PrefixCommandParse | PrefixCommandParseRejection | undefined`: Synchronously split a suffix with single or double quotes and backslash escapes, preserving original argument text in `rawArgs` - `suggest(name: string, candidates: Iterable): string | undefined`: Name the candidate closest to a misspelled name, such as `commands.suggest("pnig", ["ping", "help"])`, which returns `"ping"` #### interface CooldownStore Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#cooldownstore Storage that checks and reserves a command cooldown in one atomic claim - `claim(input: CommandCooldownRequest): CommandCooldownClaim | Effect`: Reserve `input.key` for `input.durationMs`, returning a claim directly or through an Effect #### interface Guards Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#guards-1 Built-in native command guards for the most common access rules - `canManage(argumentName: K, options?: CanManageGuardOptions): CanManageGuard`: Allow the command in `afterParse` only when the role hierarchy permits managing the parsed `member` argument named `argumentName` - `dmOnly(): BuiltInCommandGuard`: Allow the command only in a confirmed one-to-one or group conversation, and deny every other message - `guildOnly(): BuiltInCommandGuard`: Allow the command only for a message that carries its community's guildId, and deny every other message without a request - `guildOwnerOnly(options?: GuardCacheOptions): BuiltInCommandGuard`: Allow the command only when the invoking user is the community's owner (`guild.ownerId === message.author.id`), and deny it in direct messages - `ownerOnly(): BuiltInCommandGuard`: Allow the command only for the owner of the bot's application, as Fluxer reports it - `ownerOnly(ownerIds: string | readonly string[]): BuiltInCommandGuard`: Allow the command only for the given decimal user IDs, such as the bot owner's - `requireBotPermissions(names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "..., options?: GuardCacheOptions): BuiltInCommandGuard`: Allow the command only when the bot itself has every named permission in the message's channel, and deny it in direct messages - `requirePermissions(names: readonly ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "..., options?: GuardCacheOptions): BuiltInCommandGuard`: Allow the command only when the invoking member has every named permission in the message's channel, and deny it in direct messages - `requireRoles(roleIds: readonly string[], options?: RequireRolesOptions): BuiltInCommandGuard`: Allow the command only when the invoking member holds required community roles, and deny it in direct messages #### interface MemoryCooldownStore Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#memorycooldownstore Bounded in-memory cooldown reservations for one process, using the caller's Effect Clock wall time - `maxEntries: number`: Fixed key limit selected when the store is created - `size: number`: Immediate stored-key count, including expired keys until a full store needs room or a sweep removes them - `claim(input: CommandCooldownRequest): Effect`: When run, atomically reserve the key or report its active cooldown - `clear(): Effect`: Return an Effect that forgets this store's reservations, allowing new claims - `sweep(): Effect`: Return an Effect that removes keys expired according to the caller's Effect Clock and produces the number removed, preserving active claims #### interface PrefixCommand Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommand A prefix command whose application callbacks return Effects rather than promises - `afterParse?: PrefixCommandAfterParseGuard | readonly PrefixCommandAfterParseGuard[]`: One post-parse guard or a list of post-parse guards, run in order after argument conversion and before cooldown claims - `arguments?: S`: Named positional conversions in property order - `cooldown?: PrefixCommandCooldown`: Optional cooldown claim required after the guard, arguments and post-parse guards succeed - `execute: (context: NarrowedCommandContext, M, G>) => Effect`: Return the Effect that performs work for this allowed command with fully converted arguments - `guard?: PrefixCommandGuard | readonly PrefixCommandGuard[]`: One guard or a list of guards, run in order before argument conversion - `onReject?: PrefixCommandRejectionFeedback`: Feedback after a denied guard, rejected arguments or a denied cooldown, overriding the router's `onReject` - Inherits from `PrefixCommandDefinition`: `aliases`, `description`, `hidden`, `name`, `usage` #### interface PrefixCommandContext Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandcontext Message and parsed arguments for a native command's guard and rejection callback - `args: readonly string[]`: Parsed string tokens copied to a frozen array, preserved alongside any converted values - `client: Client`: Client supplied to `attach`, available for explicit Effect operations - `confirm: (input: string | MessageInput | MessageBuilder, options?: ConfirmOptions) => Effect, ConfirmFailure>`: Send a confirmation prompt in this message's channel and wait for the command's author to confirm or cancel with reactions, such as `({ confirm }) => confirm("Reset settings?")` - `help: (options?: CommandContextHelpOptions) => readonly string[]`: Build help pages from the router that matched this command, for example `({ help, reply }) => reply(help()[0] ?? - `message: M`: Frozen incoming message with the attached client's selected fields - `name: string`: Registered command name, regardless of the alias or letter case used in the message - `paginate: (pages: readonly PageInput[], options?: PaginateOptions) => Effect, PaginateFailure>`: Show several pages in this message's channel that the command's author flips with ◀ and ▶ reactions, such as `({ paginate }) => paginate(["First", "Second"])` - `path?: readonly string[]`: Frozen registered names through this command, such as `["admin", "inspect"]` - `prefix: string`: Exact prefix selected for this invocation, such as `!` or `!!` - `rawArgs: string`: Argument text retained by the parser - `reply: (input: string | ReplyInput | MessageBuilder, options?: RequestOptions) => Effect`: Reply to the incoming message through the attached client - `sendHelp: (options?: CommandContextHelpOptions) => Effect, PaginateFailure>`: Send this router's help in this message's channel, such as `({ sendHelp }) => sendHelp()` #### interface PrefixCommandCooldown Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandcooldown Limit how often a command executes, per user by default - `durationMs: number`: Whole milliseconds per claim, from 1 through 2,147,483,647 - `key?: (context: NarrowedCommandContext, M, G>) => string`: Synchronously return a nonempty suffix from the converted context, replacing the one selected by `per` - `per?: CommandCooldownPer`: Whose invocations share the cooldown: `user` (default), `channel` or `guild` - `store?: CooldownStore`: Reservation store retained by reference #### interface PrefixCommandExecutionContext Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandexecutioncontext Command context supplied to post-parse guards, execution and cooldown-key callbacks only after the complete argument schema succeeds - `values: CommandArgumentValues`: Frozen values keyed by schema names, such as `values.count`, or an empty object when no schema is supplied - Inherits from `PrefixCommandContext`: `args`, `client`, `confirm`, `help`, `message`, `name`, `paginate`, `path`, `prefix`, `rawArgs`, `reply`, `sendHelp` #### interface PrefixCommandGuard Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandguard Decide whether a matched command may run, from raw context before argument conversion - `PrefixCommandGuard(context: PrefixCommandContext): Effect`: Decide whether a matched command may run, from raw context before argument conversion - `__message?: Narrow`: Type-only marker naming message properties guaranteed when this guard allows execution #### interface PrefixCommandRouter Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandrouter Immutable registered commands and groups for attachment to a native client - `__message?: (message: M) => void`: Type-only variance marker requiring a compatible message shape when this router is assigned or attached - `__services?: (_: never) => R`: Type-only variance marker naming services required when this router is attached - `commands: readonly PrefixCommandMetadata[]`: Frozen executable-command information in registration order across groups, without callbacks or resource candidates - `groups: readonly PrefixCommandGroupMetadata[]`: Frozen group information in registration order, including empty groups - `attach(client: Client, options?: EventHandlerOptions): Effect`: Return an Effect that registers this router as one bounded `messageCreate` subscription in the caller's scope - `help(options: CommandHelpOptions): readonly string[]`: Build frozen help pages locally and synchronously, without sending messages or executing commands - `register> = { … }, GuardServices = never, RejectServices = never, CooldownServices = never, GuardErrors = never, RejectErrors = never, CooldownErrors = never, G extends PrefixCommandGuard | readonly PrefixCommandGuard[] = PrefixCommandGuard | readonly PrefixCommandGuard[], AfterParseServices = never, AfterParseErrors = never, AP = unknown>(command: Omit, RejectServices | NoInfer, CooldownServices | NoInfer, GuardErrors | NoInfer, RejectErrors | NoInfer, CooldownErrors | NoInfer..., options?: PrefixCommandRegistrationOptions): PrefixCommandRouter : EffectRequir...`: Validate and add a command to a new router, at root or an existing canonical `options.group` path - `registerGroup(group: PrefixCommandGroupDefinition, options?: PrefixCommandRegistrationOptions): PrefixCommandRouter`: Add a group to a new router, at root or beneath an existing canonical `options.group` path - `registerMany>, C extends Readonly>; readonly execute: unknown }>>, G extends Readonly> = { … }>(commands: C & { readonly [K in string | number | symbol]: Omit> ? any[any] : { … }, M, unknown, unknown, unknown, ..., options?: PrefixCommandRegistrationOptions): PrefixCommandRouter, M>`: Validate and add a nonempty keyed command object to one new router, in JavaScript own enumerable string-key order and under one optional parent #### interface PrefixCommandUnmatchedContext Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandunmatchedcontext Frozen message and prefix for native `onUnmatched` feedback, without an assumed command or converted arguments - `client: Client`: Attached client for explicit feedback operations, without transferring its lifetime to the router - `message: M`: Incoming frozen message with the client's selected fields only - `prefix: string`: Exact prefix selected before parsing declined, name lookup missed or a group needed a subcommand - `reply: (input: string | ReplyInput | MessageBuilder, options?: RequestOptions) => Effect`: Reply to the unmatched incoming message through the attached client, inheriting this callback's interruption #### interface PrefixCommandsOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandsoptions Prefix and parser configuration with optional Effect feedback when no executable command is selected - `onReject?: PrefixCommandRejectionFeedback`: Rejection feedback for commands that do not set their own `onReject` - `onUnmatched?: (context: PrefixCommandUnmatchedContext, unmatched: PrefixCommandUnmatched) => Effect`: Return an Effect that handles a parser decline, unknown name or group without a subcommand - `prefix: string | readonly string[] | ((message: M) => PrefixCommandPrefixValue | Effect)`: Prefix text, accepted-prefix list or per-message resolver, which may return an Effect - `use?: readonly PrefixCommandMiddleware[]`: Middleware run around every matched command, in order - Inherits from `PrefixCommandParsing`: `caseSensitive`, `cooldowns`, `ignoreBots`, `mentionPrefix`, `parse` #### type BatchRequirements Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#batchrequirements The services required by every command in a registerMany batch, recorded on the returned router - `C extends Readonly> ? CommandRequirements : never` #### type BotCommandCallbackServices Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#botcommandcallbackservices The services required by the router-level callbacks and router-builder callbacks of a runBot commands option O: A prefix resolver, onReject, each use middleware, onUnmatched, onError, partitionReady and any commands router callback - `O extends unknown ? (O[keyof O & ("prefix" | "onReject" | "onUnmatched" | "onError" | "partitionReady")] | (O[keyof ... & "use"] & readonly unknown[])[number] extends infer Callback ? Callback extends...` #### type BotCommandEntries Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#botcommandentries The keyed-command constraint the native runBot infers command services from: Each entry's optional argument schema and callback - `Readonly>` #### type CanManageGuard Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#canmanageguard Post-parse native command guard returned by `guards.canManage` that checks community role hierarchy against a parsed `member` argument named `K` - `(context: PrefixCommandContext & { readonly values: Readonly> }) => Effect.Effect` #### type CommandRequirements Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#commandrequirements The services required by one command's execute, guard, afterParse, onReject and cooldown claim callbacks - `C extends unknown ? EffectRequirements | (C[keyof C & "guard"] extends infer Guard ? Guard extends readonly (infer Each)[] ? EffectRequirements : EffectRequirements Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#effectrequirements The services required by the Effect that callback F returns, or never when F returns no Effect - `F extends (...arguments_: never[]) => Effect.Effect ? unknown extends R ? never : R : never` #### type PrefixCommandAfterParseGuard Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandafterparseguard Decide whether a matched command may run after argument conversion, from the converted execution context - `(context: NarrowedCommandContext, M, G>) => Effect.Effect` #### type PrefixCommandBatch>, G extends Readonly> = { … }> Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandbatch Commands keyed by name, as registerMany and the runBot commands option accept them - `{ readonly [K in keyof S]: Omit, "name" | "a...` #### type PrefixCommandMiddleware Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandmiddleware Run around every matched command of a router, in registration order, before its guards - `(context: PrefixCommandContext, next: Effect.Effect) => Effect.Effect` #### type PrefixCommandRejectionFeedback Page: https://fluxerly.neontechspace.com/docs/api/effect/commands/#prefixcommandrejectionfeedback Rejection feedback for a command: `"reply"` sends a short explanation, such as the missing argument and the command's usage, the guard's deny reason or the cooldown's remaining time - `"reply" | "silent" | ((context: PrefixCommandContext, rejection: PrefixCommandRejection) => Effect.Effect)` #### CanManageGuardOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#canmanageguardoptions The same as in js-ts #### CommandArgumentBoolean Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentboolean The same as in js-ts #### CommandArgumentChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentchannel The same as in js-ts #### CommandArgumentChannelSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentchannelselection The same as in js-ts #### CommandArgumentChoice Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentchoice The same as in js-ts #### CommandArgumentCustom Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentcustom The same as in js-ts #### CommandArgumentDuration Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentduration The same as in js-ts #### CommandArgumentId Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentid The same as in js-ts #### CommandArgumentInteger Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentinteger The same as in js-ts #### CommandArgumentMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentmember The same as in js-ts #### CommandArgumentMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentmetadata The same as in js-ts #### CommandArgumentNumber Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentnumber The same as in js-ts #### CommandArgumentParseOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentparseoptions The same as in js-ts #### CommandArgumentRole Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentrole The same as in js-ts #### CommandArgumentRoleSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentroleselection The same as in js-ts #### CommandArgumentText Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumenttext The same as in js-ts #### CommandArgumentUser Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentuser The same as in js-ts #### CommandArgumentUserSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentuserselection The same as in js-ts #### CommandContextHelpOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcontexthelpoptions The same as in js-ts #### CommandCooldownRequest Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcooldownrequest The same as in js-ts #### CommandHelpOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandhelpoptions The same as in js-ts #### GuardCacheOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guardcacheoptions The same as in js-ts #### GuildMessageRefinement Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guildmessagerefinement The same as in js-ts #### MemoryCooldownOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#memorycooldownoptions The same as in js-ts #### PrefixCommandDefinition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommanddefinition The same as in js-ts #### PrefixCommandGroupDefinition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandgroupdefinition The same as in js-ts #### PrefixCommandGroupMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandgroupmetadata The same as in js-ts #### PrefixCommandMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandmetadata The same as in js-ts #### PrefixCommandParse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparse The same as in js-ts #### PrefixCommandParseInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparseinput The same as in js-ts #### PrefixCommandParseRejection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparserejection The same as in js-ts #### PrefixCommandParsing Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandparsing The same as in js-ts #### PrefixCommandRegistrationOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandregistrationoptions The same as in js-ts #### RequireRolesOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#requirerolesoptions The same as in js-ts #### CommandArgumentDescriptor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentdescriptor The same as in js-ts #### CommandArgumentMention Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentmention The same as in js-ts #### CommandArgumentOptionalValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentoptionalvalue The same as in js-ts #### CommandArgumentRejectionReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentrejectionreason The same as in js-ts #### CommandArgumentSchema Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentschema The same as in js-ts #### CommandArgumentType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumenttype The same as in js-ts #### CommandArgumentValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentvalue The same as in js-ts #### CommandArgumentValues Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandargumentvalues The same as in js-ts #### CommandCooldownClaim Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcooldownclaim The same as in js-ts #### CommandCooldownPer Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#commandcooldownper The same as in js-ts #### GuardMessageRefinement Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guardmessagerefinement The same as in js-ts #### GuildMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#guildmessage The same as in js-ts #### NarrowedCommandContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#narrowedcommandcontext The same as in js-ts #### NarrowedMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#narrowedmessage The same as in js-ts #### PrefixCommandGuardResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandguardresult The same as in js-ts #### PrefixCommandPrefix Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandprefix The same as in js-ts #### PrefixCommandPrefixValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandprefixvalue The same as in js-ts #### PrefixCommandRejection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandrejection The same as in js-ts #### PrefixCommandUnmatched Page: https://fluxerly.neontechspace.com/docs/api/js-ts/commands/#prefixcommandunmatched The same as in js-ts ### Emoji and Stickers #### interface Emojis Page: https://fluxerly.neontechspace.com/docs/api/effect/emoji-and-stickers/#emojis Read, upload, rename, clone or delete custom emoji - `clone(guildId: string, sourceId: string, options?: AuditedRequestOptions): Effect`: Copy an emoji into a community by its source ID, using Fluxer's server-side copy - `create(guildId: string, input: EmojiCreate, options?: AuditedRequestOptions): Effect`: Upload one community emoji and return its metadata - `createMany(guildId: string, input: readonly EmojiCreate[], options?: AuditedRequestOptions): Effect, GuildOperationFailure>`: Upload 1–50 community emojis in one batch and return separate successes and failures - `delete(target: ExpressionReference, options?: ExpressionDeleteOptions): Effect`: Remove an emoji, succeeding with no value after HTTP 204 - `edit(target: ExpressionReference, input: EmojiEdit, options?: AuditedRequestOptions): Effect`: Rename a community emoji without changing its image or fetching its old metadata first - `fetchAll(guildId: string, options?: RequestOptions): Effect`: Fetch a community's emoji list in Fluxer's order, without pagination - `fetchMetadata(id: string, options?: RequestOptions): Effect`: Fetch minimal emoji metadata by decimal ID, without requiring source-community membership - `fetchSource(id: string, options?: RequestOptions): Effect`: Fetch the public presentation of the community that owns a custom emoji with this decimal ID: Its ID, name, icon hash and badges - `get(target: ExpressionReference): Effect`: Look up cached emoji metadata using decimal guildId and id, without an HTTP request #### interface Stickers Page: https://fluxerly.neontechspace.com/docs/api/effect/emoji-and-stickers/#stickers Read, upload, edit, clone or delete custom stickers - `clone(guildId: string, sourceId: string, options?: AuditedRequestOptions): Effect`: Copy a sticker into a community by its source ID, using Fluxer's server-side copy - `create(guildId: string, input: StickerCreate, options?: AuditedRequestOptions): Effect`: Upload one community sticker and return its metadata - `createMany(guildId: string, input: readonly StickerCreate[], options?: AuditedRequestOptions): Effect, GuildOperationFailure>`: Upload 1–50 community stickers in one batch and return separate successes and failures - `delete(target: ExpressionReference, options?: ExpressionDeleteOptions): Effect`: Remove a sticker, succeeding with no value after HTTP 204 - `edit(target: ExpressionReference, input: StickerEdit, options?: AuditedRequestOptions): Effect`: Replace a sticker's name, description and tags without changing its image or fetching it first - `fetchAll(guildId: string, options?: RequestOptions): Effect`: Fetch a community's sticker list in Fluxer's order, without pagination - `fetchMetadata(id: string, options?: RequestOptions): Effect`: Fetch minimal sticker metadata by decimal ID, without requiring source-community membership - `fetchSource(id: string, options?: RequestOptions): Effect`: Fetch the public presentation of the community that owns a custom sticker with this decimal ID: Its ID, name, icon hash and badges - `get(target: ExpressionReference): Effect`: Look up cached sticker metadata using decimal guildId and id, without an HTTP request #### EmojiCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#emojicreate The same as in js-ts #### EmojiEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#emojiedit The same as in js-ts #### ExpressionBatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionbatch The same as in js-ts #### ExpressionMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionmetadata The same as in js-ts #### ExpressionReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionreference The same as in js-ts #### ExpressionSourceGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#expressionsourceguild The same as in js-ts #### GuildEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#guildemoji The same as in js-ts #### GuildSticker Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#guildsticker The same as in js-ts #### StickerCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#stickercreate The same as in js-ts #### StickerEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/emoji-and-stickers/#stickeredit The same as in js-ts ### Errors #### describeError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#describeerror The same as in js-ts #### errors Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#errors The same as in js-ts #### ApplicationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/applicationerror/ The same as in js-ts #### AssetUrlError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/asseturlerror/ The same as in js-ts #### AttachmentDownloadError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/attachmentdownloaderror/ The same as in js-ts #### AttachmentRefreshError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/attachmentrefresherror/ The same as in js-ts #### AuthenticationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/authenticationerror/ The same as in js-ts #### BotApplicationOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/botapplicationoperationerror/ The same as in js-ts #### ChannelOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/channeloperationerror/ The same as in js-ts #### ClientBusyError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/clientbusyerror/ The same as in js-ts #### ClientClosedError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/clientclosederror/ The same as in js-ts #### CollectorError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/collectorerror/ The same as in js-ts #### ConfigurationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/configurationerror/ The same as in js-ts #### ConnectionError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/connectionerror/ The same as in js-ts #### ConnectionTimeoutError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/connectiontimeouterror/ The same as in js-ts #### CountOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/countoperationerror/ The same as in js-ts #### CriticalWorkerStoppedError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/criticalworkerstoppederror/ The same as in js-ts #### EventOverflowError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/eventoverflowerror/ The same as in js-ts #### EventReadBusyError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/eventreadbusyerror/ The same as in js-ts #### EventWaitError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/eventwaiterror/ The same as in js-ts #### FluxerlyError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/fluxerlyerror/ The same as in js-ts #### GatewayOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/gatewayoperationerror/ The same as in js-ts #### GatewaySendError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/gatewaysenderror/ The same as in js-ts #### GuildOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guildoperationerror/ The same as in js-ts #### HelperError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/helpererror/ The same as in js-ts #### MemberChunkError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/memberchunkerror/ The same as in js-ts #### MessageCleanupError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messagecleanuperror/ The same as in js-ts #### MessageError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messageerror/ The same as in js-ts #### MessageOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messageoperationerror/ The same as in js-ts #### OAuthOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauthoperationerror/ The same as in js-ts #### PaginationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/paginationerror/ The same as in js-ts #### PresenceError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/presenceerror/ The same as in js-ts #### RateLimitError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/ratelimiterror/ The same as in js-ts #### RestRequestError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/restrequesterror/ The same as in js-ts #### ShardConnectionError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/shardconnectionerror/ The same as in js-ts #### SupervisorChildError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/supervisorchilderror/ The same as in js-ts #### SupervisorError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/supervisorerror/ The same as in js-ts #### UserOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/useroperationerror/ The same as in js-ts #### VoiceError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/voiceerror/ The same as in js-ts #### WebhookOperationError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/webhookoperationerror/ The same as in js-ts #### ApiErrorDetail Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apierrordetail The same as in js-ts #### ApiValidationErrorDetail Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apivalidationerrordetail The same as in js-ts #### DescribeErrorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#describeerroroptions The same as in js-ts #### ErrorTools Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#errortools The same as in js-ts #### FluxerlyErrorJson Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#fluxerlyerrorjson The same as in js-ts #### FluxerlyErrorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#fluxerlyerroroptions The same as in js-ts #### InputValidationDetail Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#inputvalidationdetail The same as in js-ts #### MessageCleanupFailureMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messagecleanupfailuremetadata The same as in js-ts #### OperationErrorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operationerroroptions The same as in js-ts #### ApiErrorCode Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apierrorcode The same as in js-ts #### ApiProviderCode Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apiprovidercode The same as in js-ts #### ApiValidationCode Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#apivalidationcode The same as in js-ts #### AttachmentDownloadFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#attachmentdownloadfailure The same as in js-ts #### AttachmentRefreshFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#attachmentrefreshfailure The same as in js-ts #### AttachmentRefreshOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#attachmentrefreshoperation The same as in js-ts #### BotApplicationOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#botapplicationoperation The same as in js-ts #### BotApplicationOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#botapplicationoperationfailure The same as in js-ts #### ChannelOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#channeloperation The same as in js-ts #### ChannelOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#channeloperationfailure The same as in js-ts #### CollectorFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#collectorfailure The same as in js-ts #### ConfirmFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#confirmfailure The same as in js-ts #### ConnectError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#connecterror The same as in js-ts #### ConnectionFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#connectionfailure The same as in js-ts #### CountOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#countoperation The same as in js-ts #### CountOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#countoperationfailure The same as in js-ts #### ErrorMatchHandlers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#errormatchhandlers The same as in js-ts #### EventReadError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#eventreaderror The same as in js-ts #### EventWaitFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#eventwaitfailure The same as in js-ts #### GatewayOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#gatewayoperation The same as in js-ts #### GatewayOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#gatewayoperationfailure The same as in js-ts #### GatewaySendFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#gatewaysendfailure The same as in js-ts #### GuildOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#guildoperation The same as in js-ts #### GuildOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#guildoperationfailure The same as in js-ts #### InputValidationConstraint Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#inputvalidationconstraint The same as in js-ts #### InstanceResolveError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#instanceresolveerror The same as in js-ts #### MemberChunkFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#memberchunkfailure The same as in js-ts #### MessageCleanupErrorReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messagecleanuperrorreason The same as in js-ts #### MessageCleanupFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messagecleanupfailure The same as in js-ts #### MessageOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#messageoperationfailure The same as in js-ts #### NotFoundResource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#notfoundresource The same as in js-ts #### OAuthOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#oauthoperation The same as in js-ts #### OAuthOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#oauthoperationfailure The same as in js-ts #### Operation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operation The same as in js-ts #### OperationOutcome Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operationoutcome The same as in js-ts #### OperationReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#operationreason The same as in js-ts #### PaginateFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#paginatefailure The same as in js-ts #### PaginationOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#paginationoperation The same as in js-ts #### PresenceFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#presencefailure The same as in js-ts #### RestOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#restoperation The same as in js-ts #### RestRequestFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#restrequestfailure The same as in js-ts #### SendError Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#senderror The same as in js-ts #### UserOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#useroperation The same as in js-ts #### UserOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#useroperationfailure The same as in js-ts #### VoiceFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#voicefailure The same as in js-ts #### VoiceOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#voiceoperation The same as in js-ts #### WebhookOperation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#webhookoperation The same as in js-ts #### WebhookOperationFailure Page: https://fluxerly.neontechspace.com/docs/api/js-ts/errors/#webhookoperationfailure The same as in js-ts ### Events and Collectors #### interface Collector Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#collector A running message collector registered in a Scope - `close(): Effect`: Stop accepting messages now, keeping accepted messages for a successful partial result - `result(): Effect, CollectorFailure>`: Wait for the final frozen collection result after timer, queue, filter, listener and callback cleanup #### interface CollectorOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#collectoroptions Choose which new messages to collect in one channel and when to stop - `filter?: (message: M) => boolean`: Return true to accept a message, or false to skip it - `guildId?: string`: Community that owns this channel, as a positive decimal ID within the unsigned 64-bit range - `idleMs?: number`: Stop successfully after this many milliseconds without an accepted message - `maxBytes?: number`: Maximum UTF-8 JSON bytes kept for accepted messages - `maxMessages?: number`: Stop successfully after this many accepted messages and their callbacks - `onMessage?: (message: M) => Effect`: Run once per accepted message ID, sequentially, after filtering and stored-byte limit checks - `timeoutMs?: number`: Stop successfully after this many milliseconds from registration, regardless of activity - Inherits from `EventBufferOptions`: `maxPendingBytes`, `maxPendingMessages` #### interface EventHandlerOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#eventhandleroptions Set event-handler queue limits, concurrency, ordering, overflow policy, an optional failure hook and an optional partition readiness hook - `onError?: (report: FailureReport) => Effect`: Receive this subscription's failures instead of the client-level onError, with the original error and its full Cause - `partitionReady?: (key: string) => Effect`: Hold the events of a partition key until that key is ready, without using a handler slot - Inherits from `HandlerOptions`: `concurrency`, `maxPendingBytes`, `maxPendingMessages`, `overflow`, `partition` #### interface EventWaitOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#eventwaitoptions Settings for waitFor to receive one future event that passes an optional filter - `filter?: (event: EventMap[K]) => boolean`: Return true to complete with this event, false to keep waiting - `timeoutMs?: number`: Total milliseconds to wait from registration, an integer from 1 through 2,147,483,647, default 30,000 - Inherits from `EventBufferOptions`: `maxPendingBytes`, `maxPendingMessages` #### interface MiddlewareRegistration Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#middlewareregistration Remove event middleware registered with client.use before its registration Scope closes - `close(): Effect`: Stop applying the middleware to invocations that start later #### interface ReactionCollector Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#reactioncollector A running reaction collector registered in a Scope - `close(): Effect`: Stop accepting additions now and keep accepted observations for a successful partial result - `result(): Effect`: Wait for the final frozen reaction result after queue, timer, filter, listener and callback cleanup #### interface ReactionCollectorOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#reactioncollectoroptions Choose which new reaction events to collect on one message and when to stop - `emoji?: ReactionEmojiInput | readonly ReactionEmojiInput[]`: Collect only one emoji or any emoji in a nonempty array, or omit to accept any emoji - `filter?: (reaction: MessageReaction) => boolean`: Return true to accept an addition, or false to skip it - `guildId?: string`: Community that owns the target channel, as a positive decimal ID within the unsigned 64-bit range - `idleMs?: number`: Stop successfully after this many milliseconds without an accepted addition - `includeRemovals?: boolean`: Also collect single reaction removals alongside additions - `maxBytes?: number`: Maximum UTF-8 JSON bytes kept for accepted MessageReaction values - `maxReactions?: number`: Stop successfully after this many accepted additions and their callbacks - `onReaction?: (reaction: MessageReaction) => Effect`: Run once per accepted addition, sequentially, before continuing collection - `timeoutMs?: number`: Stop successfully after this many milliseconds from registration - Inherits from `EventBufferOptions`: `maxPendingBytes`, `maxPendingMessages` #### interface Subscription Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#subscription An event subscription registered in a Scope, independent of the client's connection - `id: string`: Identifier of this subscription, such as messageCreate#3, used in failure reports and log records - `close(): Effect`: Stop new deliveries, drop queued events and stop running handlers, without waiting for the handler that called close - `waitForClose(): Effect`: Wait until this subscription has closed and the SDK has released its queue and listeners #### type EventMiddleware Page: https://fluxerly.neontechspace.com/docs/api/effect/events-and-collectors/#eventmiddleware Event middleware for the Effect API, run around each client.on handler invocation that starts after registration - `(invocation: EventInvocation, next: Effect.Effect) => Effect.Effect` #### CallCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#callcreate The same as in js-ts #### CallDelete Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#calldelete The same as in js-ts #### CallUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#callupdate The same as in js-ts #### CallVoiceState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#callvoicestate The same as in js-ts #### ChannelPinsUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#channelpinsupdate The same as in js-ts #### CollectorResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#collectorresult The same as in js-ts #### DirectMessageRecipientChange Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#directmessagerecipientchange The same as in js-ts #### DocumentedRawDispatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#documentedrawdispatch The same as in js-ts #### EntranceSoundPlay Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#entrancesoundplay The same as in js-ts #### EventBufferOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventbufferoptions The same as in js-ts #### EventContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventcontext The same as in js-ts #### EventEntryOf Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#evententryof The same as in js-ts #### EventInvocationOf Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventinvocationof The same as in js-ts #### EventMap Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventmap The same as in js-ts #### GatewayDispatchPayloads Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewaydispatchpayloads The same as in js-ts #### GatewayErrorData Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewayerrordata The same as in js-ts #### GatewayErrorEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewayerrorevent The same as in js-ts #### GatewayPayloadObjects Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#gatewaypayloadobjects The same as in js-ts #### GuildAuditLogEntryCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildauditlogentrycreate The same as in js-ts #### GuildChannelUpdateBulk Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildchannelupdatebulk The same as in js-ts #### GuildCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildcreate The same as in js-ts #### GuildDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guilddeletion The same as in js-ts #### GuildEmojisUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildemojisupdate The same as in js-ts #### GuildHealthUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildhealthupdate The same as in js-ts #### GuildLifecycleEvents Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildlifecycleevents The same as in js-ts #### GuildStickersUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#guildstickersupdate The same as in js-ts #### HandlerOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#handleroptions The same as in js-ts #### InviteDeleteEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#invitedeleteevent The same as in js-ts #### MessageBulkDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagebulkdeletion The same as in js-ts #### MessageDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagedeletion The same as in js-ts #### MessageReaction Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagereaction The same as in js-ts #### MessageReactionBatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagereactionbatch The same as in js-ts #### MessageReactionEmojiRemoval Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#messagereactionemojiremoval The same as in js-ts #### ObservedCustomStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#observedcustomstatus The same as in js-ts #### ObservedCustomStatusEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#observedcustomstatusemoji The same as in js-ts #### PresenceUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#presenceupdate The same as in js-ts #### PreviousSnapshots Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#previoussnapshots The same as in js-ts #### RawDispatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#rawdispatch The same as in js-ts #### ReactionCollectorResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#reactioncollectorresult The same as in js-ts #### ThreadDeletion Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threaddeletion The same as in js-ts #### ThreadListSync Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadlistsync The same as in js-ts #### ThreadMemberUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadmemberupdate The same as in js-ts #### ThreadMembersUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadmembersupdate The same as in js-ts #### TypingStart Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#typingstart The same as in js-ts #### UndocumentedRawDispatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#undocumentedrawdispatch The same as in js-ts #### VoiceIceServer Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voiceiceserver The same as in js-ts #### VoiceServerUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voiceserverupdate The same as in js-ts #### VoiceSignal Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voicesignal The same as in js-ts #### VoiceState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voicestate The same as in js-ts #### VoiceStateSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#voicestatesnapshot The same as in js-ts #### WebhooksUpdate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#webhooksupdate The same as in js-ts #### EventEntry Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#evententry The same as in js-ts #### EventInvocation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventinvocation The same as in js-ts #### EventName Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#eventname The same as in js-ts #### ObservedPresenceStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#observedpresencestatus The same as in js-ts #### PreviousSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#previoussnapshot The same as in js-ts #### RawDispatchEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#rawdispatchevent The same as in js-ts #### ThreadCreateEvent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/events-and-collectors/#threadcreateevent The same as in js-ts ### Guilds and Members #### interface AuditLogs Page: https://fluxerly.neontechspace.com/docs/api/effect/guilds-and-members/#auditlogs Read a community's audit log as a page or a bounded sequence of entries - `fetchPage(guildId: string, query: AuditLogQuery, options?: RequestOptions): Effect`: Fetch one filtered audit page with referenced users and webhook metadata that excludes tokens - `iterate(guildId: string, query: AuditLogIterationQuery, options?: RequestOptions): Stream`: Read filtered audit entries newest first, buffering one page and never prefetching #### interface Discovery Page: https://fluxerly.neontechspace.com/docs/api/effect/guilds-and-members/#discovery Search Fluxer's public community directory or manage a community's listing application - `apply(guildId: string, input: DiscoveryApplicationInput, options?: RequestOptions): Effect`: Submit a community's application to the public directory - `edit(guildId: string, input: DiscoveryApplicationEdit, options?: RequestOptions): Effect`: Change supplied fields of a pending or approved directory application - `fetchCategories(options?: RequestOptions): Effect`: Fetch directory category IDs and Fluxer's category labels in provider order - `fetchStatus(guildId: string, options?: RequestOptions): Effect`: Fetch a community's current directory eligibility and application state - `search(query?: DiscoverySearchQuery, options?: RequestOptions): Effect`: Fetch one page from the current public community directory - `withdraw(guildId: string, options?: RequestOptions): Effect`: Withdraw a pending application or remove an approved directory listing #### interface Guilds Page: https://fluxerly.neontechspace.com/docs/api/effect/guilds-and-members/#guilds Read or change guilds and obtain gateway counts - `deleteOwnMessages(guildId: string, options: OwnMessageDeletionOptions): Effect`: Irreversibly delete this bot's entire authored message history across one community - `edit(guildId: string, input: GuildEdit, options?: AuditedRequestOptions): Effect`: Change only supplied community settings that a bot may edit - `editVanityUrl(guildId: string, code: string | null, options?: AuditedRequestOptions): Effect`: Set a community's custom invite code, replace it, or pass null or an empty string to remove it, as Fluxer reads an empty code as null - `fetch(guildId: string, options?: RequestOptions): Effect`: Fetch a community's identity and settings by decimal ID - `fetchCounts(guildIds: readonly string[], options?: RequestOptions): Effect`: Request fresh, visibility-filtered counts for 1–100 communities over the connected gateway - `fetchPage(query?: GuildListQuery, options?: RequestOptions): Effect`: Fetch one page of communities this bot belongs to, ordered by ascending guild ID - `fetchVanityUrl(guildId: string, options?: RequestOptions): Effect`: Fetch a community's custom invite code, URL and use count with ManageGuild permission - `get(guildId: string): Effect`: Look up a community in the enabled guild cache, without a request or gateway connection - `iterate(query: GuildIterationQuery, options?: RequestOptions): Stream`: Read the bot's community memberships in ascending ID order, retaining one page and never prefetching - `leave(guildId: string, options?: RequestOptions): Effect`: Remove this bot from one community while preserving its authored messages #### interface MemberChunkOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/guilds-and-members/#memberchunkoptions Set how long a member stream can run and how many unread bytes it can hold - `maxPendingBytes?: number`: Maximum source-JSON bytes counted for unread batches, a positive safe integer, default 4,194,304 (4 MiB) - `timeoutMs?: number`: Total milliseconds from the call until the final batch arrives, including waits for gateway pacing, integer 1–2,147,483,647, default 30,000 #### interface Members Page: https://fluxerly.neontechspace.com/docs/api/effect/guilds-and-members/#members Read community members, change their roles and nicknames, or perform moderation actions including bans - `addRole(member: MemberReference, roleId: string, options?: AuditedRequestOptions): Effect`: Grant one role to a member without replacing their other roles - `ban(target: MemberReference, input?: BanInput, options?: AuditedRequestOptions): Effect`: Ban a user from a community, including a user who is not currently a member - `clearTimeout(target: MemberReference, options?: TimeoutOptions): Effect`: Clear a member's timeout and return the HTTP member snapshot - `disconnect(target: VoiceConnectionReference, options?: AuditedRequestOptions): Effect`: Disconnect one observed voice connection, or all active connections if target.connectionId is omitted - `editSelf(guildId: string, input: MemberProfileEdit, options?: AuditedRequestOptions): Effect`: Change this bot's community profile, not its global account or another member - `fetch(member: MemberReference, options?: RequestOptions): Effect`: Fetch one community member by decimal guildId and userId - `fetchBan(target: MemberReference, options?: RequestOptions): Effect`: Fetch one user's active ban record in a community with BanMembers permission - `fetchBans(guildId: string, options?: RequestOptions): Effect`: Fetch a community's current full ban list with BanMembers permission - `fetchCanManage(target: MemberReference, options?: CanManageOptions): Effect`: Check whether the bot, or the member named by options.actorUserId, is above a target member in the community's role hierarchy - `fetchPage(guildId: string, query?: MemberQuery, options?: RequestOptions): Effect`: Fetch one page of members ordered by ascending user ID - `fetchSelf(guildId: string, options?: RequestOptions): Effect`: Fetch this bot's membership in a community without knowing its user ID - `get(member: MemberReference): Effect`: Look up a community member by decimal guildId and userId in the enabled cache, without a request - `getSelf(guildId: string): Effect`: Look up this bot's own membership of a community by decimal guildId in the enabled member cache, without a request - `iterate(guildId: string, query: UserIterationQuery, options?: RequestOptions): Stream`: Read community members by ascending user ID, without connecting the gateway or downloading the community eagerly - `iterateChunks(guildId: string, query: MemberChunkQuery, options?: MemberChunkOptions): Stream`: Request one community's members over the gateway and deliver frozen batches without accumulating a roster - `iterateSearch(guildId: string, filters: Omit & { readonly limit?: undefined }, limits: MemberSearchIterationLimits, options?: RequestOptions): Stream`: Read unique indexed member-search hits with a bounded scan - `kick(target: MemberReference, options?: AuditedRequestOptions): Effect`: Remove a member from the community, succeeding with no value after HTTP 204 - `move(target: VoiceConnectionReference, channelId: string, options?: AuditedRequestOptions): Effect`: Move a member who is already in voice to a positive decimal voice-channel ID - `removeRole(member: MemberReference, roleId: string, options?: AuditedRequestOptions): Effect`: Remove one role from a member while leaving other roles unchanged - `search(guildId: string, filters?: MemberSearchQuery, options?: RequestOptions): Effect`: Search Fluxer's member index for a community, without using or populating the member cache - `setDeaf(target: MemberReference, input: VoiceDeafenInput, options?: AuditedRequestOptions): Effect`: Set or clear the community deafen flag for a member currently connected to voice - `setMute(target: MemberReference, input: VoiceMuteInput, options?: AuditedRequestOptions): Effect`: Set or clear the community mute flag for a member currently connected to voice - `setNickname(member: MemberReference, nickname: string | null, options?: AuditedRequestOptions): Effect`: Set one member's nickname, or pass null to clear it - `setRoles(member: MemberReference, roleIds: readonly string[], options?: AuditedRequestOptions): Effect`: Replace one member's entire assigned role list in a single PATCH request - `timeout(target: MemberReference, durationMs: number, options?: TimeoutOptions): Effect`: Temporarily restrict a community member for durationMs milliseconds - `timeoutState(member: Pick, options?: TimeoutStateOptions): MemberTimeoutState`: Report whether a member is timed out, from the member's communicationDisabledUntil and a moment in time - `unban(target: MemberReference, options?: AuditedRequestOptions): Effect`: Remove a user's community ban, succeeding with no value after HTTP 204 #### AuditLogActions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogactions The same as in js-ts #### DiscoveryCategories Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverycategories The same as in js-ts #### GuildContentWarningLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcontentwarninglevels The same as in js-ts #### GuildDefaultMessageNotifications Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guilddefaultmessagenotifications The same as in js-ts #### GuildExplicitContentFilters Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildexplicitcontentfilters The same as in js-ts #### GuildFeatureToggles Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildfeaturetoggles The same as in js-ts #### GuildMemberJoinSourceTypes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmemberjoinsourcetypes The same as in js-ts #### GuildMemberProfileFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmemberprofileflags The same as in js-ts #### GuildMfaLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmfalevels The same as in js-ts #### GuildNsfwLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildnsfwlevels The same as in js-ts #### GuildSplashCardAlignments Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsplashcardalignments The same as in js-ts #### GuildSystemChannelFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsystemchannelflags The same as in js-ts #### GuildVerificationLevels Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildverificationlevels The same as in js-ts #### MemberMentionPreferences Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membermentionpreferences The same as in js-ts #### AuditLogChange Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogchange The same as in js-ts #### AuditLogEntry Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogentry The same as in js-ts #### AuditLogIterationQueryBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogiterationquerybase The same as in js-ts #### AuditLogOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogoptions The same as in js-ts #### AuditLogPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogpage The same as in js-ts #### AuditLogPermissionsDiff Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogpermissionsdiff The same as in js-ts #### AuditLogQueryBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogquerybase The same as in js-ts #### AuditLogWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogwebhook The same as in js-ts #### BanInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#baninput The same as in js-ts #### DeletedMessageMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#deletedmessagemember The same as in js-ts #### DiscoveryApplication Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryapplication The same as in js-ts #### DiscoveryApplicationInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryapplicationinput The same as in js-ts #### DiscoveryCategory Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverycategory The same as in js-ts #### DiscoveryCategoryCount Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverycategorycount The same as in js-ts #### DiscoveryGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryguild The same as in js-ts #### DiscoverySearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverysearchpage The same as in js-ts #### DiscoverySearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverysearchquery The same as in js-ts #### DiscoveryStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoverystatus The same as in js-ts #### Guild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guild The same as in js-ts #### GuildBan Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildban The same as in js-ts #### GuildCount Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcount The same as in js-ts #### GuildCountsResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcountsresult The same as in js-ts #### GuildEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildedit The same as in js-ts #### GuildIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guilditerationquery The same as in js-ts #### GuildListQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildlistquery The same as in js-ts #### GuildListSummary Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildlistsummary The same as in js-ts #### GuildMember Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmember The same as in js-ts #### GuildVanityUrl Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildvanityurl The same as in js-ts #### GuildVanityUrlUsage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildvanityurlusage The same as in js-ts #### MemberChunk Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberchunk The same as in js-ts #### MemberProfileEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberprofileedit The same as in js-ts #### MemberQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberquery The same as in js-ts #### MemberReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberreference The same as in js-ts #### MemberSearchHit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchhit The same as in js-ts #### MemberSearchIterationLimits Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchiterationlimits The same as in js-ts #### MemberSearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchpage The same as in js-ts #### MemberSearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membersearchquery The same as in js-ts #### UserIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#useriterationquery The same as in js-ts #### VoiceConnectionReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#voiceconnectionreference The same as in js-ts #### VoiceDeafenInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#voicedeafeninput The same as in js-ts #### VoiceMuteInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#voicemuteinput The same as in js-ts #### AuditLogActionType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogactiontype The same as in js-ts #### AuditLogChangeValue Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogchangevalue The same as in js-ts #### AuditLogFilter Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogfilter The same as in js-ts #### AuditLogIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogiterationquery The same as in js-ts #### AuditLogQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#auditlogquery The same as in js-ts #### DiscoveryApplicationEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#discoveryapplicationedit The same as in js-ts #### GuildContentWarningLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildcontentwarninglevel The same as in js-ts #### GuildDefaultMessageNotification Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guilddefaultmessagenotification The same as in js-ts #### GuildExplicitContentFilter Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildexplicitcontentfilter The same as in js-ts #### GuildFeatureToggle Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildfeaturetoggle The same as in js-ts #### GuildMemberJoinSourceType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmemberjoinsourcetype The same as in js-ts #### GuildMfaLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildmfalevel The same as in js-ts #### GuildNsfwLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildnsfwlevel The same as in js-ts #### GuildSplashCardAlignment Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsplashcardalignment The same as in js-ts #### GuildSystemChannelFlag Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildsystemchannelflag The same as in js-ts #### GuildVerificationLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#guildverificationlevel The same as in js-ts #### MemberChunkQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#memberchunkquery The same as in js-ts #### MemberMentionPreference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membermentionpreference The same as in js-ts #### MemberTimeoutState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/guilds-and-members/#membertimeoutstate The same as in js-ts ### Invites and Webhooks #### function createWebhookClient Page: https://fluxerly.neontechspace.com/docs/api/effect/invites-and-webhooks/#createwebhookclient - `createWebhookClient(options: WebhookClientOptions): Effect`: Create a webhook-only client for hosted Fluxer or an explicitly selected self-hosted instance, from { id, token } or redacted creation credentials #### interface Invites Page: https://fluxerly.neontechspace.com/docs/api/effect/invites-and-webhooks/#invites Inspect, create, list or revoke invite codes without joining their destinations - `create(channelId: string, input?: InviteCreate, options?: AuditedRequestOptions): Effect`: Create an invite for an accessible channel, including an existing group direct message - `delete(code: string, options?: AuditedRequestOptions): Effect`: Revoke an invite code, succeeding with no value after HTTP 204 - `fetch(code: string, options?: RequestOptions): Effect`: Look up an invite code without using it or joining its destination - `fetchForChannel(channelId: string, options?: RequestOptions): Effect`: List a channel's management-visible invites in Fluxer's order - `fetchForGuild(guildId: string, options?: RequestOptions): Effect`: List a community's management-visible invites with ManageGuild permission #### interface WebhookClient Page: https://fluxerly.neontechspace.com/docs/api/effect/invites-and-webhooks/#webhookclient Send and manage one incoming webhook's messages using its webhook token - `id: string`: The webhook's decimal ID, without its token or a token-bearing URL - `instance: Pick`: Resolve this webhook client's selected instance and get pure URL helpers for it - `delete(options?: RequestOptions): Effect`: Delete this webhook remotely using its token, succeeding after HTTP 204 - `deleteMessage(messageId: string, options?: WebhookMessageOperationOptions): Effect`: Delete this webhook's message, succeeding with no value after HTTP 204 - `edit(input: WebhookTokenEdit, options?: RequestOptions): Effect`: Change this webhook's name or avatar using its token and return metadata without credentials - `editMessage(messageId: string, input: string | WebhookMessageEdit, options?: WebhookMessageOperationOptions): Effect`: Change this webhook's message and return its updated snapshot - `fetch(options?: RequestOptions): Effect`: Fetch this incoming webhook's current metadata using its token, not bot authentication - `fetchMessage(messageId: string, options?: WebhookMessageOperationOptions): Effect`: Fetch a message authored by this webhook in its current channel, using a decimal message ID - `send(input: string | WebhookMessageInput | MessageBuilder, options?: RequestOptions): Effect`: Send a webhook message and return the created message after Fluxer's HTTP response - `shutdown(): Effect`: Permanently stop this local client, reject new work, cancel active work and await transport cleanup #### interface Webhooks Page: https://fluxerly.neontechspace.com/docs/api/effect/invites-and-webhooks/#webhooks Create and manage webhooks with the bot token, without a gateway connection - `create(channelId: string, input: WebhookCreate, options?: AuditedRequestOptions): Effect`: Create an incoming webhook in a text, voice, announcement, forum or media channel using the bot's permissions - `delete(id: string, options?: AuditedRequestOptions): Effect`: Delete an incoming webhook and revoke its credential, or delete a follower webhook to unfollow its source - `edit(id: string, input: WebhookEdit, options?: AuditedRequestOptions): Effect`: Change the supplied incoming or follower webhook settings, including its destination channel - `fetch(id: string, options?: RequestOptions): Effect`: Fetch incoming, follower or unknown-kind metadata by decimal ID, discarding any returned token - `fetchForChannel(channelId: string, options?: RequestOptions): Effect`: List the channel's accessible incoming, follower and unknown-kind webhook metadata without pagination - `fetchForGuild(guildId: string, options?: RequestOptions): Effect`: List the community's accessible incoming, follower and unknown-kind webhook metadata #### WebhookType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooktype The same as in js-ts #### ChannelFollowerWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#channelfollowerwebhook The same as in js-ts #### CreatedWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#createdwebhook The same as in js-ts #### IncomingWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#incomingwebhook The same as in js-ts #### Invite Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#invite The same as in js-ts #### InviteCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#invitecreate The same as in js-ts #### InviteMetadata Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#invitemetadata The same as in js-ts #### UnknownWebhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#unknownwebhook The same as in js-ts #### WebhookBase Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookbase The same as in js-ts #### WebhookCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookcreate The same as in js-ts #### WebhookCredentials Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookcredentials The same as in js-ts #### WebhookEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookedit The same as in js-ts #### WebhookForumPostOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookforumpostoptions The same as in js-ts #### WebhookForwardReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookforwardreference The same as in js-ts #### WebhookMessageEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessageedit The same as in js-ts #### WebhookReplyReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookreplyreference The same as in js-ts #### WebhookSourceChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooksourcechannel The same as in js-ts #### WebhookSourceGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooksourceguild The same as in js-ts #### WebhookTokenEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhooktokenedit The same as in js-ts #### Webhook Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhook The same as in js-ts #### WebhookClientOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookclientoptions The same as in js-ts #### WebhookMessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessageinput The same as in js-ts #### WebhookMessageOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessageoptions The same as in js-ts #### WebhookMessageReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/invites-and-webhooks/#webhookmessagereference The same as in js-ts ### Logging and Diagnostics #### interface ClientLogging Page: https://fluxerly.neontechspace.com/docs/api/effect/logging-and-diagnostics/#clientlogging Change what this client logs while it runs - `configure(settings: LogLevelSettings): void`: Replace the client's log level and per-category levels, and optionally its Debug categories, effective for the next record #### interface FailureReport Page: https://fluxerly.neontechspace.com/docs/api/effect/logging-and-diagnostics/#failurereport A failure outside any returned result, delivered to a native onError hook or logged at Error with its full error - `cause: Cause`: The complete Effect Cause of the failure - Inherits from `FailureReport`: `command`, `error`, `event`, `kind`, `message`, `subscriptionId`, `taskName`, `describe` #### ClientCounters Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#clientcounters The same as in js-ts #### ClientDiagnostics Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#clientdiagnostics The same as in js-ts #### ErrorInfo Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#errorinfo The same as in js-ts #### FailureMessageReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#failuremessagereference The same as in js-ts #### HandlerObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#handlerobservation The same as in js-ts #### LogRecord Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logrecord The same as in js-ts #### LoggingOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#loggingoptions The same as in js-ts #### RateLimitObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#ratelimitobservation The same as in js-ts #### ReconnectObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#reconnectobservation The same as in js-ts #### RestObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#restobservation The same as in js-ts #### RestRateLimitHold Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#restratelimithold The same as in js-ts #### ResumeObservation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#resumeobservation The same as in js-ts #### FailureKind Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#failurekind The same as in js-ts #### LogCategory Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logcategory The same as in js-ts #### LogLevel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#loglevel The same as in js-ts #### LogLevelSettings Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#loglevelsettings The same as in js-ts #### LogSink Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logsink The same as in js-ts #### LogThreshold Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#logthreshold The same as in js-ts #### Observation Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#observation The same as in js-ts #### Observer Page: https://fluxerly.neontechspace.com/docs/api/js-ts/logging-and-diagnostics/#observer The same as in js-ts ### Messages #### interface AttachmentDownloadOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#attachmentdownloadoptions Limit the bytes and time used by an attachment download - `maxBytes: number`: Maximum bytes to accept, required and a positive safe integer - `timeoutMs?: number`: Total deadline in milliseconds, an integer from 1 through 2,147,483,647, including discovery and the GET #### interface Attachments Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#attachments Refresh signed attachment URL strings explicitly, or download attachment bytes in one result or as chunks - `download(attachment: Attachment, options: AttachmentDownloadOptions): Effect, AttachmentDownloadFailure>`: Download attachment.url into one Uint8Array - `refreshUrls(urls: readonly string[], options?: RequestOptions): Effect`: Ask Fluxer's bot-authenticated API to reissue signatures for 1 through 50 URL strings - `stream(attachment: Attachment, options: AttachmentDownloadOptions): Stream, AttachmentDownloadFailure>`: Read attachment.url as chunks without combining the file into one array #### interface ChannelConfirmOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#channelconfirmoptions Reaction confirmation settings for messages.confirm, where no message identifies an asker, so users is required - `users: PageTurners`: Who may confirm or cancel, such as `[userId]`, or `() => true` for anyone - Inherits from `ConfirmOptions`: `approveEmoji`, `cancelEmoji`, `timeoutMs` #### interface ChannelPaginateOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#channelpaginateoptions Reaction page settings for messages.paginate, where no message identifies an asker, so users is required - `users: PageTurners`: Who may turn pages, such as `[userId]`, or `() => true` for anyone - Inherits from `PaginateOptions`: `idleMs`, `removeClicks`, `timeoutMs` #### interface ConfirmOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#confirmoptions Choose who may confirm or cancel a reaction prompt, which emoji represent each choice and how long it listens - `approveEmoji?: ReactionEmojiInput`: Emoji that confirms the prompt, default `"✅"` - `cancelEmoji?: ReactionEmojiInput`: Emoji that cancels the prompt, default `"❌"` - `timeoutMs?: number`: Stop with reason timeout after this many milliseconds from registration - `users?: PageTurners`: Who may confirm or cancel #### interface MessageCleanupOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#messagecleanupoptions Settings for cleanup's batch submissions - `onProgress?: (progress: MessageCleanupProgress) => unknown`: Observe submitting, submitted and failed batches synchronously - Inherits from `RequestOptions`: `timeoutMs` #### interface Messages Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#messages Send, read, edit or delete messages, collect future replies and reactions, or inspect indexed search results - `addReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: RequestOptions): Effect`: Add the bot's own reaction to a message - `cleanup(plan: MessageCleanupPlan, options?: MessageCleanupOptions): Effect`: Delete the exact IDs in a plan returned by previewCleanup, in sequential batches of at most 100 - `clearReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: RequestOptions): Effect`: Remove all users' reactions for one emoji on the message - `clearReactions(message: MessageReference, options?: RequestOptions): Effect`: Remove all users' reactions for all emoji on the message, without deleting the message - `collect(channelId: string, options?: CollectorOptions): Effect, never, Scope | R>`: Collect a bounded set of future messageCreate events from one channel - `collectReactions(message: MessageReference, options?: ReactionCollectorOptions): Effect`: Collect future reaction additions for one message - `confirm(channelId: string, input: string | MessageInput | MessageBuilder, options: ChannelConfirmOptions): Effect, ConfirmFailure>`: Send a prompt message and wait for an allowed user to confirm or cancel it with reactions, because Fluxer has no buttons - `delete(message: MessageReference, options?: AuditedRequestOptions): Effect`: Delete one message, succeeding with no value after HTTP 204 - `deleteAttachment(message: MessageReference, attachmentId: string, options?: RequestOptions): Effect`: Delete one attachment by its decimal ID from a message authored by this bot - `deleteMany(channelId: string, messageIds: readonly string[], options?: AuditedRequestOptions): Effect`: Delete 1–100 distinct decimal message IDs from one community channel - `deleteOwnMessages(channelId: string, options: OwnMessageDeletionOptions): Effect`: Irreversibly delete this bot's entire authored message history in one channel and in every thread under it, active or archived - `edit(message: MessageReference, input: string | EditMessageInput, options?: RequestOptions): Effect`: Change a message's supplied fields and return its frozen updated snapshot after HTTP, without waiting for a gateway event - `fetch(message: MessageReference, options?: RequestOptions): Effect`: Fetch one message from Fluxer, rather than reading the cache - `fetchCrosspostSource(target: MessageReference, options?: RequestOptions): Effect`: Fetch frozen public source-community metadata for a published copy or a ChannelFollowAdd notice - `fetchHasReaction(message: MessageReference, emoji: ReactionEmojiInput, userId: string, options?: RequestOptions): Effect`: Check whether one user currently has a given reaction on a message, with one request and no cache - `fetchHistory(channelId: string, query?: MessageHistoryQuery, options?: RequestOptions): Effect`: Fetch one page of channel messages from Fluxer, newest first - `fetchPins(channelId: string, query?: MessagePinsQuery, options?: RequestOptions): Effect, MessageOperationFailure>`: Fetch one frozen page of pinned messages in descending pin-time order - `fetchReactionUsers(message: MessageReference, emoji: ReactionEmojiInput, query?: ReactionUsersQuery, options?: RequestOptions): Effect`: Fetch one page of users who currently have a selected reaction on the message - `forward(channelId: string, input: ForwardMessageInput, options?: RequestOptions): Effect`: Copy an accessible source message into the destination channel and return the new message - `get(message: MessageReference): Effect`: Look up a message in this client's cache, without an HTTP request - `iterateHistory(channelId: string, query: HistoryIterationQuery, options?: RequestOptions): Stream`: Read older messages newest first, without connecting the gateway - `iteratePins(channelId: string, query: PinIterationQuery, options?: RequestOptions): Stream, MessageOperationFailure | PaginationError>`: Read pinned messages newest pin first, without adding message cache entries - `iterateReactionUsers(message: MessageReference, emoji: ReactionEmojiInput, query: UserIterationQuery, options?: RequestOptions): Stream`: Read users who reacted with one selected emoji, in ascending user-ID order - `iterateSearch(context: MessageSearchContext, filters: Omit & { readonly limit?: undefined; readonly page?: undefined }, limits: MessageSearchIterationLimits, options?: RequestOptions): Stream`: Read indexed search hits from the supplied community or channel context, following numbered pages without polling, prefetching or cache population - `keepTyping(channelId: string, task: Effect, options?: RequestOptions): Effect`: Keep the bot's typing indicator active while a task runs, returning the task's value - `paginate(channelId: string, pages: readonly PageInput[], options: ChannelPaginateOptions): Effect, PaginateFailure>`: Show several pages in one message that people flip with ◀ and ▶ reactions, because Fluxer has no buttons - `pin(message: MessageReference, options?: AuditedRequestOptions): Effect`: Pin a message using its decimal id and channelId - `previewCleanup(channelId: string, selection: MessageCleanupSelection, options?: RequestOptions): Effect, MessageCleanupError>`: Preview a bounded message-deletion selection without deleting anything - `publish(target: MessageReference, options?: RequestOptions): Effect`: Publish an ordinary source message from an announcement channel and return its frozen updated snapshot - `removeReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: RequestOptions): Effect`: Remove only the bot's own reaction for the selected emoji - `removeUserReaction(message: MessageReference, emoji: ReactionEmojiInput, userId: string, options?: RequestOptions): Effect`: Remove one user's reaction for one emoji, leaving other users and emoji groups unchanged - `reply(message: MessageReference, input: string | ReplyInput | MessageBuilder, options?: RequestOptions): Effect`: Send a reply that references an existing message and return the new reply - `search(context: MessageSearchContext, query?: MessageSearchQuery, options?: RequestOptions): Effect, MessageOperationFailure>`: Search messages in one explicit community or channel and return one page from Fluxer's search index - `send(channelId: string, input: string | MessageInput | MessageBuilder, options?: RequestOptions): Effect`: Send text, embeds, files or stickers to a channel and return the created message - `typing(channelId: string, options?: RequestOptions): Effect`: Show this bot's temporary typing indicator in a channel - `unpin(message: MessageReference, options?: AuditedRequestOptions): Effect`: Remove a pin without deleting the message or its pin-created system message #### interface PaginateOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/messages/#paginateoptions Choose who may turn reaction pages and how long they listen - `idleMs?: number`: Stop after this many milliseconds without an accepted click - `removeClicks?: boolean`: Count only added arrows, and remove the clicker's arrow after each turn so the next click is another addition - `timeoutMs?: number`: Stop after this many milliseconds from registration, regardless of clicks - `users?: PageTurners`: Who may turn pages #### voiceWaveform Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#voicewaveform The same as in js-ts #### MessageFlags Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageflags The same as in js-ts #### MessageType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagetype The same as in js-ts #### AllowedMentions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#allowedmentions The same as in js-ts #### Attachment Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachment The same as in js-ts #### AttachmentBytesInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentbytesinput The same as in js-ts #### AttachmentFileInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentfileinput The same as in js-ts #### AttachmentFileSource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentfilesource The same as in js-ts #### AttachmentReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentreference The same as in js-ts #### AttachmentStreamInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreaminput The same as in js-ts #### AttachmentStreamReader Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamreader The same as in js-ts #### AttachmentStreamReaderOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamreaderoptions The same as in js-ts #### AttachmentStreamSource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamsource The same as in js-ts #### ConfirmResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#confirmresult The same as in js-ts #### CrosspostSource Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#crosspostsource The same as in js-ts #### CrosspostSourceGuild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#crosspostsourceguild The same as in js-ts #### Embed Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embed The same as in js-ts #### EmbedAuthor Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedauthor The same as in js-ts #### EmbedAuthorInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedauthorinput The same as in js-ts #### EmbedChild Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedchild The same as in js-ts #### EmbedField Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfield The same as in js-ts #### EmbedFieldInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfieldinput The same as in js-ts #### EmbedFooter Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfooter The same as in js-ts #### EmbedFooterInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedfooterinput The same as in js-ts #### EmbedInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedinput The same as in js-ts #### EmbedMedia Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedmedia The same as in js-ts #### EmbedMediaInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedmediainput The same as in js-ts #### EmbedProvider Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#embedprovider The same as in js-ts #### ForwardMessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#forwardmessageinput The same as in js-ts #### HistoryIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#historyiterationquery The same as in js-ts #### Message Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#message The same as in js-ts #### MessageChannelMention Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagechannelmention The same as in js-ts #### MessageCleanupBatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupbatch The same as in js-ts #### MessageCleanupPlan Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupplan The same as in js-ts #### MessageCleanupReport Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupreport The same as in js-ts #### MessageCleanupSelection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupselection The same as in js-ts #### MessageContextReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecontextreference The same as in js-ts #### MessagePin Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagepin The same as in js-ts #### MessagePinsPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagepinspage The same as in js-ts #### MessagePinsQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagepinsquery The same as in js-ts #### MessageReactionEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagereactionemoji The same as in js-ts #### MessageReactionSummary Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagereactionsummary The same as in js-ts #### MessageReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagereference The same as in js-ts #### MessageSearchChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchchannel The same as in js-ts #### MessageSearchIndexingPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchindexingpage The same as in js-ts #### MessageSearchIterationLimits Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchiterationlimits The same as in js-ts #### MessageSearchQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchquery The same as in js-ts #### MessageSearchResultsPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchresultspage The same as in js-ts #### MessageSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesnapshot The same as in js-ts #### MessageSticker Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesticker The same as in js-ts #### MessageUser Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageuser The same as in js-ts #### PaginateResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#paginateresult The same as in js-ts #### PinIterationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#piniterationquery The same as in js-ts #### ReactionEmoji Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionemoji The same as in js-ts #### ReactionTarget Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactiontarget The same as in js-ts #### ReactionUser Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionuser The same as in js-ts #### ReactionUsersPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionuserspage The same as in js-ts #### ReactionUsersQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionusersquery The same as in js-ts #### RefreshedAttachmentUrl Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#refreshedattachmenturl The same as in js-ts #### VoiceWaveform Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#voicewaveform-1 The same as in js-ts #### VoiceWaveformOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#voicewaveformoptions The same as in js-ts #### AttachmentInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentinput The same as in js-ts #### AttachmentStreamReadResult Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#attachmentstreamreadresult The same as in js-ts #### EditMessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#editmessageinput The same as in js-ts #### EditMessageOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#editmessageoptions The same as in js-ts #### MessageBody Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagebody The same as in js-ts #### MessageCleanupOutcome Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupoutcome The same as in js-ts #### MessageCleanupProgress Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupprogress The same as in js-ts #### MessageCleanupStopReason Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecleanupstopreason The same as in js-ts #### MessageContent Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecontent The same as in js-ts #### MessageCore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagecore The same as in js-ts #### MessageField Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagefield The same as in js-ts #### MessageFields Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagefields The same as in js-ts #### MessageFlag Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageflag The same as in js-ts #### MessageHistoryQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagehistoryquery The same as in js-ts #### MessageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messageinput The same as in js-ts #### MessageNonce Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagenonce The same as in js-ts #### MessageSearchAuthorType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchauthortype The same as in js-ts #### MessageSearchContentType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchcontenttype The same as in js-ts #### MessageSearchContext Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchcontext The same as in js-ts #### MessageSearchEmbedType Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchembedtype The same as in js-ts #### MessageSearchPage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#messagesearchpage The same as in js-ts #### PageInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#pageinput The same as in js-ts #### PageTurners Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#pageturners The same as in js-ts #### ReactionEmojiInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#reactionemojiinput The same as in js-ts #### ReferencedMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#referencedmessage The same as in js-ts #### ReplyInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#replyinput The same as in js-ts #### SelectedMessage Page: https://fluxerly.neontechspace.com/docs/api/js-ts/messages/#selectedmessage The same as in js-ts ### OAuth #### variable oauth Page: https://fluxerly.neontechspace.com/docs/api/effect/oauth/#oauth Create a server-side OAuth client, or generate S256 PKCE and state values for an authorization request - `create: (config: OAuthConfig) => Effect.Effect`: Create the OAuth client when this Effect executes, without making a request - `createPkce: () => OAuthPkce`: Generate a private verifier and matching S256 challenge for one authorization-code flow - `createState: () => string`: Generate an unpredictable 256-bit base64url state string for one authorization-code flow #### interface OAuthClient Page: https://fluxerly.neontechspace.com/docs/api/effect/oauth/#oauthclient Use OAuth to access a user's Fluxer account with their consent and a server-held client secret - `authorizationUrl(input: OAuthAuthorizationInput, options?: RequestOptions): Effect`: Build an authorization URL for the selected instance using its discovered web application URL, including its path - `exchangeCode(input: OAuthCodeExchangeInput, options?: RequestOptions): Effect`: Exchange the code from an authorization callback for access and refresh tokens - `fetchAuthorization(accessToken: string, options?: RequestOptions): Effect`: Fetch what the delegated user authorized with an access token: The application, the granted scopes, when the token expires and, with the identify scope, the user - `fetchConnections(accessToken: string, options?: RequestOptions): Effect`: Fetch the delegated user's full connections list with a connections-scoped access token - `fetchGuilds(accessToken: string, query?: GuildListQuery, options?: RequestOptions): Effect`: Fetch one bounded page of the delegated user's community memberships - `fetchIdentity(accessToken: string, options?: RequestOptions): Effect`: Fetch the delegated user's identity with an access token granted the identify scope - `introspect(token: string, options?: RequestOptions): Effect`: Inspect an access or refresh token using this client's ID and secret through HTTP Basic authentication - `refresh(refreshToken: string, options?: RequestOptions): Effect`: Exchange a refresh token for a new access and refresh token pair - `request(accessToken: string, input: OAuthRequestInput, options?: RequestOptions): Effect, OAuthOperationFailure>`: Send one delegated REST request to this instance's Fluxer API using the supplied user access token as Bearer authorization, without retaining or logging the token - `revoke(input: { readonly token: string; readonly tokenTypeHint?: "access_token" | "refresh_token" }, options?: RequestOptions): Effect`: Revoke the supplied token and every access and refresh token for the same user and application - `shutdown(): Effect`: Permanently stop OAuth work, reject new work, release the client's copied secret and abort active requests #### OAuthScopes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthscopes The same as in js-ts #### OAuthActiveIntrospection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthactiveintrospection The same as in js-ts #### OAuthAuthorization Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthauthorization The same as in js-ts #### OAuthAuthorizationInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthauthorizationinput The same as in js-ts #### OAuthCodeExchangeInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthcodeexchangeinput The same as in js-ts #### OAuthConfig Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthconfig The same as in js-ts #### OAuthConnection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthconnection The same as in js-ts #### OAuthIdentity Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthidentity The same as in js-ts #### OAuthInactiveIntrospection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthinactiveintrospection The same as in js-ts #### OAuthPkce Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthpkce The same as in js-ts #### OAuthRequestInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthrequestinput The same as in js-ts #### OAuthRequestResponse Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthrequestresponse The same as in js-ts #### OAuthTokens Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthtokens The same as in js-ts #### OAuthIntrospection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthintrospection The same as in js-ts #### OAuthScope Page: https://fluxerly.neontechspace.com/docs/api/js-ts/oauth/#oauthscope The same as in js-ts ### Options #### interface AuditedRequestOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#auditedrequestoptions Settings for a remote mutation that Fluxer can record in the community audit log: Its deadline and an optional reason - `auditReason?: string`: Optional audit-log reason, 1–512 UTF-16 code units after U+000C and U+202E removal and trimming, in any language - Inherits from `RequestOptions`: `timeoutMs` #### interface CanManageOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#canmanageoptions Settings for members.fetchCanManage and roles.fetchCanManage: Whose rank to check, whether enabled caches may replace remote reads and the shared deadline of any remote reads - `actorUserId?: string`: User ID of the member whose rank is checked against the target, such as the moderator who ran a command - `preferCache?: boolean`: Read each observation from an enabled cache before fetching it - Inherits from `RequestOptions`: `timeoutMs` #### interface ClientOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#clientoptions Choose the client's connection, logging, message fields, failure hook and optional caches - `cache?: Omit<{ readonly channels?: boolean | ResourceCacheSettings; readonly directMessages?: boolean | ResourceCacheSettings; readonly emojis?: boolean | ResourceCacheSett...`: Optionally keep resource snapshots in memory - `connection?: Omit<{ readonly maxStartupAttempts?: number; readonly recovery?: ConnectionRecoveryOptions; readonly startupTimeoutMs?: number }, "recovery"> & { readonly recovery?: ConnectionRecoveryOptions & { read...`: Set the startup deadline, retry limit and recovery timing, as in the default entry point - `logging?: LoggingOptions`: Configure what the SDK logs, with the same settings as the default entry point - `messageFields?: F`: Choose which optional message fields the application receives - `onError?: (report: FailureReport) => Effect`: Receive every failure that has no returned result, with the original error and its complete Cause - `uploads?: { readonly maxBytes?: number }`: Bound the attachment transfer bytes reserved by queued and active upload operations - Inherits from `ClientOptions`: `gateway`, `instance`, `observe`, `rest`, `sharding`, `token`, `transport` #### interface ExpressionDeleteOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#expressiondeleteoptions Choose whether deleting a community emoji or sticker also requests removal of its image asset - `purge?: boolean`: False/default removes the community entry without asking to purge its image - Inherits from `AuditedRequestOptions`: `auditReason`, `timeoutMs` #### interface OwnMessageDeletionOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#ownmessagedeletionoptions Required confirmation and deadline for deleting this bot's entire authored history in a channel or community - `confirm: true`: Must be true to acknowledge that the deletion is irreversible and cannot be rolled back - Inherits from `RequestOptions`: `timeoutMs` #### interface PermissionFetchOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#permissionfetchoptions Settings for permissions.fetch: The shared deadline of its reads, and whether enabled caches may replace them - `preferCache?: boolean`: Read each observation from an enabled cache before fetching it, such as to decide for every command without a request - Inherits from `RequestOptions`: `timeoutMs` #### interface RequestOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#requestoptions Settings for one remote operation: Its deadline - `timeoutMs?: number`: Total milliseconds for this call, an integer from 1 through 2,147,483,647 #### interface TimeoutOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#timeoutoptions Timeout-only request settings - `timeoutReason?: string | null`: Optional timeout audit metadata - Inherits from `AuditedRequestOptions`: `auditReason`, `timeoutMs` #### interface WebhookMessageOperationOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/options/#webhookmessageoperationoptions Request settings for fetching, editing or deleting a message that a webhook client sent - `threadId?: string`: Decimal ID of the thread that holds the message, sent as the thread_id query parameter - Inherits from `RequestOptions`: `timeoutMs` #### ConnectionRecoveryOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#connectionrecoveryoptions The same as in js-ts #### GatewayOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#gatewayoptions The same as in js-ts #### InstanceOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#instanceoptions The same as in js-ts #### OperationSignal Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#operationsignal The same as in js-ts #### PaginationQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#paginationquery The same as in js-ts #### RestOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#restoptions The same as in js-ts #### RunBotOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#runbotoptions The same as in js-ts #### TimeoutStateOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#timeoutstateoptions The same as in js-ts #### TransportOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#transportoptions The same as in js-ts #### WebSocketLike Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#websocketlike The same as in js-ts #### WebSocketOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/options/#websocketoptions The same as in js-ts ### REST Routes #### RestRoutes Page: https://fluxerly.neontechspace.com/docs/api/js-ts/rest-routes/#restroutes The same as in js-ts ### Roles and Permissions #### variable hierarchy Page: https://fluxerly.neontechspace.com/docs/api/effect/roles-and-permissions/#hierarchy Compare roles and members by Fluxer's role hierarchy from snapshots already held, returning plain values rather than Effects - `HierarchyHelpers` #### variable permissionBits Page: https://fluxerly.neontechspace.com/docs/api/effect/roles-and-permissions/#permissionbits Build and inspect permission bitfields from named Fluxer permissions - `PermissionBitHelpers` #### interface PermissionHelpers Page: https://fluxerly.neontechspace.com/docs/api/effect/roles-and-permissions/#permissionhelpers Calculate permission bits from supplied snapshots or freshly fetched resources - `calculate(input: PermissionInput): bigint`: Calculate permission flags from supplied guild, member, role and optional channel data - `fetch(target: PermissionTarget, options?: PermissionFetchOptions): Effect`: Fetch guild, member, role and optional channel data, then calculate their permission flags - `fetchChannels(target: MemberReference, options?: RequestOptions): Effect`: Fetch one member's permission flags in every channel of a community, such as to see what the bot can do in each channel #### interface Roles Page: https://fluxerly.neontechspace.com/docs/api/effect/roles-and-permissions/#roles Read or change community roles, their permission bits and their ordering - `create(guildId: string, input: RoleCreate, options?: AuditedRequestOptions): Effect`: Create a role with a name, optional color and permission flags - `delete(role: RoleReference, options?: AuditedRequestOptions): Effect`: Delete a role and remove its member assignments in Fluxer - `edit(role: RoleReference, input: RoleEdit, options?: AuditedRequestOptions): Effect`: Change only supplied role fields and return the server's snapshot - `fetchAll(guildId: string, options?: RequestOptions): Effect`: Fetch the community's current role list, including everyone, in server order - `fetchCanManage(role: RoleReference, options?: CanManageOptions): Effect`: Check whether the bot, or the member named by options.actorUserId, can manage a target role in the community's role hierarchy - `get(role: RoleReference): Effect`: Look up a role by decimal guildId and id in the enabled cache, including the everyone role - `getAll(guildId: string): Effect`: Look up every role of a community by decimal guildId in the enabled cache, including the everyone role - `reorder(guildId: string, positions: readonly RolePosition[], options?: AuditedRequestOptions): Effect`: Change role hierarchy positions using distinct role IDs and nonnegative safe-integer positions - `resetHoistPositions(guildId: string, options?: AuditedRequestOptions): Effect`: Clear display-position assignments across the community, including roles above the bot - `setHoistPositions(guildId: string, positions: readonly RoleHoistPosition[], options?: AuditedRequestOptions): Effect`: Set roles' display positions without changing their permission hierarchy or enabling hoist #### Permissions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissions The same as in js-ts #### ChannelPermissions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#channelpermissions The same as in js-ts #### GuildRole Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#guildrole The same as in js-ts #### GuildRoleUpdateBulk Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#guildroleupdatebulk The same as in js-ts #### OverwritePatch Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#overwritepatch The same as in js-ts #### PermissionBitInspection Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionbitinspection The same as in js-ts #### PermissionInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissioninput The same as in js-ts #### PermissionOverwrite Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionoverwrite The same as in js-ts #### PermissionOverwriteInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionoverwriteinput The same as in js-ts #### PermissionTarget Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissiontarget The same as in js-ts #### RoleCreate Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolecreate The same as in js-ts #### RoleEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#roleedit The same as in js-ts #### RoleHierarchyInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolehierarchyinput The same as in js-ts #### RoleHoistPosition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolehoistposition The same as in js-ts #### RoleManagementInput Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolemanagementinput The same as in js-ts #### RolePosition Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#roleposition The same as in js-ts #### RoleReference Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#rolereference The same as in js-ts #### HierarchyHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#hierarchyhelpers The same as in js-ts #### PermissionBitHelpers Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionbithelpers The same as in js-ts #### PermissionName Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionname The same as in js-ts #### PermissionOverwriteBits Page: https://fluxerly.neontechspace.com/docs/api/js-ts/roles-and-permissions/#permissionoverwritebits The same as in js-ts ### Sharding and Supervision #### variable supervisor Page: https://fluxerly.neontechspace.com/docs/api/effect/sharding-and-supervision/#supervisor Run bot workers in separate Node processes on this machine - `SupervisorTools` #### interface Supervisor Page: https://fluxerly.neontechspace.com/docs/api/effect/sharding-and-supervision/#supervisor-1 Parent that starts and stops the child processes in one fixed local shard plan - `shutdown(): Effect`: Ask owned children to stop and succeed only after their processes exit - `start(): Effect`: Start the configured children and succeed when each child acknowledges its assignment and finishes configure - `status(): SupervisorStatus`: Return one immutable safe local status snapshot without child output, environment, arguments or paths - `waitForClose(): Effect`: Wait until the supervisor's lifetime ends and its owned child processes have exited - `waitForReady(): Effect`: Succeed when every current child has reported its aggregate gateway state as Connected #### interface SupervisorChildContext Page: https://fluxerly.neontechspace.com/docs/api/effect/sharding-and-supervision/#supervisorchildcontext Client and fixed shard assignment available to configure before the helper starts the gateway connection - `assignment: SupervisorAssignment`: Fixed assignment for this child process - `client: Client`: Native client created and owned by child.run #### interface SupervisorChildOptions Page: https://fluxerly.neontechspace.com/docs/api/effect/sharding-and-supervision/#supervisorchildoptions Bot credentials, native client settings and setup Effect for a module launched by a supervisor - `clientOptions?: Omit, "token" | "sharding"> & { readonly sharding?: SupervisorChildSharding }`: Every native client setting except token is read by property name and copied before configure, including inherited and non-enumerable properties - `configure: (context: SupervisorChildContext>>) => Effect`: Register subscriptions and local application behavior before the helper executes client.run - `token: string | undefined`: Bot token for the client created by child.run, such as `process.env.FLUXER_BOT_TOKEN` #### interface SupervisorTools Page: https://fluxerly.neontechspace.com/docs/api/effect/sharding-and-supervision/#supervisortools Create a local parent supervisor or run its child module using the Effect public API - `child: { run(options: SupervisorChildOptions): Ef...`: Child-module helper - `create(options: SupervisorOptions): Effect`: Return a lazy Effect that validates and copies options, then succeeds with an idle supervisor #### fileSessionStore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#filesessionstore The same as in js-ts #### IdentifyCoordinator Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#identifycoordinator The same as in js-ts #### SessionSnapshot Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#sessionsnapshot The same as in js-ts #### SessionStore Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#sessionstore The same as in js-ts #### ShardRecoveryDiagnostic Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#shardrecoverydiagnostic The same as in js-ts #### ShardState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#shardstate The same as in js-ts #### ShardingOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#shardingoptions The same as in js-ts #### SupervisorAssignment Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorassignment The same as in js-ts #### SupervisorAssignmentOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorassignmentoptions The same as in js-ts #### SupervisorChildDiagnostics Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchilddiagnostics The same as in js-ts #### SupervisorChildSharding Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildsharding The same as in js-ts #### SupervisorChildStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildstatus The same as in js-ts #### SupervisorFileUrl Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorfileurl The same as in js-ts #### SupervisorIdentifyOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisoridentifyoptions The same as in js-ts #### SupervisorOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisoroptions The same as in js-ts #### SupervisorRestartOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorrestartoptions The same as in js-ts #### SupervisorStatus Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorstatus The same as in js-ts #### SupervisorWaitOptions Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorwaitoptions The same as in js-ts #### SupervisorChildState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorchildstate The same as in js-ts #### SupervisorState Page: https://fluxerly.neontechspace.com/docs/api/js-ts/sharding-and-supervision/#supervisorstate The same as in js-ts ### Users and DMs #### interface DirectMessages Page: https://fluxerly.neontechspace.com/docs/api/effect/users-and-dms/#directmessages Open private conversations, send messages or manage existing groups - `close(id: string, options?: RequestOptions): Effect`: Close a one-to-one conversation for this bot, or leave a group conversation - `editGroup(id: string, input: DirectMessageGroupEdit, options?: RequestOptions): Effect`: Change supplied settings of an existing group conversation - `fetch(id: string, options?: RequestOptions): Effect`: Fetch a private channel by decimal ID - `fetchAll(options?: RequestOptions): Effect`: Fetch this bot's currently open one-to-one and group conversations - `fetchLatestMessages(channelIds: readonly string[], options?: RequestOptions): Effect, UserOperationFailure>`: Fetch the latest messages for 1–100 selected, distinct private channel IDs through Fluxer's batch endpoint - `get(id: string): Effect`: Look up a private channel in the optional cache using its decimal ID, without a request - `open(userId: string, options?: RequestOptions): Effect`: Open or reopen a one-to-one conversation with the selected user - `removeRecipient(id: string, userId: string, options?: RequestOptions): Effect`: Remove a group recipient as owner, or remove the bot itself - `send(userId: string, input: string | ReplyInput | MessageBuilder, options?: RequestOptions): Effect`: Open or reopen a one-to-one conversation with a user, then send a message #### interface Users Page: https://fluxerly.neontechspace.com/docs/api/effect/users-and-dms/#users Read public account information or a privacy-filtered profile - `fetch(id: string, options?: RequestOptions): Effect`: Fetch a public account snapshot by decimal user ID - `fetchProfile(id: string, query?: UserProfileQuery, options?: RequestOptions): Effect`: Fetch a user's privacy-filtered profile, optionally for the community specified in query.guildId - `fetchSelf(options?: RequestOptions): Effect`: Fetch the authenticated bot's public account data remotely - `get(id: string): Effect`: Look up a public account in the optional cache using its decimal ID, without a request - `getSelf(): Effect`: Look up the bot's own public account as the gateway's READY reported it, without a request #### DirectMessageChannel Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#directmessagechannel The same as in js-ts #### DirectMessageGroupEdit Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#directmessagegroupedit The same as in js-ts #### DirectMessageLatestMessages Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#directmessagelatestmessages The same as in js-ts #### ProfileBadge Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#profilebadge The same as in js-ts #### User Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#user The same as in js-ts #### UserProfile Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#userprofile The same as in js-ts #### UserProfileFields Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#userprofilefields The same as in js-ts #### UserProfileQuery Page: https://fluxerly.neontechspace.com/docs/api/js-ts/users-and-dms/#userprofilequery The same as in js-ts ## Testing Import from `@neontechspace/fluxerly/testing` ### Testing #### function createFixtures Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#createfixtures - `createFixtures(): Fixtures`: Create an independent fixture set whose ID sequence starts from the beginning #### function createTestBot Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#createtestbot - `createTestBot> = Readonly> | undefined>>, G extends Readonly> = { … }>(options: TestBotOptions): TestBot>`: Create a test client that runs a bot written for runBot: Its events, ignoreBots setting, commands and setup callback, with the same handler contexts, delivery defaults and command router as runBot #### function createTestClient Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#createtestclient - `createTestClient(options?: TestClientOptions): TestClient>`: Create a real default-API client wired to an in-memory Fluxer for application tests #### variable fixtureToken Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#fixturetoken A token-shaped value used by test clients by default - `"fixture-only-not-a-credential"` #### variable fixtures Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#fixtures A shared fixture set for quick payloads - `Fixtures` #### class TestTimeoutError Page: https://fluxerly.neontechspace.com/docs/api/testing/testtimeouterror/ A test wait, such as TestRoute.next, idle or say, did not finish within the timeoutMs the test passed - `constructor(wait: "idle" | "next", timeoutMs: number): TestTimeoutError` - `_tag: "TestTimeoutError"`: Discriminator for a test wait that ran out of time - `timeoutMs: number`: The timeout in milliseconds - `wait: "idle" | "next"`: The wait that timed out, such as next or idle - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### class UnhandledTestFailuresError Page: https://fluxerly.neontechspace.com/docs/api/testing/unhandledtestfailureserror/ A test client shut down after application code failed without a handler, such as an event handler or command that threw or returned a failed Result - `constructor(failures: readonly LogRecord[]): UnhandledTestFailuresError` - `_tag: "UnhandledTestFailuresError"`: Discriminator for unhandled failures found when a test client shut down - `failures: readonly LogRecord[]`: Error records of the unhandled failures, in the order they were logged - Inherits from `FluxerlyError`: `code`, `details`, `hint`, `toJSON` #### interface Fixtures Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#fixtures-1 A set of wire payload builders sharing one deterministic ID sequence - `ids: { readonly bot: string; readonly channel: string; readonly guild: string; readonly user: string }`: The IDs that builders use by default: One community, one text channel, one human author and the test bot account - `botUser(overrides?: WireOverrides): WireUser`: Build the test bot account, the user that test clients report in READY - `channel(overrides?: WireOverrides): WireChannel`: Build a community text channel, by default the default channel in the default community - `forumChannel(overrides?: WireOverrides): WireForumChannel`: Build a forum channel with a new ID in the default community, without tags - `guild(overrides?: WireOverrides): WireGuild`: Build a community record, by default the default community owned by the default author - `guildCreate(overrides?: WireGuildCreateOverrides): WireGuildCreate`: Build a GUILD_CREATE body for the default community, as sent after READY once the session is running - `member(overrides?: WireOverrides): WireMember`: Build a membership of the default author in the default community, carrying guild_id as member events do - `message(overrides?: WireOverrides): WireMessage`: Build a message with a new ID from the default author in the default channel and community - `nextId(): string`: Return the next unused snowflake ID from this set's sequence - `role(overrides?: WireOverrides): WireRole`: Build a role with a new ID in the default community's role list, without permissions - `thread(overrides?: WireOverrides): WireThread`: Build a public thread with a new ID in the default channel, started by the default author, active and without the bot's membership - `user(overrides?: WireOverrides): WireUser`: Build a human account, by default the default author - `voiceServerUpdate(overrides?: WireOverrides): WireVoiceServerUpdate`: Build a VOICE_SERVER_UPDATE grant for the default channel and community, defaulting to a server-relayed grant - `voiceSignal(overrides?: WireOverrides): WireVoiceSignal`: Build a VOICE_SIGNAL relay from the default author in the default channel and community #### interface TestBot Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testbot A test client running a bot written for runBot, with say to talk to the bot as a user would - `say(content: string, options?: TestSayOptions): Promise`: Deliver a message with this content from a human user, wait until the bot has settled as idle does, and resolve with the messages the bot sent meanwhile, in send order, or an empty list when it sent nothing - Inherits from `TestClient`: `client`, `fixtures`, `rest`, `advance`, `commands`, `counters`, `disconnect`, `emit`, `emitGatewayError`, `failures`, `idle`, `logs`, `ready`, `requests`, `shutdown` #### interface TestClient Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testclient A real default-API client connected to an in-memory Fluxer, with controls for driving and inspecting it - `client: Client`: The client under test, created with createClient - `fixtures: Fixtures`: A fixture set of its own, whose IDs do not depend on other tests - `rest: TestRest`: Register the HTTP responses the fake Fluxer API returns - `advance(ms: number): Promise`: Move the manual test clock forward by ms milliseconds, then resolve once the client has settled at the new time - `commands(): readonly TestGatewayCommand[]`: Gateway commands the client sent so far, in order, with tokens redacted - `counters(): ClientCounters`: The client's running totals, the same as client.diagnostics().counters - `disconnect(options?: TestDisconnectOptions): void`: Close one shard's connection from the gateway side with a close code - `emit(type: string, payload: unknown, options?: TestEmitOptions): void`: Deliver one gateway dispatch to a connected shard synchronously, with the next sequence number - `emitGatewayError(data: GatewayErrorData, options?: TestEmitOptions): void`: Deliver one opcode 12 Gateway Error frame to a connected shard synchronously, as Fluxer does when it refuses a voice join - `failures(): readonly LogRecord[]`: Error records of failures no application code handled so far, in order, such as an event handler, command or client.schedule task run that threw or returned a failed Result while no onError hook was registered, whether the error came from the application or from a Fluxer rejection - `idle(options?: TestWaitOptions): Promise`: Resolve once the client has settled: No event handler or command is running or has a received event waiting for it, no client.schedule task run is running, no REST request is queued or waiting for its test response, and no new log record, request or gateway command appeared for a few event loop turns - `logs(): readonly LogRecord[]`: Log records the client produced so far, in order, at the logging option's level and categories, default Info - `ready(options?: OperationOptions): Promise`: Connect the client to the test gateway and resolve once every shard it owns is READY, like client.connect - `requests(): readonly TestRequest[]`: HTTP requests the client sent so far, in order, excluding the discovery bootstrap and without credentials - `shutdown(): Promise`: Shut the client down, then close the test transport #### interface TestClockSettings Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testclocksettings Choose the clock that a default test client's SDK timers follow - `clock?: "real" | "manual"`: The clock of the SDK's own timers, default "real" #### interface TestDisconnectOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testdisconnectoptions Choose how the test gateway ends one shard's connection - `code?: number`: WebSocket or gateway close code the client receives, default 4000 (unknown error), after which the SDK reconnects and resumes - `endSession?: boolean`: Whether the test gateway forgets the shard's session before it closes the connection, default false - `shardId?: number`: Local shard ID whose connection closes, default 0 #### interface TestEmitOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testemitoptions Choose the shard that receives an emitted dispatch or Gateway Error frame - `shardId?: number`: Local shard ID that receives the dispatch or Gateway Error frame #### interface TestGatewayCommand Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testgatewaycommand One gateway command a client sent to the test gateway, in send order - `d: unknown`: Command data as sent, parsed from JSON - `op: number`: Gateway opcode, such as 2 for Identify, 3 for Presence Update or 8 for Request Guild Members - `shardId: number | null`: Shard that sent the command, or null when it came before the socket identified or resumed #### interface TestRequest Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testrequest One HTTP request a test client sent, as recorded by the test transport and passed to response handlers - `body: unknown`: Request body: Parsed JSON for JSON requests, the parsed payload_json part of a multipart upload, the text of any other body, or undefined when the request has none - `files: readonly TestRequestFile[]`: Attachment parts of a multipart upload, empty for other requests - `headers: Readonly>`: Request headers with lower-case names, without authorization - `matched: boolean`: Whether a registered response answered the request - `method: string`: Upper-case HTTP method - `path: string`: Fluxer API path after the /v1 prefix and without the query string, such as /channels/1/messages - `query: Readonly>`: Query parameters - `url: string`: Absolute request URL, including the query string #### interface TestRequestFile Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testrequestfile One attachment part of a recorded multipart request - `contentType: string`: Declared content type - `field: string`: Form field name, such as files[0] - `filename: string`: Uploaded file name - `size: number`: Size in bytes #### interface TestRest Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testrest Register fake Fluxer HTTP API responses for a test client - `respond(matcher: TestRequestMatcher, response: TestResponse | TestResponder): TestRoute`: Answer matching requests with a fixed response or a handler's response until the registration is removed #### interface TestRoute Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testroute One registered response - `next(options?: TestWaitOptions): Promise`: Resolve with the next request this registration answers - `remove(): void`: Stop answering requests - `requests(): readonly TestRequest[]`: Requests this registration answered so far, in order #### interface TestSayOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testsayoptions Choose the message a test bot's say delivers and how long say waits for the bot to settle - `message?: WireOverrides`: Wire fields that replace the defaults of the delivered MESSAGE_CREATE payload, as in fixtures.message - Inherits from `TestWaitOptions`: `timeoutMs` #### interface TestSettings Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testsettings Settings that only test clients accept, alongside the usual client options - `heartbeatIntervalMs?: number`: Heartbeat interval in milliseconds sent in HELLO, default 41,250 as on hosted Fluxer - `token?: string`: Token passed to the client, default the fixture token - `user?: WireUser`: Bot account the test gateway reports in READY, default the test client's fixtures.botUser() #### interface TestWaitOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testwaitoptions Limit how long a test wait, such as TestRoute.next, idle or say, may take - `timeoutMs?: number`: Milliseconds before the wait fails with TestTimeoutError, an integer from 1 through 2,147,483,647 #### interface WireChannel Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirechannel A community channel in the wire shape of channel reads and channel events - `guild_id: string`: Guild ID - `id: string`: Channel snowflake ID - `last_message_id: string | null`: Latest message ID, or null when none is known - `last_pin_timestamp: string | null`: Latest pin time, or null when nothing is pinned - `name: string`: Channel name - `nsfw: boolean`: Whether the channel is marked NSFW - `parent_id: string | null`: Parent category ID, or null when uncategorized - `permission_overwrites: readonly unknown[]`: Role and member permission overwrites - `position: number`: Sorting position - `rate_limit_per_user: number`: Slow-mode interval in seconds - `topic: string | null`: Topic, or null when unset - `type: number`: Channel type, 0 for a text channel #### interface WireForumChannel Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireforumchannel A forum or media channel in the wire shape of channel reads and channel events - `available_tags: readonly { readonly emoji_id: string | null; readonly emoji_name: string | null; readonly id: string; readonly moderated: boolean; readonly name: string }[]`: Tags that posts can carry - `default_auto_archive_duration: number | null`: Stored default auto-archive period in minutes, or null when unset - `default_forum_layout?: number`: Default post layout, present only on a forum channel - `default_reaction_emoji: { readonly emoji_id: string | null; readonly emoji_name: string | null } | null`: Reaction suggested on each post, or null when unset - `default_sort_order: number | null`: Default post order, or null when unset - `default_tag_setting: string`: Default tag matching of a post search - `default_thread_rate_limit_per_user: number`: Slow-mode interval in seconds that new posts copy - `flags: number`: Channel flag bits, where 16 requires a tag on every post - `guild_id: string`: Guild ID - `id: string`: Channel snowflake ID - `last_message_id: string | null`: Newest post ID, or null when the channel never had one - `last_pin_timestamp: string | null`: Latest pin time, or null - `name: string`: Channel name - `nsfw: boolean`: Whether the channel is marked NSFW - `parent_id: string | null`: Parent category ID, or null when uncategorized - `permission_overwrites: readonly unknown[]`: Role and member permission overwrites - `position: number`: Sorting position - `rate_limit_per_user: number`: Delay in seconds between one member's posts - `topic: string | null`: Posting guidelines, or null when unset - `type: number`: Channel type, 15 for a forum channel or 16 for a media channel #### interface WireGuild Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireguild A community record in the wire shape of guild reads, GUILD_UPDATE and the properties of GUILD_CREATE - `afk_channel_id: string | null`: AFK voice channel ID, or null when unset - `afk_timeout: number`: AFK timeout in seconds - `banner: string | null`: Banner hash, or null when unset - `content_warning_level: number`: Content warning level - `content_warning_text: string | null`: Content warning text, or null when unset - `default_message_notifications: number`: Default notification level - `disabled_operations: number`: Disabled community operation bits - `embed_splash: string | null`: Embed splash hash, or null when unset - `explicit_content_filter: number`: Explicit content filter level - `features: readonly string[]`: Enabled community feature names - `icon: string | null`: Icon hash, or null when unset - `id: string`: Guild snowflake ID - `mfa_level: number`: MFA requirement level - `name: string`: Community name - `nsfw: boolean`: Whether the community is marked NSFW - `nsfw_level: number`: NSFW classification level - `owner_id: string`: Owner account ID - `rules_channel_id: string | null`: Rules channel ID, or null when unset - `splash: string | null`: Invite splash hash, or null when unset - `splash_card_alignment: number`: Splash card alignment, 0 for center - `system_channel_flags: number`: System channel flag bits - `system_channel_id: string | null`: System message channel ID, or null when unset - `vanity_url_code: string | null`: Vanity invite code, or null when unset - `verification_level: number`: Verification level #### interface WireGuildCreate Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireguildcreate A complete GUILD_CREATE dispatch body: The community ready object with its roles, channels, threads and members - `channels: readonly (WireChannel | WireForumChannel)[]`: Channels the bot can view, including forum and media channels - `emojis: readonly unknown[]`: Community emojis - `id: string`: Guild snowflake ID, equal to properties.id - `joined_at: string | null`: ISO 8601 time the bot joined, or null - `member_count: number`: Total member count - `members: readonly unknown[]`: Members sent with the community, without guild_id - `online_count: number`: Online member count - `presences: readonly unknown[]`: Always empty - `properties: WireGuild`: The community record - `roles: readonly WireRole[]`: Every role, including the everyone role - `stickers: readonly unknown[]`: Community stickers - `threads: readonly WireThread[]`: Active threads the bot can view, each with member when the bot joined it - `unavailable?: boolean`: False in the startup burst after READY - `voice_states: readonly unknown[]`: Voice states in visible channels #### interface WireMember Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wiremember A community membership in the wire shape of GUILD_MEMBER_ADD and GUILD_MEMBER_UPDATE - `accent_color: number | null`: Community profile accent color, or null when unset - `avatar: string | null`: Community avatar hash, or null when unset - `banner: string | null`: Community banner hash, or null when unset - `communication_disabled_until: string | null`: ISO 8601 end of a timeout, or null when not timed out - `deaf: boolean`: Whether the member is community-deafened - `guild_id: string`: Guild ID carried by member events - `joined_at: string`: ISO 8601 join time - `mute: boolean`: Whether the member is community-muted - `nick: string | null`: Community nickname, or null when unset - `roles: readonly string[]`: Assigned role IDs, excluding the everyone role - `user: WireUser`: Member account #### interface WireMessage Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wiremessage A message in the wire shape of message reads, MESSAGE_CREATE and MESSAGE_UPDATE - `attachments: readonly unknown[]`: Attachments - `author: WireUser`: Message author - `channel_id: string`: Channel ID - `channel_type?: number`: Fluxer's numeric type of the channel, which only MESSAGE_CREATE carries - `content: string`: Text content - `edited_timestamp: string | null`: ISO 8601 edit time, or null when never edited - `embeds: readonly unknown[]`: Rich embeds - `flags: number`: Message flag bits - `guild_id?: string`: Guild ID - `id: string`: Message snowflake ID - `member?: Omit`: The author's community membership as MESSAGE_CREATE and MESSAGE_UPDATE carry it, without a user and guild ID because the author and guild_id of the message supply them - `mention_everyone: boolean`: Whether the message mentions everyone - `mention_here?: boolean`: Whether the message mentions here, which only MESSAGE_CREATE carries and Fluxer sends only as true - `mention_roles: readonly string[]`: Mentioned role IDs - `mentions: readonly WireUser[]`: Mentioned accounts - `nicks?: Readonly>`: Group direct message nicknames keyed by user ID, which only MESSAGE_CREATE carries and Fluxer omits when empty - `pinned: boolean`: Whether the message is pinned - `stickers: readonly unknown[]`: Stickers - `timestamp: string`: ISO 8601 creation time - `tts: boolean`: Whether the message was sent as text-to-speech - `type: number`: Message type, 0 for a default message #### interface WireRole Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirerole A community role in the wire shape of role reads and role events - `color: number`: RGB color as an integer, 0 for none - `hoist: boolean`: Whether members are shown separately - `hoist_position: number | null`: Member-list hoist position, or null when unset - `icon: string | null`: Image icon hash, or null when the role has no image icon - `id: string`: Role snowflake ID - `mentionable: boolean`: Whether anyone may mention the role - `name: string`: Role name - `permissions: string`: Permission bits as a decimal string - `position: number`: Position in the role list - `unicode_emoji: string | null`: Unicode emoji shown with the role, or null when unset #### interface WireThread Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirethread A thread in the wire shape of thread reads, thread lists and THREAD_CREATE and THREAD_UPDATE - `applied_tags?: readonly string[]`: IDs of the tags applied to a forum or media post - `flags: number`: Channel flag bits, where 2 pins a forum post - `guild_id: string`: Guild ID - `id: string`: Thread snowflake ID - `last_message_id: string | null`: Latest message ID, or null when the thread has none - `last_pin_timestamp: string | null`: Latest pin time, or null when nothing was pinned - `member?: { readonly flags: number; readonly join_timestamp: string }`: The bot's own membership, present when the bot joined the thread - `member_count: number`: Thread member count, capped at 50 - `message_count: number`: Messages in the thread - `name: string`: Thread name - `owner_id: string`: ID of the user or webhook that created the thread - `parent_id: string`: ID of the text, announcement, forum or media channel holding the thread - `rate_limit_per_user: number`: Slow-mode interval in seconds - `thread_metadata: { readonly archive_timestamp: string; readonly archived: boolean; readonly auto_archive_duration: number; readonly create_timestamp: string; readonly invitable?: boolean; readonly locked: boolean }`: Archive and lock state - `total_message_sent: number`: Messages ever sent in the thread - `type: number`: Thread type: 10 announcement, 11 public or 12 private #### interface WireUser Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireuser A public Fluxer account in the wire shape used by message authors, members and user reads - `avatar: string | null`: Avatar hash, or null when unset - `avatar_color: number | null`: Generated avatar color, or null when unset - `bot?: boolean`: Whether the account is a bot, present on bot accounts - `discriminator: string`: Four-digit discriminator string - `flags: number`: Public account flag bits - `global_name: string | null`: Display name, or null when unset - `id: string`: Account snowflake ID - `username: string`: Account username #### interface WireVoiceIceServer Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirevoiceiceserver An ICE server entry in the wire shape of VOICE_SERVER_UPDATE - `credential?: string`: Optional ICE authentication credential - `urls: readonly string[]`: ICE server URLs, such as stun: addresses - `username?: string`: Optional ICE authentication username #### interface WireVoiceServerUpdate Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirevoiceserverupdate A voice connection grant in the wire shape of VOICE_SERVER_UPDATE - `channel_id: string`: Voice or call channel ID - `connection_id: string`: Voice connection ID the grant belongs to - `e2ee_key?: string`: Server-issued room key when encrypted call media is enabled - `endpoint?: string`: Media server WebSocket URL on a server-relayed grant - `guild_id?: string`: Community ID, omitted for a private call - `ice_servers?: readonly WireVoiceIceServer[]`: STUN or ICE server entries on a peer-to-peer grant - `p2p?: boolean`: True on a peer-to-peer grant - `token?: string`: Media server access token on a server-relayed grant #### interface WireVoiceSignal Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirevoicesignal A peer-to-peer voice signaling message in the wire shape of VOICE_SIGNAL - `channel_id: string`: Voice or call channel ID - `data: Readonly>`: Signaling payload object relayed from the sender - `from: string`: Sender's voice connection ID - `guild_id?: string`: Community ID, omitted for a private call - `user_id: string`: Sender's account snowflake ID #### type TestBotOptions> = Readonly>, G extends Readonly> = { … }> Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testbotoptions Options for createTestBot: The runBot options object of the bot under test, plus test settings - `Omit, "token" | "transport" | "instance"> & Omit & TestClockSettings & { readonly token?: string }` #### type TestClientOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testclientoptions Options for createTestClient: Every createClient option except token, transport and instance, plus test settings - `Omit, "token" | "transport" | "instance"> & TestSettings & TestClockSettings` #### type TestRequestMatcher Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testrequestmatcher Select the requests a registered response answers - `string | RegExp | { readonly method?: string; readonly path: string | RegExp } | ((request: TestRequest) => boolean)` #### type TestResponder Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testresponder Compute a response from the recorded request - `(request: TestRequest) => TestResponse | Promise` #### type TestResponse Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testresponse A response description - `{ readonly body?: unknown; readonly headers?: Readonly>; readonly status?: number } | Response` #### type WireGuildCreateOverrides Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireguildcreateoverrides Overrides for a GUILD_CREATE fixture - `WireOverrides> & { readonly guild?: WireOverrides }` #### type WireOverrides Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireoverrides Wire-field overrides for a fixture builder - `{ readonly [K in keyof T]?: T[K] } & { readonly [key: string]: unknown }` ## Effect Testing Import from `@neontechspace/fluxerly/effect/testing` ### Testing #### function createTestBot Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/testing/#createtestbot - `createTestBot> = Readonly>, C extends Readonly>; readonly execute: unknown }>> = Readonly>; readonly execute: unknown }>>, RouterServices = never, OptionsError = never, OptionsServices = never, SetupServices = never, ReadyServices = never, Callbacks = unknown, G extends Readonly> = { … }>(options: Omit, "token"> & { readonly commands?: BotCommandsOptions, S, C, [NoInfer] extends [never] ? unknown : NoInfer>, ApplicationError, Scope | Exclude | Exclude | Exclude | Exclude | Exclude...`: Create a test client that runs a bot written for the native runBot: Its events, ignoreBots setting, commands and setup Effect, with the same handler contexts, delivery defaults and command router as runBot #### function createTestClient Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/testing/#createtestclient - `createTestClient(options?: TestClientOptions): Effect>, never, R | Scope>`: Create a real native client wired to an in-memory Fluxer for application tests, owned by the caller's Scope #### class FluxerTestClient Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/fluxertestclient/ Effect service holding a native test client, for applications whose code reads the client from the FluxerClient service - `constructor(_: never): FluxerTestClient` - `static layer(options?: Omit, "messageFields">): Layer`: Build a test client with createTestClient and provide it twice: Its client as the FluxerClient service, so application code runs unchanged, and the whole test client as the FluxerTestClient service, for the controls #### interface TestBot Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/testing/#testbot A native test client running a bot written for runBot - `client: Client`: The client under test, created with the native createClient - `fixtures: Fixtures`: A fixture set of its own, whose IDs do not depend on other tests - `rest: TestRest`: Register the HTTP responses the fake Fluxer API returns - `commands(): readonly TestGatewayCommand[]`: Gateway commands the client sent so far, in order, with tokens redacted - `counters(): ClientCounters`: The client's running totals, the same as client.diagnostics().counters - `disconnect(options?: TestDisconnectOptions): Effect`: Close one shard's connection from the gateway side with a close code when run - `emit(type: string, payload: unknown, options?: TestEmitOptions): Effect`: Deliver one gateway dispatch to a connected shard when run, with the next sequence number - `emitGatewayError(data: GatewayErrorData, options?: TestEmitOptions): Effect`: Deliver one opcode 12 Gateway Error frame to a connected shard when run, as Fluxer does when it refuses a voice join - `failures(): readonly LogRecord[]`: Error records of failures no application code handled so far, in order, such as an event handler, command or client.schedule task run that failed while no onError hook was registered, whether the error came from the application or from a Fluxer rejection - `idle(options?: TestWaitOptions): Effect`: Succeed once the client has settled: No event handler or command is running or has a received event waiting for it, no client.schedule task run is running, no REST request is queued or waiting for its test response, and no new log record, request or gateway command appeared for a few event loop turns - `logs(): readonly LogRecord[]`: Log records the client produced so far, in order, at the logging option's level and categories, default Info - `ready(): Effect`: Run the bot's setup Effect once, then connect to the test gateway and succeed once every shard it owns is READY - `requests(): readonly TestRequest[]`: HTTP requests the client sent so far, in order, excluding the discovery bootstrap and without credentials - `say(content: string, options?: TestSayOptions): Effect`: Deliver a message with this content from a human user, wait until the bot has settled as idle does, and succeed with the messages the bot sent meanwhile, in send order, or an empty list when it sent nothing - `shutdown(): Effect`: Shut the client down, then close the test transport #### interface TestClient Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/testing/#testclient A real native client connected to an in-memory Fluxer, with controls for driving and inspecting it - `client: Client`: The client under test, created with the native createClient - `fixtures: Fixtures`: A fixture set of its own, whose IDs do not depend on other tests - `rest: TestRest`: Register the HTTP responses the fake Fluxer API returns - `commands(): readonly TestGatewayCommand[]`: Gateway commands the client sent so far, in order, with tokens redacted - `counters(): ClientCounters`: The client's running totals, the same as client.diagnostics().counters - `disconnect(options?: TestDisconnectOptions): Effect`: Close one shard's connection from the gateway side with a close code when run - `emit(type: string, payload: unknown, options?: TestEmitOptions): Effect`: Deliver one gateway dispatch to a connected shard when run, with the next sequence number - `emitGatewayError(data: GatewayErrorData, options?: TestEmitOptions): Effect`: Deliver one opcode 12 Gateway Error frame to a connected shard when run, as Fluxer does when it refuses a voice join - `failures(): readonly LogRecord[]`: Error records of failures no application code handled so far, in order, such as an event handler, command or client.schedule task run that failed while no onError hook was registered, whether the error came from the application or from a Fluxer rejection - `idle(options?: TestWaitOptions): Effect`: Succeed once the client has settled: No event handler or command is running or has a received event waiting for it, no client.schedule task run is running, no REST request is queued or waiting for its test response, and no new log record, request or gateway command appeared for a few event loop turns - `logs(): readonly LogRecord[]`: Log records the client produced so far, in order, at the logging option's level and categories, default Info - `ready(): Effect`: Connect the client to the test gateway and succeed once every shard it owns is READY, like client.connect - `requests(): readonly TestRequest[]`: HTTP requests the client sent so far, in order, excluding the discovery bootstrap and without credentials - `shutdown(): Effect`: Shut the client down, then close the test transport #### interface TestRest Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/testing/#testrest Register fake Fluxer HTTP API responses for a native test client - `respond(matcher: TestRequestMatcher, response: TestResponse | TestResponder): TestRoute`: Answer matching requests with a fixed response or a handler's response until the registration is removed #### interface TestRoute Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/testing/#testroute One registered response of a native test client - `next(options?: TestWaitOptions): Effect`: Succeed with the next request this registration answers - `remove(): void`: Stop answering requests - `requests(): readonly TestRequest[]`: Requests this registration answered so far, in order #### type TestClientOptions Page: https://fluxerly.neontechspace.com/docs/api/effect-testing/testing/#testclientoptions Options for createTestClient: Every native createClient option except token, transport and instance, plus test settings - `Omit, "token" | "transport" | "instance"> & TestSettings` #### createFixtures Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#createfixtures The same as in testing #### fixtureToken Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#fixturetoken The same as in testing #### fixtures Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#fixtures The same as in testing #### TestTimeoutError Page: https://fluxerly.neontechspace.com/docs/api/testing/testtimeouterror/ The same as in testing #### UnhandledTestFailuresError Page: https://fluxerly.neontechspace.com/docs/api/testing/unhandledtestfailureserror/ The same as in testing #### Fixtures Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#fixtures-1 The same as in testing #### TestDisconnectOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testdisconnectoptions The same as in testing #### TestEmitOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testemitoptions The same as in testing #### TestGatewayCommand Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testgatewaycommand The same as in testing #### TestRequest Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testrequest The same as in testing #### TestRequestFile Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testrequestfile The same as in testing #### TestSayOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testsayoptions The same as in testing #### TestSettings Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testsettings The same as in testing #### TestWaitOptions Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testwaitoptions The same as in testing #### WireChannel Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirechannel The same as in testing #### WireForumChannel Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireforumchannel The same as in testing #### WireGuild Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireguild The same as in testing #### WireGuildCreate Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireguildcreate The same as in testing #### WireMember Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wiremember The same as in testing #### WireMessage Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wiremessage The same as in testing #### WireRole Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirerole The same as in testing #### WireThread Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirethread The same as in testing #### WireUser Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireuser The same as in testing #### WireVoiceIceServer Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirevoiceiceserver The same as in testing #### WireVoiceServerUpdate Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirevoiceserverupdate The same as in testing #### WireVoiceSignal Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wirevoicesignal The same as in testing #### TestRequestMatcher Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testrequestmatcher The same as in testing #### TestResponder Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testresponder The same as in testing #### TestResponse Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#testresponse The same as in testing #### WireGuildCreateOverrides Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireguildcreateoverrides The same as in testing #### WireOverrides Page: https://fluxerly.neontechspace.com/docs/api/testing/testing/#wireoverrides The same as in testing