Appearance
ClientOptions
Package: @erinjs/core
Properties
| Name | Type | Readonly | Optional | Description |
|---|---|---|---|---|
cache | CacheSizeLimits | No | Yes | Cache size limits (channels, guilds, users). When exceeded, oldest entries are evicted. Omit or 0 = unbounded. |
intents | number | No | Yes | Gateway intents. Not yet supported by erin.js—value is always sent as 0. Set suppressIntentWarning to silence the warning. |
presence | GatewayPresenceUpdateData | No | Yes | Initial presence (status, custom_status, etc.) sent on identify. Can also update via PresenceUpdate after connect. |
rest | any | No | Yes | |
suppressIntentWarning | boolean | No | Yes | Suppress the warning when intents are set (erin.js does not support intents yet). |
waitForGuilds | boolean | No | Yes | When true, delay the Ready event until all guilds from READY (including unavailable) have been received via GUILD_CREATE. Default: false. |
WebSocket | new (url: string) => { send(data: string | ArrayBufferLike): void; close(code?: number): void; readyState: number; addEventListener?(type: string, listener: (e: unknown) => void): void; on?(event: string, cb: (data?: unknown) => void): void; } | No | Yes | Optional WebSocket constructor (e.g. require('ws') in Node for compatibility) |