Struct serenity::builder::EditMember
[−]
[src]
pub struct EditMember(pub Map<String, Value>);
A builder which edits the properties of a Member
, to be used in
conjunction with Member::edit
.
Methods
impl EditMember
[src]
fn deafen(self, deafen: bool) -> Self
[src]
Whether to deafen the member.
Requires the Deafen Members permission.
fn mute(self, mute: bool) -> Self
[src]
Whether to mute the member.
Requires the Mute Members permission.
fn nickname(self, nickname: &str) -> Self
[src]
Changes the member's nickname. Pass an empty string to reset the nickname.
Requires the Manage Nicknames permission.
fn roles<T: AsRef<RoleId>, It: IntoIterator<Item = T>>(self, roles: It) -> Self
[src]
Set the list of roles that the member should have.
Requires the Manage Roles permission to modify.
fn voice_channel<C: Into<ChannelId>>(self, channel_id: C) -> Self
[src]
The Id of the voice channel to move the member to.
Requires the Move Members permission.
Trait Implementations
impl Clone for EditMember
[src]
fn clone(&self) -> EditMember
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EditMember
[src]
impl Default for EditMember
[src]
fn default() -> EditMember
[src]
Returns the "default value" for a type. Read more