getUserById abstract method

  1. @GET.new('/users/{user_id}')
Future<UserPartialResponse> getUserById({
  1. @Path.new('user_id') required SnowflakeType userId,
})

Get user by ID.

Retrieves public user information by user ID. Returns basic profile details like username, avatar, and status. Does not include private or sensitive user data.

userId - The ID of the user.

Implementation

@GET('/users/{user_id}')
Future<UserPartialResponse> getUserById({
  @Path('user_id') required SnowflakeType userId,
});