Tomáš
DIAdiscord.js - Imagine an app
•Created by Tomáš on 5/2/2023 in #djs-questions
ReactionCollector discord.js reasons to stop/end
Hello,
I was wondering if there is any resource/documentation for all the reasons that can be emitted by discord.js when Reaction Collector is stopped and an 'end' event is emitted, as I can't find anything in the documentation nor here, I just found few 'somethingDelete' in the source in node_modules.
I removeAll() reactions on collector end, which is also triggered when the message is deleted, which causes me an Discord API error and crashes the client.
Error stack: https://srcb.in/TJ9NhrE893
I partially solved it like this:
But would like it to make it more proof in case there is other case.
discord.js version: 14.10.2 (same on 14.9)
node v16.14.2
Can you please point me somewhere or suggest me something if you have any ideas or encountered this issue yourself?
Thank you in advance.
7 replies