pub struct Config<Q = InMemoryQueue> { /* private fields */ }
Expand description
Configuration used by the shard to identify with the gateway and operate.
May be reused by cloning, also reusing the hidden TLS context—reducing
memory usage. The TLS context may still be reused with an otherwise
different config by turning it into to a ConfigBuilder
through the
From<Config>
implementation and then rebuilding it into a rew config.
Implementations§
Source§impl<Q> Config<Q>
impl<Q> Config<Q>
Sourcepub const fn identify_properties(&self) -> Option<&IdentifyProperties>
pub const fn identify_properties(&self) -> Option<&IdentifyProperties>
Immutable reference to the identification properties the shard will use.
Sourcepub const fn intents(&self) -> Intents
pub const fn intents(&self) -> Intents
Intents that the shard requests when identifying with the gateway.
Sourcepub const fn large_threshold(&self) -> u64
pub const fn large_threshold(&self) -> u64
Maximum threshold at which point the gateway will stop sending a guild’s member list in Guild Create events.
Sourcepub const fn presence(&self) -> Option<&UpdatePresencePayload>
pub const fn presence(&self) -> Option<&UpdatePresencePayload>
Immutable reference to the presence to set when identifying with the gateway.
This will be the bot’s presence. For example, setting the online status to Do Not Disturb will show the status in the bot’s presence.
Sourcepub const fn ratelimit_messages(&self) -> bool
pub const fn ratelimit_messages(&self) -> bool
Whether outgoing message ratelimiting is enabled.