interface ClientOptions
extends
WebhookClientOptionsexport interface ClientOptions extends WebhookClientOptionsOptions for a client.
externalallowedMentions : MessageMentionOptions
The default value for allowedMentions
optionalcloseTimeout? : number = 5_000
The amount of time in milliseconds to wait for the close frame to be received from the WebSocket. Don't have this too high/low. It's best to have it between 2_000-6_000 ms.
optionalenforceNonce? : boolean = false
The default value for MessageCreateOptions
optionalfailIfNotExists? : boolean = true
The default value for failIfNotExists
intents : BitFieldResolvable<GatewayIntentsString, number>
Intents to enable for this connection
optionalmakeCache? : CacheFactory
Function to create a cache. You can use your own function, or the Options class to customize the Collection used for the cache. Overriding the cache used in GuildManager, ChannelManager, GuildChannelManager, RoleManager, and PermissionOverwriteManager is unsupported and **will* * break functionality
optionalpartials? : readonly Partials[]
Structures allowed to be partial. This means events can be emitted even when they're missing all the data for a particular structure. See the "Partial Structures" topic on the guide for some important usage information, as partials require you to put checks in place when handling data.
optionalpresence? : PresenceData
Presence data to use upon login
externalrest : RESTOptions
Options for the REST manager
optionalsweepers? : SweeperOptions = this.DefaultSweeperSettings
Options for cache sweeping
optionalwaitGuildTimeout? : number = 15_000
Time in milliseconds that clients with the GatewayIntentBits gateway intent should wait for missing guilds to be received before being ready.
optionalws? : Partial<WebSocketManagerOptions>
Options for the WebSocketManager