Skip to content

Commit

Permalink
fix: customEmoji (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
Faf4a authored Oct 13, 2024
1 parent 663a740 commit cd30654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/customEmoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ module.exports = async d => {
if (!emoji) return d.aoiError.fnError(d, "custom", { inside: data.inside }, "Invalid Emoji");
data.result = emoji.toString();
} else {
data.result = d.client.guilds.cache.get(id)?.emojis.cache.find(x => x.name.toLowerCase() === emoji.toLowerCase() || x.toString() === emoji || x.id === emoji)?.toString()
data.result = d.client.guilds.cache.get(id)?.emojis.cache.find(x => x.name.toLowerCase() === name.toLowerCase() || x.toString() === name || x.id === name)?.toString()
}

return {
code: d.util.setCode(data)
}
}
}

0 comments on commit cd30654

Please sign in to comment.