Struct twilight_http::request::guild::user::UpdateUserVoiceState
source · [−]pub struct UpdateUserVoiceState<'a> { /* private fields */ }
Expand description
Update another user’s voice state.
Implementations
sourceimpl<'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.
sourcepub fn exec(self) -> ResponseFuture<EmptyBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<EmptyBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl TryIntoRequest for UpdateUserVoiceState<'_>
impl TryIntoRequest for UpdateUserVoiceState<'_>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more