ClientOptions constructor
ClientOptions({
- AllowedMentions? allowedMentions,
- int? shardCount,
- int messageCacheSize = 100,
- int largeThreshold = 50,
- bool compressedGatewayPayloads = true,
- PresenceBuilder? initialPresence,
- ShutdownHook? shutdownHook,
- ShutdownShardHook? shutdownShardHook,
- bool dispatchRawShardEvent = false,
- List<
int> ? shardIds, - RetryOptions shardReconnectOptions = const RetryOptions(),
- RetryOptions httpRetryOptions = const RetryOptions(),
- Encoding payloadEncoding = Encoding.json,
- bool payloadCompression = false,
Makes a new ClientOptions
object.
Implementation
ClientOptions({
this.allowedMentions,
this.shardCount,
this.messageCacheSize = 100,
this.largeThreshold = 50,
this.compressedGatewayPayloads = true,
this.initialPresence,
this.shutdownHook,
this.shutdownShardHook,
this.dispatchRawShardEvent = false,
this.shardIds,
this.shardReconnectOptions = const RetryOptions(),
this.httpRetryOptions = const RetryOptions(),
this.payloadEncoding = Encoding.json,
this.payloadCompression = false,
});