how to send a message within a setinterval.

I want the bot to just send a message with no interaction from the user every __ mins/hours. I can just put the code to send the message inside a setInterval(), but every method I've tried to send the message either doesn't work or throws an error.
image.png
Was this page helpful?