400 bad request everytime i use that or call a function
local WebHook = "https://webhook.lewisakura.moe/api/webhooks/1235559458101264404/XM2sdIlazSsnbsehXLlWaT3gOVYLM5gO-bp-1-k4dIEcOk88obePjjl6G77WAUjOJTIE"
local JoinsWebhook = "https://webhook.lewisakura.moe/api/webhooks/1235570682667204681/i2iKy5lsICat1idpbKjFYkyTEUIcUKDv6o9ZdZM69v_9hDGCMTLR_iXV2rRaXYFmQoe3"
local ChatWebhook = "https://webhook.lewisakura.moe/api/webhooks/1235573359303983224/PR5yas9Rc5lR-77HvVL5aUiU8Sb8NQlfRnKEv-IZvzEWaa-n9YK8bdVmT-9mbACDSNlZ"
local PlaceLogger = "https://webhook.lewisakura.moe/api/webhooks/1235574468231823381/OwCVVLNTMprtYPWJdrZIrp5FPg7sv47bJQqE8T9HtNe80Ld-oXIj-umJjU1X9rTNVHB5"
local httpService = game:GetService("HttpService")
-- Methods --
local DiscordAPI = {}
function DiscordAPI:Log(Color, Player, Reason)
local Date = os.date("!*t")
local data = {
['embeds'] = {{
color = Color,
title = "__**EPF CHEATS LOGS**__",
fields = {
{
name = "Username:".. " " .. "**"..tostring(Player.Name).."**",
value = "UserId:" .. " " .. "**"..tostring(Player.UserId).."**",
},
{
name = "Reason:" .. " " .. "**"..tostring(Reason).."**",
value = ":Date:".. " " .. Date.day.."/"..Date.month.."/"..Date.year.. " " .. "-" .. " " .. Date.hour..":"..Date.min..":"..Date.sec,
}
},
}}
}
local newdata = httpService:JSONEncode(data)
httpService:PostAsync(WebHook, newdata)
end
function DiscordAPI:JoinLog(Color, Player, Info)
local Date = os.date("!*t")
local data = {
['embeds'] = {{
color = Color,
title = "__**EPF JOIN LOGS**__",
fields = {
{
name = "Username:".. " " .. "**"..tostring(Player.Name).. " " .. tostring(Info) .. "**",
value = "UserId:" .. " " .. "**"..tostring(Player.UserId) .. "**",
},
},
}}
}
local newdata = httpService:JSONEncode(data)
httpService:PostAsync(JoinsWebhook, newdata)
end
function DiscordAPI:ChatLog(Color, Player, msg)
local Date = os.date("!*t")
local data = {
['embeds'] = {{
color = Color,
title = "__**EPF CHAT LOGS**__",
fields = {
{
name = "Username:".. " " .. "**"..tostring(Player.Name).."**",
value = "UserId:" .. " " .. "**"..tostring(Player.UserId).."**",
},
{
name = "Message:" .. " " .. tostring(msg),
value = "Date:".. " " .. Date.day.."/"..Date.month.."/"..Date.year.. " " .. "-" .. " " .. Date.hour..":"..Date.min..":"..Date.sec,
}
},
}}
}
local newdata = httpService:JSONEncode(data)
httpService:PostAsync(ChatWebhook, newdata)
end
function DiscordAPI:Place(Color, Id)
local Date = os.date("!*t")
local Place = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)
local Owner = game.Players:GetNameFromUserIdAsync(Id)
local data = {
['embeds'] = {{
color = Color,
title = "__**EPF CHAT LOGS**__",
fields = {
{
name = "Game Owner:".. " " .. "**"..tostring(Owner).."**",
value = "UserId:" .. " " .. "**"..tostring(Id).."**",
},
{
name = "Game Name:".. " " .. "**"..tostring(Place.Name).."**",
},
},
}}
}
local newdata = httpService:JSONEncode(data)
httpService:PostAsync(PlaceLogger, newdata)
end
return DiscordAPI
i dont have any ideas on how to fix that
its on function Join and Place.