Struct twilight_http::request::guild::user::UpdateUserVoiceState [−][src]
pub struct UpdateUserVoiceState<'a> { /* fields omitted */ }Expand description
Update another user’s voice state.
Implementations
Toggle the user’s suppress state.
Caveats
- You must have the
MUTE_MEMBERSpermission to use this method. - When unsuppressed, non-bot users will have their
request_to_speak_timestampset to the current time. Bot users will not. - When suppressed, the user will have their
request_to_speak_timestampremoved.
pub 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>;
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.