Struct discord::builders::EditServer [] [src]

pub struct EditServer(_);

Patch content for the edit_server call.

Methods

impl EditServer
[src]

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]

Edit the server's name.

Edit the server's voice region.

Edit the server's icon. Use None to remove the icon.

Edit the server's AFK channel. Use None to select no AFK channel.

Edit the server's AFK timeout.

Transfer ownership of the server to a new owner.

Edit the verification level of the server.

Edit the server's splash. Use None to remove the splash.