Interface

WebSocketManagerOptions

Properties

NameTypeDescription
buildStrategy?BuildShardingStrategyFnBuild a custom sharding strategy. Defaults to SimpleShardingStrategy. Prefer WorkerShardingStrategy for CPU isolation of gateway parsing.
debug?booleanWhen false, shard debug events are not emitted. Default: true.
flags?numberIdentify flags (GatewayIdentifyFlags).
guildsPerShard?numberGuilds per shard when shardCount: 'auto'.
identifyThrottler?IIdentifyThrottlerThrottle IDENTIFY against Fluxer's per-IP limits.
ignoredEvents?string[]Identify ignored_events.
initialGuildId?stringIdentify initial_guild_id.
intents?numberLegacy intents; Fluxer ignores — send 0.
presence?GatewayPresenceUpdateData
restWebSocketManagerRest
sessionStore?ISessionStorePersist sessions for RESUME across restarts. Defaults to an in-memory store.
shardCount?number | 'auto'Total shard count, or 'auto' to derive from guild count. Fluxer's /gateway/bot currently always reports shards: 1, so 'auto' counts guilds via /users/@me/guilds when possible.
shardIds?number[]Explicit shard ids to connect. Defaults to 0..shardCount-1.
tokenstring
version?string
WebSocket?WebSocketConstructor