pub async fn create_guild_ban(
client: &Client,
token: &str,
guild_id: &str,
user_id: &str,
ban_settings: Value,
) -> Result<(), Box<dyn Error>>Expand description
Creates a ban 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_id- The ID of the user to ban.ban_settings- The JSON value of the ban settings.
§Returns
A result indicating success or failure.