title: Sending complex messages to discord bot through R
body: <p>I'm using POST from the httr package to send messages through a discord bot as large scripts update, and I'd like to make these messages a little more complicated than they currently are.</p>
  
  <p>My problem is that the following messages just return the same single word "try".</p>
  
  <pre><code>library(httr)
  
  POST(url = "&lt;mywebhook&gt;",
       body = list(content = "try"),
       encode = "json")
  
  POST(url = "&lt;mywebhook&gt;",
       body = list(content = "try",
                   embed = list(title = "this is a title",
                                ThumbnailUrl = "&lt;someimage.png&gt;")),
       encode = "json")
  </code></pre>
  
  <p>My rough understanding is that i can mimic the json format through a series of nested lists for the embed, but that doesn't seem to be true.</p>
  
  <p>Ideally I'd like to set up the embed such that I can send updated plots to a server while something is running, or programmatically generated text strings to provide information about a script's activity.</p>