v1004.0.0-nightly.20261130.123

Pre-release

Automatic nightly build of main. It can include breaking changes at any time

Major Changes

  • Align the SDK with Fluxer commit 75781bf9. Breaking changes, each with the code it affects and how to migrate:

    • OAuthAuthorization["application"] removes flags because Fluxer removed application.flags from GET /oauth2/@me and now populates icon and description from the application's bot profile Affected: Code that reads authorization.application.flags or constructs OAuthAuthorization fixtures with flags Migration: Remove reads and fixture fields for application.flags
    • OAuthIdentity makes avatarColor, isBot and isSystem required (avatarColor: number | null, isBot: boolean, isSystem: boolean), and OAuth response decoding now requires avatar_color, bot and system from GET /oauth2/userinfo and GET /oauth2/@me Affected: Code or test fixtures constructing OAuthIdentity values or mock OAuth responses without avatar_color, bot or system Migration: Include avatarColor, isBot and isSystem on fixtures and avatar_color, bot and system in mock responses
    • The presenceUpdateBulk event, PresenceUpdateBulk type and GatewayDispatchPayloads["PRESENCE_UPDATE_BULK"] are removed because Fluxer removed PRESENCE_UPDATE_BULK from its gateway and documentation Affected: Code that subscribes to presenceUpdateBulk, imports PresenceUpdateBulk or narrows raw dispatches on PRESENCE_UPDATE_BULK Migration: Subscribe to presenceUpdate instead and remove PresenceUpdateBulk imports and handlers
    • GatewayDispatchPayloads and RawDispatchEvent add "OPERATOR_PASS_UPDATE" and make GatewayDispatchPayloads["GUILD_MEMBER_LIST_UPDATE"]["channel_id"] required (string instead of string | undefined) to match Fluxer's updated gateway documentation Affected: Exhaustive switch statements over documented raw dispatch types and typed fixtures constructing GUILD_MEMBER_LIST_UPDATE payloads without channel_id Migration: Handle "OPERATOR_PASS_UPDATE" (or a default branch) in exhaustive raw dispatch switches and supply channel_id in typed GUILD_MEMBER_LIST_UPDATE fixtures
    • RestRoutes["POST /channels/{channel_id}/typing"] widens its response type from undefined to TypingCooldownResponse | undefined to match Fluxer's controller and OpenAPI description Affected: Code calling POST /channels/{channel_id}/typing through client.rest.call that assigns response.body to undefined without narrowing Migration: Narrow response.body when calling POST /channels/{channel_id}/typing through client.rest.call
    • Non-breaking parity updates, which need no change: Optional embed fields (url, author.url, author.iconUrl, footer.iconUrl, image.description, thumbnail.description) and webhook message overrides (username, avatarUrl) now accept exact "" and send it as given to match Fluxer's omitEmptyString preprocessing while still rejecting whitespace-only strings and timestamp: "" on non-webhook-edit routes, gateway close code 4003 before READY or RESUMED now retries cleanly while preserving Resume state instead of failing the shard permanently while post-readiness 4003 closes remain fatal, and generated REST route types, documented GUILD_HEALTH_UPDATE and READY.geoip_country_code raw payload types and opcode 12 voice refusal documentation match Fluxer commit 75781bf9