No idea how to solve this.
So I have a bot. This bot does a few other features that works, but the one that I have a problem with is where the !startquiz and the answers. First of all I want it to immediatly say that you can only choose A,B,C,D. And I want it that if the quiz hasnt been completed in 7 minutes then it should say the time up. And when I complete it it just says that choose A,B,C,D.
If you dont understand here is what I mean. Here is the:
Where the user said other than A,B,C,D: await message.author.send("Helytelen válasz. Kérlek, válassz A, B, C vagy D közül.");
And where the time ran out: await message.author.send("Időtúllépés történt. Kérlek, indítsd újra a kérdőívet a !startquiz paranccsal.");
My code: https://sourceb.in/9UOSgmADHl
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPIf there is anything I did wrong, please tell me by pinging me with the problem i did
It suggests the end reason isnt time
Actually one sec
The
errors
condition on awaitMessages
doesnt actually throw an error - it still throws the Collection of collected messages. Since the only error condition is time
, thats the only reason it could end up in catch
Theres nothing to checkokay
I edited like this and it still doesnt work and has the same error: https://sourceb.in/xaTwfhNtBs
Just dont do any check, I dont understand why that code is there
Unless what you're catching is an actual error then? In which case, you should log it