Function get_user

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

Fetches a user’s information.

§Arguments

  • client - The HTTP client used to send the request.
  • token - The bot token for authentication.
  • user_id - The ID of the user to fetch.

§Returns

A result containing the user’s information as a JSON value.