pub struct UpdateCurrentUserVoiceState<'a> { /* private fields */ }Expand description
Update the current user’s voice state.
Implementations§
Source§impl<'a> UpdateCurrentUserVoiceState<'a>
impl<'a> UpdateCurrentUserVoiceState<'a>
Sourcepub const fn channel_id(self, channel_id: Id<ChannelMarker>) -> Self
pub const fn channel_id(self, channel_id: Id<ChannelMarker>) -> Self
Specify the ID of the stage channel which the user is currently connected to.
§Caveats
channel_idmust currently point to a stage channel.- User must already be connected to this stage channel.
Sourcepub const fn request_to_speak_timestamp(
self,
request_to_speak_timestamp: &'a str,
) -> Self
pub const fn request_to_speak_timestamp( self, request_to_speak_timestamp: &'a str, ) -> Self
Set the user’s request to speak.
Set to an empty string to remove an already-present request.
§Caveats
- You are able to set
request_to_speak_timestampto any present or future time.
Trait Implementations§
Source§impl IntoFuture for UpdateCurrentUserVoiceState<'_>
impl IntoFuture for UpdateCurrentUserVoiceState<'_>
Source§type Output = Result<Response<EmptyBody>, Error>
type Output = Result<Response<EmptyBody>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<EmptyBody>
type IntoFuture = ResponseFuture<EmptyBody>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl TryIntoRequest for UpdateCurrentUserVoiceState<'_>
impl TryIntoRequest for UpdateCurrentUserVoiceState<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UpdateCurrentUserVoiceState<'a>
impl<'a> !UnwindSafe for UpdateCurrentUserVoiceState<'a>
impl<'a> Forget for UpdateCurrentUserVoiceState<'a>
impl<'a> Freeze for UpdateCurrentUserVoiceState<'a>where
PhantomData<fn(ChannelMarker) -> ChannelMarker>: Freeze,
NonZero<u64>: Freeze,
&'a str: Freeze,
PhantomData<fn(GuildMarker) -> GuildMarker>: Freeze,
&'a Client: Freeze,
impl<'a> Move for UpdateCurrentUserVoiceState<'a>
impl<'a> Send for UpdateCurrentUserVoiceState<'a>
impl<'a> Sync for UpdateCurrentUserVoiceState<'a>where
NonZero<u64>: Sync,
RawVecInner: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
impl<'a> Unpin for UpdateCurrentUserVoiceState<'a>
impl<'a> UnsafeUnpin for UpdateCurrentUserVoiceState<'a>where
PhantomData<fn(ChannelMarker) -> ChannelMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'a str: UnsafeUnpin,
PhantomData<fn(GuildMarker) -> GuildMarker>: UnsafeUnpin,
&'a Client: UnsafeUnpin,
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