pub struct UpdateUserVoiceState<'a> { /* private fields */ }
Expand description
Update another user’s voice state.
Implementations§
source§impl<'a> UpdateUserVoiceState<'a>
impl<'a> UpdateUserVoiceState<'a>
sourcepub const fn suppress(self) -> Self
pub const fn suppress(self) -> Self
Toggle the user’s suppress state.
§Caveats
- You must have the
MUTE_MEMBERS
permission to use this method. - When unsuppressed, non-bot users will have their
request_to_speak_timestamp
set to the current time. Bot users will not. - When suppressed, the user will have their
request_to_speak_timestamp
removed.
Trait Implementations§
source§impl IntoFuture for UpdateUserVoiceState<'_>
impl IntoFuture for UpdateUserVoiceState<'_>
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 UpdateUserVoiceState<'_>
impl TryIntoRequest for UpdateUserVoiceState<'_>
Auto Trait Implementations§
impl<'a> Freeze for UpdateUserVoiceState<'a>
impl<'a> !RefUnwindSafe for UpdateUserVoiceState<'a>
impl<'a> Send for UpdateUserVoiceState<'a>
impl<'a> Sync for UpdateUserVoiceState<'a>
impl<'a> Unpin for UpdateUserVoiceState<'a>
impl<'a> !UnwindSafe for UpdateUserVoiceState<'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