Struct discord::builders::EditServer
[−]
[src]
pub struct EditServer(_);
Patch content for the edit_server
call.
Methods
impl EditServer
[src]
fn merge(self, other: EditServer) -> EditServer
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 EditServer
[src]
fn name(self, name: &str) -> Self
Edit the server's name.
fn region(self, region: &str) -> Self
Edit the server's voice region.
fn icon(self, icon: Option<&str>) -> Self
Edit the server's icon. Use None
to remove the icon.
fn afk_channel(self, channel: Option<ChannelId>) -> Self
Edit the server's AFK channel. Use None
to select no AFK channel.
fn afk_timeout(self, timeout: u64) -> Self
Edit the server's AFK timeout.
fn owner(self, owner: UserId) -> Self
Transfer ownership of the server to a new owner.
fn verification_level(self, verification_level: VerificationLevel) -> Self
Edit the verification level of the server.
fn splash(self, splash: Option<&str>) -> Self
Edit the server's splash. Use None
to remove the splash.