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_id
must 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_timestamp
to 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> Freeze for UpdateCurrentUserVoiceState<'a>
impl<'a> !RefUnwindSafe for UpdateCurrentUserVoiceState<'a>
impl<'a> Send for UpdateCurrentUserVoiceState<'a>
impl<'a> Sync for UpdateCurrentUserVoiceState<'a>
impl<'a> Unpin for UpdateCurrentUserVoiceState<'a>
impl<'a> !UnwindSafe for UpdateCurrentUserVoiceState<'a>
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