GatewayClientOptions class

Options for controlling the behavior of a NyxxGateway client.

Inheritance

Constructors

GatewayClientOptions({int minimumSessionStarts = 10, List<NyxxPlugin<Nyxx>> plugins = const [], String loggerName = 'Nyxx', CacheConfig<User> userCacheConfig = const CacheConfig(), CacheConfig<Channel> channelCacheConfig = const CacheConfig(), CacheConfig<Message> messageCacheConfig = const CacheConfig(), CacheConfig<Webhook> webhookCacheConfig = const CacheConfig(), CacheConfig<Guild> guildCacheConfig = const CacheConfig(), CacheConfig<Member> memberCacheConfig = const CacheConfig(), CacheConfig<Role> roleCacheConfig = const CacheConfig(), CacheConfig<StageInstance> stageInstanceCacheConfig = const CacheConfig(), CacheConfig<ScheduledEvent> scheduledEventCacheConfig = const CacheConfig(), CacheConfig<AutoModerationRule> autoModerationRuleConfig = const CacheConfig(), CacheConfig<Integration> integrationConfig = const CacheConfig(), CacheConfig<AuditLogEntry> auditLogEntryConfig = const CacheConfig(), CacheConfig<VoiceState> voiceStateConfig = const CacheConfig(), CacheConfig<ApplicationCommand> applicationCommandConfig = const CacheConfig(), CacheConfig<CommandPermissions> commandPermissionsConfig = const CacheConfig(), CacheConfig<Entitlement> entitlementConfig = const CacheConfig()})
Create a new GatewayClientOptions.
const

Properties

applicationCommandConfig CacheConfig<ApplicationCommand>
The CacheConfig to use for the NyxxRest.commands manager.
finalinherited
auditLogEntryConfig CacheConfig<AuditLogEntry>
The CacheConfig to use for the Guild.auditLogs manager.
finalinherited
autoModerationRuleConfig CacheConfig<AutoModerationRule>
The CacheConfig to use for the Guild.autoModerationRules manager.
finalinherited
channelCacheConfig CacheConfig<Channel>
The CacheConfig to use for the cache of the NyxxRest.channels manager.
finalinherited
commandPermissionsConfig CacheConfig<CommandPermissions>
The CacheConfig to use for the GuildApplicationCommandManager.permissionsCache cache.
finalinherited
emojiCacheConfig CacheConfig<Emoji>
The CacheConfig to use for the Emojis in the Guild.emojis manager.
finalinherited
entitlementConfig CacheConfig<Entitlement>
The CacheConfig to use for the Application.entitlements manager.
finalinherited
globalStickerCacheConfig CacheConfig<GlobalSticker>
The CacheConfig to use for the GlobalStickers in the NyxxRest.stickers manager.
finalinherited
guildCacheConfig CacheConfig<Guild>
The CacheConfig to use for the cache of the NyxxRest.guilds manager.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
integrationConfig CacheConfig<Integration>
The CacheConfig to use for the Guild.integrations manager.
finalinherited
logger Logger
The logger to use for this client.
no setterinherited
loggerName String
The name of the logger to use for this client.
finalinherited
memberCacheConfig CacheConfig<Member>
The CacheConfig to use for the Guild.members manager.
finalinherited
messageCacheConfig CacheConfig<Message>
The CacheConfig to use for the cache of TextChannel.messages managers.
finalinherited
minimumSessionStarts int
The minimum number of session starts this client needs to connect.
final
plugins List<NyxxPlugin<Nyxx>>
The plugins to use for this client.
finalinherited
roleCacheConfig CacheConfig<Role>
The CacheConfig to use for the Guild.roles manager.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduledEventCacheConfig CacheConfig<ScheduledEvent>
The CacheConfig to use for the Guild.scheduledEvents manager.
finalinherited
stageInstanceCacheConfig CacheConfig<StageInstance>
The CacheConfig to use for StageInstances in the NyxxRest.channels manager.
finalinherited
stickerCacheConfig CacheConfig<GuildSticker>
The CacheConfig to use for the GuildStickers in the Guild.stickers manager.
finalinherited
userCacheConfig CacheConfig<User>
The CacheConfig to use for the cache of the NyxxRest.users manager.
finalinherited
voiceStateConfig CacheConfig<VoiceState>
The CacheConfig to use for the NyxxRest.voice manager.
finalinherited
webhookCacheConfig CacheConfig<Webhook>
The CacheConfig to use for the cache of the NyxxRest.webhooks manager.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited