I recently made a ban system for our game and added a log per webhook.
What im trying to achieve is adding the avatar thumbnail to the embed of the person being banned
Issue is that the API returns multiple things, not just the image.
Also using the Roblox API is prohibited with HttpService
How can I fix this?
if success then
local WebhookContent = {
["username"] = "Ban log",
["content"] = "User ".. player.Name.. " was banned",
["embeds"] = {
{
["author"] = {
["name"] = "Logs"
},
["title"] = "[User](https://www.roblox.com/users/"..player.UserId.."/profile) was banned",
["fields"] = {
{
["name"] = "Time",
["value"] = param1 * 60 .. " seconds (you do the math)",
["inline"] = true
},
{
["name"] = "Reason",
["value"] = param2,
["inline"] = true
}
}
}
}
}
HTTP:PostAsync(fullURLWebhook, HTTP:JSONEncode(WebhookContent))
end