Hello, i have multiple webhook senders in my game, they all work except for one, its a ban webhook, and i dont get it because its the same code as the other ones.
Code:
local HttpServ = game:GetService('HttpService')
local url2 = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
local data2 =
{
["content"] = "",
["embeds"] = {{
["title"] = "Console Ban",
["description"] = "Name of Player "..guy.Name,
["type"] = "rich",
["color"] = tonumber(0xff0000),
["fields"] = {
{
["name"] = "Admin",
["value"] = plr.Name,
["inline"] = true
},
{
["name"] = "Reason",
["value"] = reason,
["inline"] = true
},
{
["name"] = "yes",
["value"] = "e",
["inline"] = true
}
}}
}}
local newdata = HttpServ:JSONEncode(data2)
HttpServ:PostAsync(url2, newdata)
wait(4)
guy:Kick(reason)
end)