Struct twilight_http::request::guild::member::update_guild_member::UpdateGuildMember [−][src]
pub struct UpdateGuildMember<'a> { /* fields omitted */ }
Expand description
Update a guild member.
All fields are optional. Refer to the discord docs for more information.
Implementations
Move the member to a different voice channel.
If true, restrict the member’s ability to hear sound from a voice channel.
If true, restrict the member’s ability to speak in a voice channel.
Set the nickname.
The minimum length is 1 UTF-16 character and the maximum is 32 UTF-16 characters.
Errors
Returns an UpdateGuildMemberErrorType::NicknameInvalid
error type if
the nickname length is too short or too long.
pub fn exec(self) -> ResponseFuture<MemberBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<MemberBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
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
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UpdateGuildMember<'a>
impl<'a> Send for UpdateGuildMember<'a>
impl<'a> Sync for UpdateGuildMember<'a>
impl<'a> Unpin for UpdateGuildMember<'a>
impl<'a> !UnwindSafe for UpdateGuildMember<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more