[][src]Function serenity::http::raw::ban_user

pub fn ban_user(
    guild_id: u64,
    user_id: u64,
    delete_message_days: u8,
    reason: &str
) -> Result<()>

Bans a User from a Guild, removing their messages sent in the last X number of days.

Passing a delete_message_days of 0 is equivalent to not removing any messages. Up to 7 days' worth of messages may be deleted.

Note: Requires that you have the Ban Members permission.