Skip to main content

UserServiceUtils

Wraps UserService API calls with Promise.

Types

UserInfo

interface UserInfo {
Idnumber--

The Id associated with the UserInfoResponse object

Usernamestring--

The username associated with the UserInfoResponse object

DisplayNamestring--

The display name associated with the UserInfoResponse object

HasVerifiedBadgeboolean--

The HasVerifiedBadge value associated with the user.

}

Functions

promiseUserInfosByUserIds

UserServiceUtils.promiseUserInfosByUserIds(userIds{number}) → Promise<{UserInfo}>

Wraps UserService:GetUserInfosByUserIdsAsync(userIds)

::: tip User UserInfoAggregator via UserInfoService to get this deduplicated. :::

promiseUserInfo

UserServiceUtils.promiseUserInfo(userIdnumber) → Promise<UserInfo>

Wraps UserService:GetUserInfosByUserIdsAsync({ userId })[1]

::: tip User UserInfoAggregator via UserInfoService to get this deduplicated. :::

promiseDisplayName

UserServiceUtils.promiseDisplayName(userIdnumber) → Promise<string>

Wraps UserService:GetUserInfosByUserIdsAsync({ userId })[1].DisplayName

::: tip User UserInfoAggregator via UserInfoService to get this deduplicated. :::

promiseUserName

UserServiceUtils.promiseUserName(userIdnumber) → Promise<string>

Wraps UserService:GetUserInfosByUserIdsAsync({ userId })[1].Username

::: tip User UserInfoAggregator via UserInfoService to get this deduplicated. :::

Show raw api
{
    "functions": [
        {
            "name": "promiseUserInfosByUserIds",
            "desc": "Wraps UserService:GetUserInfosByUserIdsAsync(userIds)\n\n::: tip\nUser [UserInfoAggregator] via [UserInfoService] to get this deduplicated.\n:::",
            "params": [
                {
                    "name": "userIds",
                    "desc": "",
                    "lua_type": "{ number }"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ UserInfo }>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 34,
                "path": "src/userserviceutils/src/Shared/UserServiceUtils.lua"
            }
        },
        {
            "name": "promiseUserInfo",
            "desc": "Wraps UserService:GetUserInfosByUserIdsAsync({ userId })[1]\n\n::: tip\nUser [UserInfoAggregator] via [UserInfoService] to get this deduplicated.\n:::",
            "params": [
                {
                    "name": "userId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<UserInfo>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 64,
                "path": "src/userserviceutils/src/Shared/UserServiceUtils.lua"
            }
        },
        {
            "name": "promiseDisplayName",
            "desc": "Wraps UserService:GetUserInfosByUserIdsAsync({ userId })[1].DisplayName\n\n::: tip\nUser [UserInfoAggregator] via [UserInfoService] to get this deduplicated.\n:::",
            "params": [
                {
                    "name": "userId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<string>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 89,
                "path": "src/userserviceutils/src/Shared/UserServiceUtils.lua"
            }
        },
        {
            "name": "promiseUserName",
            "desc": "Wraps UserService:GetUserInfosByUserIdsAsync({ userId })[1].Username\n\n::: tip\nUser [UserInfoAggregator] via [UserInfoService] to get this deduplicated.\n:::",
            "params": [
                {
                    "name": "userId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<string>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 108,
                "path": "src/userserviceutils/src/Shared/UserServiceUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [
        {
            "name": "UserInfo",
            "desc": "",
            "fields": [
                {
                    "name": "Id",
                    "lua_type": "number",
                    "desc": "The Id associated with the UserInfoResponse object"
                },
                {
                    "name": "Username",
                    "lua_type": "string",
                    "desc": "The username associated with the UserInfoResponse object"
                },
                {
                    "name": "DisplayName",
                    "lua_type": "string",
                    "desc": "The display name associated with the UserInfoResponse object"
                },
                {
                    "name": "HasVerifiedBadge",
                    "lua_type": "boolean",
                    "desc": "The HasVerifiedBadge value associated with the user."
                }
            ],
            "source": {
                "line": 23,
                "path": "src/userserviceutils/src/Shared/UserServiceUtils.lua"
            }
        }
    ],
    "name": "UserServiceUtils",
    "desc": "Wraps [UserService] API calls with [Promise].",
    "source": {
        "line": 6,
        "path": "src/userserviceutils/src/Shared/UserServiceUtils.lua"
    }
}