I want to send two embeds in one message. This should be doable with MessageChannel#sendMessageEmbeds(java.util.Collection).
Also, I have embed as JSON file like this:
{
"author": {
"name": "I use this as title because why not",
"icon_url": "url for icon"
},
"description": "description that goes top of the embed",
"color": 65535,
"fields": [
{
"name": "field name 01",
"value": "field value 01 which *can* ||have|| __some__ markdown stuff",
"inline": false
},
{
"name": "field name 02",
"value": "yes, thie fileds can have more than one filed",
"inline": false
},
{
"name": "field name 03",
"value": "blahblah some texts",
"inline": true
},
],
"thumbnail": {
"url": "url for thumbnail"
},
"footer": {
"text": "footer text because it is cool",
"icon_url": "this would be same as author icon_url but this may vary sometimes"
}
}
The problem is, I cannot think of 'how to convert JSON file to MessageEmbed object'. I asked in JDA discord server, searched Google for some hint, but still cannot think of proper way to do it.
Long story short, I have JSON file for embed and I want to convert JSON file to MessageEmbed object so that I can sent it to Discord channel.
