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