Function leave_guild

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

Leaves a 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 leave.

§Returns

A result indicating success or failure.