title: Cannot send an empty message 50006 when using multipart Laravel Http post
body: <p>I am getting this error when trying to send a message to a Discord webhook.</p>
  <pre><code>{&quot;message&quot;: &quot;Cannot send an empty message&quot;, &quot;code&quot;: 50006}
  </code></pre>
  <p>I've read the <a href="https://discord.com/developers/docs/reference#uploading-files" rel="nofollow noreferrer">discord documentation</a> on sending images, and can honestly not see what I'm doing wrong.</p>
  <p>Here's the code I'm running:</p>
  <pre><code>Http::withHeaders([
      'Content-Type' =&gt; 'multipart/form-data; boundary=--abcdefghijklmnop'
  ])
      -&gt;asMultipart()
      -&gt;post(
          $this-&gt;webhookUrl,
          [
              [
                  'name' =&gt; 'payload_json',
                  'contents' =&gt; '{
    &quot;content&quot;: &quot;Hello, World!&quot;,
    &quot;embeds&quot;: [{
      &quot;title&quot;: &quot;Hello, Embed!&quot;,
      &quot;description&quot;: &quot;This is an embedded message.&quot;,
      &quot;thumbnail&quot;: {
        &quot;url&quot;: &quot;attachment://image1.jpg&quot;
      },
      &quot;image&quot;: {
        &quot;url&quot;: &quot;attachment://image2.jpg&quot;
      }
    }],
    &quot;attachments&quot;: [{
        &quot;id&quot;: 0,
        &quot;description&quot;: &quot;Image of a cute little cat&quot;,
        &quot;filename&quot;: &quot;image1.jpg&quot;
    }, {
        &quot;id&quot;: 1,
        &quot;description&quot;: &quot;Rickroll gif&quot;,
        &quot;filename&quot;: &quot;image2.jpg&quot;
    }]
  }',
                  'headers' =&gt; [
                      'Content-Type' =&gt; 'application/json',
                  ]
              ],
              [
                  'name' =&gt; 'image1.jpg',
                  'contents' =&gt; 'data:image/jpeg;base64,[[encoded image]]',
                  'headers' =&gt; [
                      'Content-Type' =&gt; 'image/jpeg',
                  ]
              ],
              [
                  'name' =&gt; 'image2.jpg',
                  'contents' =&gt; 'data:image/jpeg;base64,[[encoded image]]',
                  'headers' =&gt; [
                      'Content-Type' =&gt; 'image/jpeg',
                  ]
              ]
          ];
      );
  </code></pre>
  <p>As you can see, this is basically the message they use in their documentation as an example and I've just translated it to be sent with the <code>Http</code> facade.</p>
  <p>What am I missing?</p>