It gives me the reply after it supposedly sent the message
Try changing the fetch
to await fetch
and then console.log(Response) after
Still the same thing, I’ll regen my API key and see if that changes anything.
Yeah still nothing unfortunately, not sure what is causing it.
Weird. I’ll see if I can replicate it.
Just for debugging purposes, can you fetch something random like google.com
?
How would I know if it’s fetched it.
Print the response (Using await since it is needed). It should print “200” as the response code if it succeeded, same with roblox. If the google.com
request work print the response of roblox to see if there was an error.
Yes it got both of them with status code 200.
But it isn’t getting the API, not sure if that’s supposed to happen or not. (Status code 404 / Not Found)
That isn’t supposed to happen. Maybe the link is wrong/ you didn’t fully set up the link yet. @typechecked probably knows more, since he is used to it. Can you however, send the entire error message (or tell us if it is just that) so that we can help you further?
Are you sure you’re using the experience ID, not the place ID? Also the experience ID is not private, you don’t need to redact it.
This right?
You need your own server and your own API. Basically whenever someone runs !message hello
, the word gets added to a database temporary. Your Roblox server will have to send a request every few seconds/milliseconds to your server API URL (e.g., GET: api.yourdomain.com/discord_message_api). And that API should return the word from the database (“hello”) and then erase it.
At least this is how I see it working.
Yes. Are you sure you setup the API key properly and added that place, with all IPs allowed (CIDR 0.0.0.0/0)
It should look something like this when you set it up
Done that, still not being sent to the game.
Hm. Can you show me the API key info in the credentials tab (with the API key redacted ofc)
Weird. What URL are you using to send the request?