[][src]Struct serenity::builder::EditMember

pub struct EditMember(pub VecMap<&'static str, Value>);

A builder which edits the properties of a Member, to be used in conjunction with Member::edit.

Methods

impl EditMember[src]

pub fn deafen(self, deafen: bool) -> Self[src]

Whether to deafen the member.

Requires the Deafen Members permission.

pub fn mute(self, mute: bool) -> Self[src]

Whether to mute the member.

Requires the Mute Members permission.

pub 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.

pub 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.

pub 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 Default for EditMember[src]

impl Clone for EditMember[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EditMember[src]

Auto Trait Implementations

impl Send for EditMember

impl Sync for EditMember

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any