Skip to content Skip to sidebar Skip to footer

Getting An Array From Folder And Sending A Random File With Discord.js

I'm trying to create a command, when requested will send a random image from a folder. I don't want to have to name them cause I have a server with a PHP server where my friends ca

Solution 1:

This is probably just a regular error wrapped in an UnhandledPromiseRejectionWarning. Have you tried running with --trace-warnings? This should solve the problem of getting to the actual issue by providing a reasonable stack trace.


Post a Comment for "Getting An Array From Folder And Sending A Random File With Discord.js"