Is there a way to make it so that you can also set the webhook’s profile picture through a post request?
My code right now:
--//Services
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
--//Variables
local DiscordWebhook = "" --//Deleted so I don't get webhook raided
--//Functions
Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
local userId = player.UserId
local Data = {
["avatar"] = "https://www.roblox.com/headshot-thumbnail/image?userId=".. userId .."&width=420&height=420&format=png",
["username"] = player.Name,
["content"] = message
}
Data = HttpService:JSONEncode(Data)
HttpService:PostAsync(DiscordWebhook, Data)
end)
end)
For example instead of this profile picture:
Could I make it so that I can set the profile picture of the webhook through the post request?