Browse Source

Use mesasge.channel instead of message.channel.name

master
Abheek Dhawan 4 years ago
parent
commit
01c544aee7
  1. 4
      index.js

4
index.js

@ -666,7 +666,7 @@ client.on('messageReactionAdd', (messageReaction, user) => {
.setTitle("Reaction Added") .setTitle("Reaction Added")
.setURL(messageReaction.message.url) .setURL(messageReaction.message.url)
.addField("Message", messageContent) .addField("Message", messageContent)
.addField("Reactions", `${userTag} reacted with ${emoji}, along with ${numEmoji - 1} other people in #${messageReaction.message.channel.name}.`) .addField("Reactions", `${userTag} reacted with ${emoji}, along with ${numEmoji - 1} other people in ${messageReaction.message.channel}.`)
.setFooter("Message ID: " + messageReaction.message.id) .setFooter("Message ID: " + messageReaction.message.id)
.setTimestamp() .setTimestamp()
.setColor('00aaff'); .setColor('00aaff');
@ -711,7 +711,7 @@ client.on('messageReactionRemove', (messageReaction, user) => {
.setTitle("Reaction Removed") .setTitle("Reaction Removed")
.setURL(messageReaction.message.url) .setURL(messageReaction.message.url)
.addField("Message", messageContent) .addField("Message", messageContent)
.addField("Reactions", `${userTag} removed their reaction ${emoji} in #${messageReaction.message.channel.name}.`) .addField("Reactions", `${userTag} removed their reaction ${emoji} in ${messageReaction.message.channel}.`)
.setFooter("Message ID: " + messageReaction.message.id) .setFooter("Message ID: " + messageReaction.message.id)
.setTimestamp() .setTimestamp()
.setColor('e7778b'); .setColor('e7778b');

Loading…
Cancel
Save