GatewayClientOptions constructor

const GatewayClientOptions(
  1. {int minimumSessionStarts = 10,
  2. List<NyxxPlugin<Nyxx>> plugins = const [],
  3. String loggerName = 'Nyxx',
  4. Duration? rateLimitWarningThreshold = const Duration(seconds: 10),
  5. CacheConfig<User> userCacheConfig = const CacheConfig(),
  6. CacheConfig<Channel> channelCacheConfig = const CacheConfig(),
  7. CacheConfig<Message> messageCacheConfig = const CacheConfig(),
  8. CacheConfig<Webhook> webhookCacheConfig = const CacheConfig(),
  9. CacheConfig<Guild> guildCacheConfig = const CacheConfig(),
  10. CacheConfig<Member> memberCacheConfig = const CacheConfig(),
  11. CacheConfig<Role> roleCacheConfig = const CacheConfig(),
  12. CacheConfig<StageInstance> stageInstanceCacheConfig = const CacheConfig(),
  13. CacheConfig<ScheduledEvent> scheduledEventCacheConfig = const CacheConfig(),
  14. CacheConfig<AutoModerationRule> autoModerationRuleConfig = const CacheConfig(),
  15. CacheConfig<Integration> integrationConfig = const CacheConfig(),
  16. CacheConfig<AuditLogEntry> auditLogEntryConfig = const CacheConfig(),
  17. CacheConfig<VoiceState> voiceStateConfig = const CacheConfig(),
  18. CacheConfig<ApplicationCommand> applicationCommandConfig = const CacheConfig(),
  19. CacheConfig<CommandPermissions> commandPermissionsConfig = const CacheConfig(),
  20. CacheConfig<Entitlement> entitlementConfig = const CacheConfig()}
)

Create a new GatewayClientOptions.

Implementation

const GatewayClientOptions({
  this.minimumSessionStarts = 10,
  super.plugins,
  super.loggerName,
  super.rateLimitWarningThreshold,
  super.userCacheConfig,
  super.channelCacheConfig,
  super.messageCacheConfig,
  super.webhookCacheConfig,
  super.guildCacheConfig,
  super.memberCacheConfig,
  super.roleCacheConfig,
  super.stageInstanceCacheConfig,
  super.scheduledEventCacheConfig,
  super.autoModerationRuleConfig,
  super.integrationConfig,
  super.auditLogEntryConfig,
  super.voiceStateConfig,
  super.applicationCommandConfig,
  super.commandPermissionsConfig,
  super.entitlementConfig,
});