N
N
Nikita Kudrin2020-09-09 19:22:23
Node.js
Nikita Kudrin, 2020-09-09 19:22:23

How to stop the collector?

Greetings.
How to make a collector so that when you click on the reaction, the time is canceled and collector.on('end', collected => does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-09-09
@HepkaPlay

collector.on("end")used to create actions after the message/reaction collection time has elapsed.
to mechanically stop the collector, use the function .stop():
collector.stop()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question