v1003.0.0
Major Changes
d6f2685: Align the SDK with Fluxer commit 66cede64. Breaking changes, each with the code it affects and how to migrate:
LinkChannelCreate.urlis now required andChannelEdit.urlno longer acceptsnullor an empty string, because Fluxer requires every link channel to carry a URL and refuses clearing it Affected: Code that creates a link channel withouturl, or edits a link channel withurl: nullorurl: ""Migration: Pass a validhttp://orhttps://urlwhen creating a link channel, and omiturlinstead of clearing it on editMembersadds requiredfetchBan(target, options?)for reading one user's active ban record (GET /guilds/{guildId}/bans/{userId}), andGuildOperationadds"members.fetchBan"Affected: Code that implements or fakes theMembersinterface, or switches exhaustively overGuildOperationMigration: ImplementfetchBanon customMembersfakes and handle"members.fetchBan"inGuildOperationswitchesResolvedInstanceadds requiredproxyAttachmentsThroughApi: booleanmatching Fluxer'sfeatures.proxy_attachments_through_apidiscovery flag Affected: Code that constructs or fakesResolvedInstancevalues Migration: SetproxyAttachmentsThroughApion customResolvedInstanceobjectsOAuthConnectionadds requiredproviderId: string | nullandurl: string | null, and accepts"oauth"connections alongside"bsky"and"domain"Affected: Code that constructsOAuthConnectionfixtures or assumestypeis only"bsky"or"domain"Migration: IncludeproviderIdandurlon fixtures and handle"oauth"connectionsX-Audit-Log-Reasonis now percent-encoded in UTF-8 instead of sending raw UTF-8 header bytes, matching Fluxer's header decoder Affected: Tests or proxies asserting raw unencodedX-Audit-Log-Reasonbytes on the wire Migration: DecodeX-Audit-Log-ReasonwithdecodeURIComponentwhen inspecting outgoing requests- Default Identify wait extension for
connection.startupTimeoutMsandconnection.recovery.attemptTimeoutMsis now 25,000 ms (55,000 ms total with the 30,000 ms default) instead of 135,000 ms, matching Fluxer's Gleam gateway session-start budget (shard_permit_wait_msplusmanager_start_timeout) Affected: Deployments on slow custom instances that relied on the implicit 135,000 ms extension without configuring a deadline Migration: Setconnection.startupTimeoutMsandconnection.recovery.attemptTimeoutMsexplicitly when a custom instance needs a longer startup wait GuildUnknownChannel.rawTypeis nownumber | null, because Fluxer's gateway omitstypeon synthesizedCHANNEL_DELETEdispatches when a session losesViewChannelAffected: Code that readschannel.rawTypeasnumberwithout checking fornullMigration: Handlechannel.rawType === nullwhen inspecting aGuildUnknownChannel- New parity additions, which need no change:
MessageReactionBatchentries now expose optionalmemberand populate the member cache on community reaction batches,attachments.downloadandattachments.streamaccept Fluxer's API-proxied attachment URLs underendpoints.apiPublicand send the botAuthorizationheader only to verified API attachment paths (never toendpoints.media, external URLs or redirects),GuildFeatureToggles.MemberDmsDisabled(MEMBER_DMS_DISABLED), API error codesunknownBan(UNKNOWN_BAN),unknownConnectionProvider(UNKNOWN_CONNECTION_PROVIDER) andcommunityMemberDmsDisabled(COMMUNITY_MEMBER_DMS_DISABLED), member profilebioup to 1,000 normalized UTF-16 code units,GuildEdit.messageHistoryCutoffpreserving±hh:mmoffsets directly, and updated REST route and raw gateway payload types for Fluxer commit 66cede64
8af3fbc: Raise the minimum supported Node.js version to Node.js 26.13.0 (Active LTS) and update runtime checks and tested consumer matrices accordingly
Minor Changes
32f86ed: Expand the
fluxerlyCLI for bot setup and coding agents:- Add
fluxerly doctor(--json) to check Node.js, ESM, TypeScript, Effect,AGENTS.mdand.gitignoreoffline - Add
fluxerly invite <applicationId>(--permissions) to build a Fluxer bot installation URL offline - Add
--target agents|skill|cursor|claude|gemini|all,--checkand--printtofluxerly agents - Add
--dir <folder>and--pm npm|pnpm|buntofluxerly init, and refresh an existingAGENTS.mdin place instead of refusing the folder
- Add
1916bc9: Improve error guidance,
describeErroroutput, option typo suggestions, agent guides and CLI error reporting:- Cover every
ApiErrorCodeand common HTTP rejection status inapiErrorHintsandstatusHints, differentiate emptyINVALID_FORM_BODYrejections, and include concreteretryAfterMswaits where known - Surface retry safety (
Retry:), SDKapiCode,inputConstraintand structuredValidation:field entries indescribeErrorand errordetails, and add icon-tagged, color-coded terminal formatting for pretty logs anddescribeError(error, { color: true }) - Add actionable hints to
HelperError,AssetUrlError,ConnectionError,MessageCleanupErrorand high-frictionConfigurationErrorsites, plus closest-key typo suggestions across option validators - Fix subjectless input validation messages in count and member-chunk operations and document owner and administrator unknown-channel count behavior
- Expand error-handling guidance and fix the prefix-command
argumentsexample inskills/fluxerly/SKILL.mdandagents/AGENTS.md - Refresh the
fluxerlyCLI with the pixel conductor mascot and adaptive terminal styling, expandfluxerly doctorwith offlinetsconfig.jsonand installednode_modulesdrift checks, and addfluxerly triagefor agent-assisted SDK and bot debugging with bundledagents/TRIAGE.md
- Cover every
Patch Changes
- cd3c68a: Update the SDK runtime dependency
wsfrom8.22.0to8.23.0
| candidate.json | 722 KB |
| checksum.txt | 65 B |
| docs.json | 4.6 MB |
| notes.md | 6 KB |
| sdk.tgz | 2.8 MB |
| Source code (tar.gz) | |