mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
Rename Message.addReaction -> Message.react
This commit is contained in:
@@ -386,7 +386,7 @@ class Message {
|
|||||||
* @param {Emoji|ReactionEmoji|string} emoji Emoji to react with
|
* @param {Emoji|ReactionEmoji|string} emoji Emoji to react with
|
||||||
* @returns {Promise<MessageReaction>}
|
* @returns {Promise<MessageReaction>}
|
||||||
*/
|
*/
|
||||||
addReaction(emoji) {
|
react(emoji) {
|
||||||
if (emoji.identifier) {
|
if (emoji.identifier) {
|
||||||
emoji = emoji.identifier;
|
emoji = emoji.identifier;
|
||||||
} else if (typeof emoji === 'string') {
|
} else if (typeof emoji === 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user