create_guild_channel

Function create_guild_channel 

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

Creates a new channel in a Discord guild.

§Arguments

  • client - The HTTP client used to send the request.
  • token - The bot token for authentication.
  • guild_id - The ID of the guild to create the channel in.
  • channel_settings - The JSON value of the channel settings.

§Returns

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