Skip to main content

UserInfoService

Centralized provider for user info so we can coordinate web requests.

Functions

PromiseUserInfo

UserInfoService:PromiseUserInfo(userIdnumber) → Promise<UserInfo>

Promises the user info for the given user, aggregating all requests to reduce calls into Roblox.

ObserveUserInfo

UserInfoService:ObserveUserInfo(userIdnumber) → Observable<UserInfo>

Observes the user info for the user

PromiseDisplayName

UserInfoService:PromiseDisplayName(userIdnumber) → Promise<string>

Promises the user display name for the userId

ObserveDisplayName

UserInfoService:ObserveDisplayName(userIdnumber) → Observable<string>

Observes the user display name for the userId

Show raw api
{
    "functions": [
        {
            "name": "PromiseUserInfo",
            "desc": "Promises the user info for the given user, aggregating all requests to reduce\ncalls into Roblox.",
            "params": [
                {
                    "name": "userId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<UserInfo>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 30,
                "path": "src/userserviceutils/src/Shared/UserInfoService.lua"
            }
        },
        {
            "name": "ObserveUserInfo",
            "desc": "Observes the user info for the user",
            "params": [
                {
                    "name": "userId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<UserInfo>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 42,
                "path": "src/userserviceutils/src/Shared/UserInfoService.lua"
            }
        },
        {
            "name": "PromiseDisplayName",
            "desc": "Promises the user display name for the userId",
            "params": [
                {
                    "name": "userId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 54,
                "path": "src/userserviceutils/src/Shared/UserInfoService.lua"
            }
        },
        {
            "name": "ObserveDisplayName",
            "desc": "Observes the user display name for the userId",
            "params": [
                {
                    "name": "userId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 66,
                "path": "src/userserviceutils/src/Shared/UserInfoService.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "UserInfoService",
    "desc": "Centralized provider for user info so we can coordinate web requests.",
    "source": {
        "line": 6,
        "path": "src/userserviceutils/src/Shared/UserInfoService.lua"
    }
}