bulk_guild_ban

Function bulk_guild_ban 

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

Bulk bans users 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.
  • user_ids - A list of user IDs to ban.

§Returns

A result indicating success or failure.