- Hello, Recently, i’ve got a problem with my discord webhooks: they aren’t working anymore. Let me explain: My script was working, after this, i opened roblox studio, i made some changes, i published, and the webhooks are not working anymore
By the way, http requests are allowed in the game settings.
Error message:
-
So, as i said, my webhooks are not working due to an error (HTTP 403: Forbidden), but http requests are allowed…
-
I tried to use osyr.is, but it was not working… I tried using “
discordapp.com
” and not “discord.com
”, but nothing changed… it was still broken.
BTW, this is the script i’m using:
local https = game:GetService("HttpService")
local webhook = "https://discord.com/api/webhooks/xxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
function sendDiscordMessage(message, name, picture)
local info = {
content = message,
username = name,
avatar_url = picture
}
local encoded = https:JSONEncode(info)
print(tostring(encoded))
https:PostAsync(webhook, encoded)
end
Oh and, i forgot to tell you something:
Webhooks are working in Roblox Studio but not In-Game so… Yeah, idk.
Anyways, Thanks for reading and have an amazing day / night!