How to get player’s headshot link for setting webhook avatars.
Please use the search bar or a search engine next time. You can find your answer very easily.
Here:
local Players = game:GetService("Players")
Players:GetUserThumbnailAsync(userId, Enum.ThumbnailType.HeadShot, thumbnailSize
1 Like
For a Discord webhook you’ll need to make use of a thumbnail API endpoint, specifically this one.
Here’s a sample request issued to that endpoint.
https://thumbnails.roblox.com/v1/users/avatar?userIds=1&size=30x30&format=Png&isCircular=false
The response is a JSON encoded string, the ‘imageUrl’ field is what you’re looking for.
https://tr.rbxcdn.com/4f4ec8776ecfa2bf6552f33a0af19460/30/30/Avatar/Png
![]()
1 Like