Function kick_user
Source pub async fn kick_user(
client: &Client,
token: &str,
guild_id: &str,
user_id: &str,
) -> Result<(), Box<dyn Error>>
Expand description
Kicks a user from 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.
user_id
- The ID of the user to kick.
§Returns
A result indicating success or failure.