ItHadToComeToThis Posted June 3, 2020 Share Posted June 3, 2020 (edited) Trying to send a message to a channel on my discord server. I have the bot setup correctly and the URL is correct also. The code I am using to send the message is : llHTTPRequest(webHookURL, [HTTP_METHOD,"POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "{\"content\":\"Some message\"}"); The error I am getting back is : {"message": "Cannot send an empty message", "code": 50006} Where have I gone wrong. Is my JSON string not formatted correctly?. It looks correct to me. Discord webhook example page : https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html Edited June 3, 2020 by ItHadToComeToThis Link to comment Share on other sites More sharing options...
Eth3l Posted June 3, 2020 Share Posted June 3, 2020 please add the URL your working with. or create an example url so I can test it. Link to comment Share on other sites More sharing options...
ItHadToComeToThis Posted June 3, 2020 Author Share Posted June 3, 2020 Hi there. You can use this one https://discordapp.com/api/webhooks/717547666984140840/Smeet0O8mgo7LpjTS3KYE7mJtKnsvggOQA6wpWar0BhZUrdzRnXjhS6MKz31PPH_a7yb Link to comment Share on other sites More sharing options...
ItHadToComeToThis Posted June 3, 2020 Author Share Posted June 3, 2020 Never mind figured it out. I was using the wrong application type. Thank you anyway 1 Link to comment Share on other sites More sharing options...
bigmoe Whitfield Posted June 3, 2020 Share Posted June 3, 2020 5 hours ago, ItHadToComeToThis said: Never mind figured it out. I was using the wrong application type. Thank you anyway I had to change my region restart boxes mime type a bit back ,because they stopped talking to discord. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now