Browse Source

Attempt to use identifier instead of ID

master
Abheek Dhawan 4 years ago
parent
commit
3e10ad3ff1
  1. 4
      bot.js

4
bot.js

@ -798,8 +798,8 @@ client.on('messageReactionAdd', (messageReaction, user) => {
messageReaction.message.channel.messages.fetch(messageReaction.message.id)
.then(message => {
const emoji = messageReaction.emoji.name;
const emojiID = messageReaction.emoji.id;
const numEmoji = message.reactions.cache.get(emojiID).count;
const emojiIdentifier = messageReaction.emoji.identifier;
const numEmoji = message.reactions.cache.get(emojiIdentifier).count;
const messageReactionAddEmbed = new Discord.MessageEmbed()
.setTitle("Reaction Added")
.setAuthor(message.author.tag, message.author.avatarURL())

Loading…
Cancel
Save