Struct discord::builders::EditChannel
[−]
[src]
pub struct EditChannel(_);
Patch content for the edit_channel
call.
Methods
impl EditChannel
[src]
fn merge(self, other: EditChannel) -> EditChannel
Merge this builder's contents with another of the same type.
Keys in other
will override those in self
.
This method is intended to be used with deserialized instances. Note that deserialization does not check that the keys are valid for the relevant API call.
discord.edit_server(|b| b .merge(serde_json::from_str(r#"{"name":"My Server"}"#)?))
impl EditChannel
[src]
fn name(self, name: &str) -> Self
Edit the channel's name.
fn topic(self, topic: &str) -> Self
Edit the text channel's topic.
fn position(self, position: u64) -> Self
Edit the channel's position in the list.
fn bitrate(self, bitrate: u64) -> Self
Edit the voice channel's bitrate.
fn user_limit(self, user_limit: u64) -> Self
Edit the voice channel's user limit. Zero (0
) means unlimited.