Struct twilight_http::request::guild::user::UpdateCurrentUserVoiceState
source · [−]pub struct UpdateCurrentUserVoiceState<'a> { /* private fields */ }
Expand description
Update the current user’s voice state.
Implementations
sourceimpl<'a> UpdateCurrentUserVoiceState<'a>
impl<'a> UpdateCurrentUserVoiceState<'a>
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.
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 unsuppress yourself. You can always suppress yourself.
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 UpdateCurrentUserVoiceState<'_>
impl TryIntoRequest for UpdateCurrentUserVoiceState<'_>
Auto Trait Implementations
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
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