Function create_guild

Source
pub async fn create_guild(
    client: &Client,
    token: &str,
    guild_settings: Value,
) -> Result<Value, Box<dyn Error>>
Expand description

Creates a new Discord guild.

§Arguments

  • client - The HTTP client used to send the request.
  • token - The bot token for authentication.
  • guild_settings - The JSON value of the guild settings.

§Returns

A result containing the created guild information as a JSON value.