Discordia + Open Cloud Help needed

The thing I want to do is make a discord command that will be recieved in a game with the Open Cloud messaging service API and a discordia bot writed in lua.
I want to make an HTTP Request with coro-http, but I don’t know which params I should use.
Here are the recources I used.
Open Cloud
Coro-HTTP

And here is my roblox studio code.

local MS = game:GetService("MessagingService")
local HS = game:GetService("HttpService")
local Players = game:GetService("Players")

MS:SubscribeAsync("Test", function(msg)
	print(msg)
end)

Visual Studio Code In Discordia.

corohttp.request("POST", "https://apis.roblox.com/messaging-service/v1/universes/GameID/topics/Test", {{"x-api-key", "APIkey"}, {"Content-Type", "application/json"}}, json.encode{"message", "testoo"})

Note: The corohttp request isn’t the only thing in my code, my code is way bigger.
But I don’t think I need to show that as the request runs when I want to.
Also GameID and APIKey are both set to the correct value.

1 Like

I fixed it all by writing it in node.js and using Axios to create the API.