pub struct UpdateGuildMember<'a> { /* private fields */ }
Expand description

Update a guild member.

All fields are optional. See Discord Docs/Modify Guild Member.

Implementations

Move the member to a different voice channel.

Set the member’s Guild Timeout.

The timestamp indicates when the user will be able to communicate again. It can be up to 28 days in the future. Set to None to remove the timeout. Requires the MODERATE_MEMBERS permission. If this is set, and if the target member is an administrator or the owner of the guild, the response status code will be 403.

Errors

Returns an error of type CommunicationDisabledUntil if the expiry timestamp is more than 28 days from the current time.

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 error of type Nickname if the nickname length is too short or too long.

Set the new list of roles for a member.

Execute the request, returning a future resolving to a Response.

Trait Implementations

Attach an audit log reason to the request. Read more
Try to convert a request builder into a raw Request. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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