mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +00:00
docs(ReactionCollector): update remove and dispose events (#4136)
Co-authored-by: Amish Shah <amishshah.2k@gmail.com> Co-authored-by: uhKevinMC <plainkevin123@gmail.com> Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: Noel <icrawltogo@gmail.com>
This commit is contained in:
parent
e7eda72c9d
commit
139e56c774
1 changed files with 4 additions and 4 deletions
|
|
@ -103,7 +103,7 @@ class ReactionCollector extends Collector {
|
||||||
*/
|
*/
|
||||||
dispose(reaction, user) {
|
dispose(reaction, user) {
|
||||||
/**
|
/**
|
||||||
* Emitted whenever a reaction is disposed of.
|
* Emitted whenever a reaction is disposed of and the `dispose` option is set to true.
|
||||||
* @event ReactionCollector#dispose
|
* @event ReactionCollector#dispose
|
||||||
* @param {MessageReaction} reaction The reaction that was disposed of
|
* @param {MessageReaction} reaction The reaction that was disposed of
|
||||||
* @param {User} user The user that removed the reaction
|
* @param {User} user The user that removed the reaction
|
||||||
|
|
@ -111,9 +111,9 @@ class ReactionCollector extends Collector {
|
||||||
if (reaction.message.id !== this.message.id) return null;
|
if (reaction.message.id !== this.message.id) return null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Emitted whenever a reaction is removed from a message. Will emit on all reaction removals,
|
* Emitted whenever a reaction is removed from a message and the `dispose` option is set to true.
|
||||||
* as opposed to {@link Collector#dispose} which will only be emitted when the entire reaction
|
* Will emit on all reaction removals, as opposed to {@link Collector#dispose} which will only
|
||||||
* is removed.
|
* be emitted when the entire reaction is removed.
|
||||||
* @event ReactionCollector#remove
|
* @event ReactionCollector#remove
|
||||||
* @param {MessageReaction} reaction The reaction that was removed
|
* @param {MessageReaction} reaction The reaction that was removed
|
||||||
* @param {User} user The user that removed the reaction
|
* @param {User} user The user that removed the reaction
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue