Skip to content

Commit

Permalink
🐛 Use emojis cache instead of custom emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Aug 18, 2020
1 parent 70839d3 commit 7e085ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/Moderation/poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class Poll extends Command {
const error = this.client.customEmojis.error.split(":")[1];

const emojis = [
this.client.customEmojis.cache.find((e) => e.name === success),
this.client.customEmojis.cache.find((e) => e.name === error)
this.client.emojis.cache.find((e) => e.name === success),
this.client.emojis.cache.find((e) => e.name === error)
];

const embed = new Discord.MessageEmbed()
Expand Down

0 comments on commit 7e085ad

Please sign in to comment.