Okay, so basically i’m making a ban webhook, and for the life of me i can’t find out whats the error.
Heres the webhook
local Data = {
["content"] = "",
["embeds"] = {
{
["title"] = "Click Here to view player's profile",
["description"] = "---------------------------------------------",
["url"] = "https://www.roblox.com/users/"..tonumber(WebhookData[1]).."/profile",
["color"] = 13379624,
["fields"] = {
{
["name"] = "Cheater:",
["value"] = "``"..tostring(game.Players:GetNameFromUserIdAsync(WebhookData[1])).."``",
["inline"] = true
}, {
["name"] = "Moderator:",
["value"] = "``"..WebhookData[2].."``",
["inline"] = true
},
{
["name"] = "Reason:",
["value"] = "``"..WebhookData[3].."``",
["inline"] = true
},
{
["name"] = "Banned For:",
["value"] = "``"..WebhookData[4].."``",
["inline"] = true
},
{
["name"] = "BAN DATE:",
["value"] = "````",
["inline"] = true
}
},
["author"] = {
["name"] = "Da Hood Rev Trainer"
},
["footer"] = {
["text"] = "Hello",
["icon_url"] = ""
},
["thumbnail"] = {
["url"] = ""
}
}
},
["attachments"] = { }
}
This is the script where the webhook is ran.
local Webhook = GameModule:RetriveWebhook("Ban", {Arg2, Player.Name, tostring(Arg3), "PERMA_BAN", os.clock()})
HttpService:PostAsync("https://webhook.lewisakura.moe/api/webhooks/1362765250256048191/F-Ub0CHsHj40067UjCB7tE-IkICTUetJTda2PPIr7aRj63uevcHUP1rmbbeI1jCAaj2r",HttpService:JSONEncode(Webhook))
Thank you