get emoji with his id in 14.3.0
message.guild.emojis.cache.get(emojiA)
Can i do more easily than that ? I tried client.emojis.resolve(emojiA)
and client.emojis.cache.resolve(emojiA)
but it doesn't work12 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
client.emojis.cache.get(id) exists
TypeError: Cannot read properties of undefined (reading 'cache')
client.emojis
is undefined in my case and idk whythen client isn't a client object
well, i logged client and got that :
Show how you defined it.
`
index.js
(I'm in the execute of a command)
and now show the command file
Cuz I'm gonna bet you are accessing Discord instead of client
yep, what I said
The order of function parameters must match between definition and function call.
• mismatch! you pass a Message where the client is expected
• mismatch! you pass the Client where a Message is expected
i found the solution :
execute(message, args, Discord, client) {
it's a missmatch yes
ty