Browse Source

Use reaction.emoji.name instead of reaction.emoji

master
Abheek Dhawan 4 years ago
parent
commit
87da43d489
  1. 2
      index.js

2
index.js

@ -40,7 +40,7 @@ async function roleRequest(message) {
message.awaitReactions(filter, { max: 1, time: 600000000, errors: ['time'] })
.then(userReaction => {
const reaction = userReaction.first();
if (reaction.emoji === '👍') {
if (reaction.emoji.name === '👍') {
message.reply("wow I guess you ARE worthy! ||mods must be real mistaken||");
if (role === 'reader') {
message.member.roles.add(readerRole).catch(console.error);

Loading…
Cancel
Save