Fetch returning {}

What are you trying to achieve:
Trying to fetch from the Discord API, it’s returning an empty array{}, the body needs to be a string while using fetch? However Discord accepts a body like I put in the var.

I’m running this on the front-end, not the back-end.
Works fine with the same credentials on node & express

Additional information:
Image below:
chrome_Xn6Iu8i1Iv

When sharing code please share it as text like so:

```js
let myCode = “here”;
```

Which will display as:

let myCode = "here";

Are you getting any error message or just the string? If so can you share? One thing to try would be to install a package like axios and use that instead of fetch().

Regardless this should work, a possible issue could be CORS since this code is being executed from within a browser.