pub struct WsClient(/* private fields */);Implementations§
Source§impl WsClient
impl WsClient
Sourcepub async fn send_chunk_guild(
&mut self,
guild_id: GuildId,
shard_info: &ShardInfo,
limit: Option<u16>,
presences: bool,
filter: ChunkGuildFilter,
nonce: Option<&str>,
) -> Result<()>
pub async fn send_chunk_guild( &mut self, guild_id: GuildId, shard_info: &ShardInfo, limit: Option<u16>, presences: bool, filter: ChunkGuildFilter, nonce: Option<&str>, ) -> Result<()>
§Errors
Errors if there is a problem with the WS connection.
Sourcepub async fn request_soundboard_sounds(
&mut self,
guild_ids: &[GuildId],
shard_info: &ShardInfo,
) -> Result<()>
pub async fn request_soundboard_sounds( &mut self, guild_ids: &[GuildId], shard_info: &ShardInfo, ) -> Result<()>
§Errors
Errors if there is a problem with the WS connection.
Sourcepub async fn send_heartbeat(
&mut self,
shard_info: &ShardInfo,
seq: Option<u64>,
) -> Result<()>
pub async fn send_heartbeat( &mut self, shard_info: &ShardInfo, seq: Option<u64>, ) -> Result<()>
§Errors
Errors if there is a problem with the WS connection.
Sourcepub async fn send_identify(
&mut self,
shard: &ShardInfo,
token: &str,
intents: GatewayIntents,
presence: &PresenceData,
) -> Result<()>
pub async fn send_identify( &mut self, shard: &ShardInfo, token: &str, intents: GatewayIntents, presence: &PresenceData, ) -> Result<()>
§Errors
Errors if there is a problem with the WS connection.
Sourcepub async fn send_presence_update(
&mut self,
shard_info: &ShardInfo,
presence: &PresenceData,
) -> Result<()>
pub async fn send_presence_update( &mut self, shard_info: &ShardInfo, presence: &PresenceData, ) -> Result<()>
§Errors
Errors if there is a problem with the WS connection.
Auto Trait Implementations§
impl !Freeze for WsClient
impl !RefUnwindSafe for WsClient
impl Send for WsClient
impl Sync for WsClient
impl Unpin for WsClient
impl !UnwindSafe for WsClient
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