[Chartjs]-DiscordAPIError: Invalid Form Body embed.image.url: Scheme "[object response]" is not supported. Scheme must be one of ('http', 'https')

1👍

You must provide an image url so instead of your current fetch where you try to get the image you have to provide the quickchart link like so:

let com = `https://quickchart.io/chart?chart={
                type: 'line',
                data: {
                  labels: ['Q1', 'Q2', 'Q3', 'Q4'],
                  datasets: [{
                    label: 'Revenue',
                    data: [100, 200, 300, 400],fill:false
                  }]
                }
              }&backgroundColor=transparent&width=500&height=300&devicePixelRatio=1.0&format=png&version=2.9.3`

if (message) {
  // rest of code
}

Leave a comment