Skip to main content

PlayersServicePromises

Utility methods for async methods in Players service

Functions

promiseUserIdFromName

PlayersServicePromises.promiseUserIdFromName(namestring) → Promise<UserId>

Promises the userId from a given name.

Show raw api
{
    "functions": [
        {
            "name": "promiseUserIdFromName",
            "desc": "Promises the userId from a given name.",
            "params": [
                {
                    "name": "name",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<UserId>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 19,
                "path": "src/playersservicepromises/src/Shared/PlayersServicePromises.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PlayersServicePromises",
    "desc": "Utility methods for async methods in Players service",
    "source": {
        "line": 5,
        "path": "src/playersservicepromises/src/Shared/PlayersServicePromises.lua"
    }
}