(idk is this right category)
I am trying to do so when player joins game, it is sent to discord’s webhook. When I test, I always get “HTTP 400 (Bad Request)” error. How to fix it?
(idk is this right category)
I am trying to do so when player joins game, it is sent to discord’s webhook. When I test, I always get “HTTP 400 (Bad Request)” error. How to fix it?
Adding to this:
local HTTPService = game:GetService("HttpService")
local webhook = "webhook"
local message = "Hello!"
message = HTTPService:JSONEncode(message)
HTTPService:PostAsync(webhook,message)
Does “message” variable have to be in array?
First, I recommend to delete the Webhook variable immediately from the post (Leave the variable empty) Someone could send and post some bad stuff using this Webhook.
Secondly, Discord blocked all Roblox requests to their server but it’s still possible to send data to discord using a Webhook. Have a look at this module.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.