So basically I am trying to make a discord bot that sends a embed with a random quote, I am getting the quotes by using this function
const fetchRoll = () => {
const myResponse = fetch('https://animechan.vercel.app/api/random')
.then(result => result.json())
.then(data => {
return data.anime;
})
return myResponse;
}
But I don't manage a way to receive the data from the fetch, I get a promisse instead