Trait twilight_gateway::Command

source ·
pub trait Command: Sealed { }
Expand description

Trait marker denoting what can be provided to Shard::command.

This trait exists to make it easier to determine what commands can be sent to the Discord Gateway API.

This is deliberately not implemented for Heartbeat, Identify, and Resume due to shards automatically sending them as necessary.

To send an arbitrary command to the Discord Gateway API then Shard::send may be used.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Command for RequestGuildMembers

source§

impl Command for UpdatePresence

source§

impl Command for UpdateVoiceState

Implementors§