I'm working on a system that allows communication from ROBLOX to Discord via a bot.
When using PostAsync, these are my parameters:
local Data = {
["Authorization"] = "auth_code" -- this is normally a string with an auth code, however for security reasons I can't include it
}
game:GetService("HttpService"):PostAsync("https://discordapp.com/api/guilds/1337/members",false,Data) -- 1337 was also a guild code. However, I can't include it for privacy
When running this, I get the error 'Unable to cast Dictionary to token'
Any help is appreciated. Cheers.

5 comments
Why not use a webhook?
There's no way to get the messages in a Discord server channel using a webhook.
You need to cast it to JSON. No web developer will build an API that will understand all these table formats in all these languages.
That's not the case. I actually made a mistake, which was using 'PostAsync' instead of 'GetAsync'. If you cast it to JSON then it'll throw an error.
Then why are you sending a request discord and not to the bot itself?