mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00:00
Documented reaction events (#905)
This commit is contained in:
parent
5ed8098af8
commit
1833a83664
3 changed files with 17 additions and 3 deletions
|
|
@ -34,5 +34,10 @@ class MessageReactionAdd extends Action {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Emitted whenever a reaction is added to a message.
|
||||||
|
* @event Client#messageReactionAdd.
|
||||||
|
* @param {MessageReaction} messageReaction The reaction object.
|
||||||
|
* @param {User} user The user that applied the emoji or reaction emoji.
|
||||||
|
*/
|
||||||
module.exports = MessageReactionAdd;
|
module.exports = MessageReactionAdd;
|
||||||
|
|
|
||||||
|
|
@ -34,5 +34,10 @@ class MessageReactionRemove extends Action {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Emitted whenever a reaction is removed from a message.
|
||||||
|
* @event Client#messageReactionRemove.
|
||||||
|
* @param {MessageReaction} messageReaction The reaction object.
|
||||||
|
* @param {User} user The user that removed the emoji or reaction emoji.
|
||||||
|
*/
|
||||||
module.exports = MessageReactionRemove;
|
module.exports = MessageReactionRemove;
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,9 @@ class MessageReactionRemoveAll extends Action {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Emitted whenever all reactions are removed from a message.
|
||||||
|
* @event Client#messageReactionRemoveAll.
|
||||||
|
* @param {MessageReaction} messageReaction The reaction object.
|
||||||
|
*/
|
||||||
module.exports = MessageReactionRemoveAll;
|
module.exports = MessageReactionRemoveAll;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue