ClientOptions constructor

ClientOptions({
  1. AllowedMentions? allowedMentions,
  2. int? shardCount,
  3. int messageCacheSize = 100,
  4. int largeThreshold = 50,
  5. bool compressedGatewayPayloads = true,
  6. PresenceBuilder? initialPresence,
  7. ShutdownHook? shutdownHook,
  8. ShutdownShardHook? shutdownShardHook,
  9. bool dispatchRawShardEvent = false,
  10. List<int>? shardIds,
  11. RetryOptions shardReconnectOptions = const RetryOptions(),
  12. RetryOptions httpRetryOptions = const RetryOptions(),
  13. Encoding payloadEncoding = Encoding.json,
  14. 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,
});