Function get_current_user

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

Fetches the current user’s information.

§Arguments

  • client - The HTTP client used to send the request.
  • token - The bot token for authentication.

§Returns

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