So I’m trying to test out a web hook to Discord. I’m using a basic JSON with an embed. When I try and post to the web hook address for discord I get the following error: SyntaxError: Unexpected token. I’m using the following JSON. Am I doing something wrong? First time using postman.
{
"embed": {
"title": "**__Territory Wars Teams__**",
"description": "Below are the Territory Wars Teams",
"color": 3067190,
"footer": {
"icon_url": "https://yt3.ggpht.com/-n8wBUnsEW04/AAAAAAAAAAI/AAAAAAAAAAA/vkRNM-5vm38/s288-c-k-no-mo-rj-c0xffffff/photo.jpg",
"text": "This Wonderful Embed was Created by DŁ M1NÐN1NJ4 Ω"
}
}
}
Hi, btw sending messages with embeds using webhooks has quite different format, they use "embeds": [{}] instead of "embed": {} because multi-embed support. More info can be found here: https://birdie0.github.io/discord-webhooks-guide/
{
"embeds": [
{
"title": "**__Territory Wars Teams__**",
"description": "Below are the Territory Wars Teams",
"color": 3067190,
"footer": {
"icon_url": "https://yt3.ggpht.com/-n8wBUnsEW04/AAAAAAAAAAI/AAAAAAAAAAA/vkRNM-5vm38/s288-c-k-no-mo-rj-c0xffffff/photo.jpg",
"text": "This Wonderful Embed was Created by DŁ M1NÐN1NJ4 Ω"
}
}
]
}