func createAndSendEmbedMessage(session *discordgo.Session, channelId string, anime AnimeInfos) {
	var embed discordgo.MessageEmbed

	jsonBody := fmt.Sprintf(`{
    "title": "**%s** *(%s)*" ,
    "description": "%s (%d episode(s)) - %s ` + "```%s```" +  `",` +
    //"url": "https://myanimelist.net/", //TODO Find a way to get the MAL page of the anime
    `"color": 8311585,

    "thumbnail": {
      "url": "%s"
    },

    "author": {
      "name": "LuluBot",
      "icon_url": "https://i.imgur.com/gHmi1FU.jpg"
    }

  }`, anime.Attributes.Titles.En, anime.Attributes.Titles.JaJp,
		anime.Attributes.Subtype, anime.Attributes.EpisodeCount,
		anime.Attributes.Status, anime.Attributes.Synopsis, anime.Attributes.PosterImage.Original)

	json.Unmarshal([]byte(jsonBody), &embed)

	_, err := session.ChannelMessageSendEmbed(channelId, &embed)
	if err != nil {
		fmt.Println("Error while sending message,", err)
	}
}
/**
 Create an embed view and fill it with the anime infos. Then send it to the channel
 */
Create an embed view and fill it with the anime infos. Then send it to the channel
/ ** Create an embed view and fill it with the anime infos . Then send it to the channel * /
func createAndSendEmbedMessage(session *discordgo.Session, channelId string, anime AnimeInfos) {
	var embed discordgo.MessageEmbed
	jsonBody := fmt.Sprintf(`{
    "title": "**%s** *(%s)*" ,
    "description": "%s (%d episode(s)) - %s ` + "```%s```" +  `",` +
    `"color": 8311585,
    "thumbnail": {
      "url": "%s"
    },
    "author": {
      "name": "LuluBot",
      "icon_url": "https://i.imgur.com/gHmi1FU.jpg"
    }
  }`, anime.Attributes.Titles.En, anime.Attributes.Titles.JaJp,
		anime.Attributes.Subtype, anime.Attributes.EpisodeCount,
		anime.Attributes.Status, anime.Attributes.Synopsis, anime.Attributes.PosterImage.Original)
	json.Unmarshal([]byte(jsonBody), &embed)
	_, err := session.ChannelMessageSendEmbed(channelId, &embed)
	if err != nil {
		fmt.Println("Error while sending message,", err)
	}
}
func createAndSendEmbedMessage ( session * discordgo . Session , channelId string , anime AnimeInfos ) { var embed discordgo . MessageEmbed jsonBody := fmt . Sprintf ( `{
    "title": "**%s** *(%s)*" ,
    "description": "%s (%d episode(s)) - %s ` + " " + `",` + `"color": 8311585,

    "thumbnail": {
      "url": "%s"
    },

    "author": {
      "name": "LuluBot",
      "icon_url": "https://i.imgur.com/gHmi1FU.jpg"
    }

  }` , anime . Attributes . Titles . En , anime . Attributes . Titles . JaJp , anime . Attributes . Subtype , anime . Attributes . EpisodeCount , anime . Attributes . Status , anime . Attributes . Synopsis , anime . Attributes . PosterImage . Original ) json . Unmarshal ( [ ] byte ( jsonBody ) , & embed ) _ , err := session . ChannelMessageSendEmbed ( channelId , & embed ) if err != nil { fmt . Println ( " " , err ) } }
Create an embed view and fill it with the anime infos.
Create an embed view and fill it with the anime infos .
//"url": "https://myanimelist.net/", //TODO Find a way to get the MAL page of the anime