UNPKG

blox-api

Version:

Roblox web API wrapper for Node.js

20 lines (19 loc) 559 B
import { IRobloxSession } from "./auth"; /** * Information about the logged in user, received from https://www.roblox.com/mobileapi/userinfo */ export interface IUserInfo { UserId: number; UserName: string; RobuxBalance: number; TicketsBalance: number; ThumbnailUrl: string; IsAnyBuildersClubMember: boolean; IsPremium: boolean; } /** * Fetchs information about the logged-in user * * @param session Current [[RobloxClient]] session */ export declare function getUserFromSession(session: IRobloxSession): Promise<IUserInfo>;