[−][src]Struct serenity::builder::EditChannel
A builder to edit a GuildChannel
for use via GuildChannel::edit
Defaults are not directly provided by the builder itself.
Examples
Edit a channel, providing a new name and topic:
// assuming a channel has already been bound if let Err(why) = channel.edit(&http, |c| c.name("new name").topic("a test topic")).await { // properly handle the error }
Implementations
impl EditChannel
[src]
pub fn bitrate(&mut self, bitrate: u64) -> &mut Self
[src]
The bitrate of the channel in bits.
This is for voice channels only.
pub fn name<S: ToString>(&mut self, name: S) -> &mut Self
[src]
The name of the channel.
Must be between 2 and 100 characters long.
pub fn position(&mut self, position: u64) -> &mut Self
[src]
The position of the channel in the channel list.
pub fn topic<S: ToString>(&mut self, topic: S) -> &mut Self
[src]
The topic of the channel. Can be empty.
Must be between 0 and 1024 characters long.
This is for text channels only.
pub fn nsfw(&mut self, nsfw: bool) -> &mut Self
[src]
Is the channel inappropriate for work?
This is for text channels only.
pub fn user_limit(&mut self, user_limit: u64) -> &mut Self
[src]
The number of users that may be in the channel simultaneously.
This is for voice channels only.
pub fn category<C: Into<Option<ChannelId>>>(&mut self, category: C) -> &mut Self
[src]
pub fn slow_mode_rate(&mut self, seconds: u64) -> &mut Self
[src]
The seconds a user has to wait before sending another message.
Info: Only values from 0 to 120 are valid.
Trait Implementations
impl Clone for EditChannel
[src]
fn clone(&self) -> EditChannel
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EditChannel
[src]
impl Default for EditChannel
[src]
fn default() -> EditChannel
[src]
Auto Trait Implementations
impl RefUnwindSafe for EditChannel
impl Send for EditChannel
impl Sync for EditChannel
impl Unpin for EditChannel
impl UnwindSafe for EditChannel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,