Discord Webhook not working in game

Code that’s causing the issue:

local Data = {
					["content"] = "**Congratulations to the Week" .. OldWeek .. " Winners!**\n" ..
"1st - " .. UserNames[1] .. " \n" ..
"2nd - " .. UserNames[2] .. " \n" ..
"3rd - " .. UserNames[3]
				}
				
				Data = G.HttpService:JSONEncode(Data)
				
				local WebhookUrl = "link here (not sure if it's safe to post)"
				G.HttpService:PostAsync(WebhookUrl, Data)

The error I’m getting is HTTP 403 (Forbidden) on the very last line.
It completely works in studio but it’s when I test in game that the error happens.
Would greatly appreciate it if anyone knows anything about this, thanks.

1 Like

Discord banned Roblox Users from sending webhooks to their API. Either use a proxy or try an alternative way of logging the data.

Ok I guess I’ll just use data stores instead, thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.