pub struct Identify {
pub token: CompactString,
pub properties: IdentifyProperties,
pub large_threshold: Option<u8>,
pub shard: Option<ShardId>,
pub intents: Intents,
pub presence: Option<UpdatePresence>,
pub capabilities: GatewayCapabilities,
}Expand description
Fields§
§token: CompactStringThe bot token, without the Bot prefix.
properties: IdentifyPropertiesConnection properties describing the client.
large_threshold: Option<u8>The member count above which offline members are not sent in a guild’s member list (50–250, Discord’s default is 50).
shard: Option<ShardId>The shard this session handles. Omit for unsharded bots.
intents: IntentsThe gateway intents to subscribe to.
presence: Option<UpdatePresence>The presence to start with.
capabilities: GatewayCapabilitiesOpt-in gateway behaviours.
Trait Implementations§
impl Eq for Identify
Source§impl GatewayCommand for Identify
impl GatewayCommand for Identify
impl StructuralPartialEq for Identify
Auto Trait Implementations§
impl Freeze for Identify
impl RefUnwindSafe for Identify
impl Send for Identify
impl Sync for Identify
impl Unpin for Identify
impl UnsafeUnpin for Identify
impl UnwindSafe for Identify
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more