The_DayStar
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
What attitude? I'm just explaining my issue...
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
Here, now I completely removed this portion of the code:
Which is what reads and writes to the database.
Instead, I left it as this:
I'm still getting a random error.
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
But I already told you why it isn't database related, multiple times...
- I am running the exact same query in that exact same command just an if-statement above, using one menu instead of two, the process works flawlessly without a hitch whatsoever.
- The errors are random and different each time the command with the double menu is run, despite no code or option/choices being changed.
- The errors even go as far as mentioning completely unrelated commands.
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
But you both keep saying it's a database issue while continuously ignoring my valid arguments as to why it's not at all database related.
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
Again, the database is the same in all instances, the queries are the same, the collections and fields are the same. The only differences are the amount of menus (0, 1 or 2), and whether I'm collecting a component response from a reply or a followUp
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
If it were a database problem, why would it mention an unrelated command? And why would it work when there's only a single menu but fail with two menus?
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
I know. But my problem isn't a database one, despite what you and Qjuh keep insisting on.
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
I use this method in other commands and it works flawlessly.
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
Yes. I give it the Id, it returns a document with that _id
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
It's getting the objectId from the database and then fetching another document using that objectId
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
The command with the problem is
progress
, and yet as you can see in the first error, it's outlying the stats
command for some inexplicable reason.31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
Okay, but how is the data not null when I'm using createMessageComponentCollector on a reply, but is somehow null when used on a followUp?
Additionally, how does it inexplicably give me the error message from a completely unrelated command?
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
Then why does it work when there's only one menu (and therefore the
createMessageComponentCollector
is used on a reply rather than a followUp), despite using the same database, the same query, the same fields, the same values and the same calculation?31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
Still looking for help with this if anyone can help
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
They can't be database errors, because when the command is run without the double menu, it works perfectly despite using the same queries. If you check the pastebin of the command, you can see that it only uses two menus when
countCheck.Character2 !== null
then switch case is either ab
or arch
. In any other instance, it only requires sending one (or zero menus) despite using the same db collections and queries and saves... No issue on those cases.31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
As I said before, the errors seem to randomize each time, but here is an instance of me running the command, crashing the bot, restarting the bot, running the command and using the exact same choices and options on it, yet getting two different errors in two different unrelated commands despite not being interconnected to one another, and despite no changes happening in the code in between restarts:
31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
So
j.reply
instead of interaction.followUp
?31 replies
DIAdiscord.js - Imagine an app
•Created by The_DayStar on 8/31/2023 in #djs-questions
createMessageComponentCollector on a followUp is causing all sorts of inexplicable errors
My discord is version 14.13.0
My node is v18.17.0
31 replies