[][src]Struct spectacles_model::channel::ModifyChannel

pub struct ModifyChannel { /* fields omitted */ }

Options for modifying a Discord channel.

Methods

impl ModifyChannel[src]

pub fn new() -> Self[src]

pub fn name(self, new_name: &str) -> Self[src]

Sets a new name for this channel.

pub fn set_position(self, pos: i32) -> Self[src]

Sets a new position for this channel.

pub fn topic(self, top: &str) -> Self[src]

Sets a new topic for this channel.

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

Changes the NSFW flag for this channel.

pub fn rate_limit_per_user(self, secs: i8) -> Self[src]

Modifies this channel's message rate limit per user.

pub fn user_limit(self, limit: i32) -> Self[src]

Modifies this channel's user limit, if a voice channel.

pub fn parent_id(self, id: u64) -> Self[src]

Modifies this channel's parent category ID.

Trait Implementations

impl Default for ModifyChannel[src]

impl Clone for ModifyChannel[src]

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

Performs copy-assignment from source. Read more

impl Debug for ModifyChannel[src]

impl Serialize for ModifyChannel[src]

Auto Trait Implementations

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]