Get emoji

How can I get emoji with interaction? If I use
const someEmoji = client.emojis.get("id");
const someEmoji = client.emojis.get("id");
I get an error ReferenceError: client is not defined
7 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Parogo_72
Parogo_722y ago
1.- You can use intraction.client 2.- Its client.emojis.cache.get()
vlad vollar
vlad vollar2y ago
If I use it I get error TypeError: interaction.client.emojis.get is not a function
Parogo_72
Parogo_722y ago
I said two things
vlad vollar
vlad vollar2y ago
also ReferenceError: client is not defined
Parogo_72
Parogo_722y ago
do you really need people to write everything? cant you implement both answers? interaction.client returns a Client object client.emojis.cache.get("id") returns emoji | undefined use interaction.client.emojis.cache.get()
vlad vollar
vlad vollar2y ago
Thanks