fetchRobloxHeadshots()

API reference for fetchRobloxHeadshots() in @erlcjs/map.

Fetches headshots of players from the Roblox API.

Signature:

declare function fetchRobloxHeadshots(userIds: number[], size?: string): Promise<Map<number, string>>;

#Parameters

Parameter

Type

Description

userIds

number[]

The userIds to get the headshots for.

size

string

(Optional) The image size, defaults to 60x60px.

Returns:

Promise<Map<number, string>>

Map of all player headshots that were successfully returned by the Roblox API.