Posts by Patrick Borges • 1 point
2 posts
-
0
votes1
answer118
viewsA: Discord.js is not expecting the return of the function
I was able to solve the problem by changing http request to a synchronous method using the Sync-request package instead of the standard Javascript package I was using.
-
-1
votes1
answer118
viewsQ: Discord.js is not expecting the return of the function
I am developing a BOT where I need to make a request (GET) for an API that returns me a JSON. This part is apparently working properly, I put this request in a separate file and created a function…