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

pub struct EditMember(pub HashMap<&'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(&mut self, deafen: bool) -> &mut Self[src]

Whether to deafen the member.

Requires the Deafen Members permission.

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

Whether to mute the member.

Requires the Mute Members permission.

pub fn nickname<S: ToString>(&mut self, nickname: S) -> &mut 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>>(
    &mut self,
    roles: It
) -> &mut 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>>(&mut self, channel_id: C) -> &mut 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]

impl Debug for EditMember[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,