I got a DiscordAPIError. (UnhandledPromiseRejectionWarning: DiscordAPIError)
After searching on internet I found 2 similar topics : one 40 mins ago but one 2 months ago (Discord API Error 6). Following to the informations on the second one I would like to know if it’s on my side or due to the same error. For sure if it’s the same error here are my project settings:
Project Name : saafpro1
Project website : https://saafpro1.glitch.me/
Thank you for any answer,
What is the error message that you received?
(node:21488) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 40)
(node:21488) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 188.8.131.52:443
@ihack2712 ^^^^^^^^ this the Error
I buy a boost from glitch and i boost my project I thought The problem will be solved
There is an error throw inside an async function, you need to add .catch calls after async functions
How can I add it
I don’t know anything about programming
Can you explain?
@ihack2712 please Explain, i need you to help Me
Firstly, welcome to Glitch @Alisaaf!
I recommend you read on how to learn a new language or framework.
But i need to Run this project and i will learn
But first i need to Run this project
I just need to explain my mistake where
The mistake is that there is an async function that is throwing an error, you need to catch that error. You can look up async/await and a recent discord.js tutorial.
Anyhow, you need to understand the programming language before you try to write stuff like discord bots. For instance, you don’t move to spain and expect to get a job before you know Spanish.
I will try to look for the problem and soon I will learn to program
Thank you so much