I'm having trouble using custom emoji in discord.js. When I try to make the bot use the emoji, It Always returns strange. Command Is: message.channel.send(':emoji name:emoji id')
and When I try to use it, the bot responds with: :emoji name:
. But if I copy paste the :emoji name:
It actually sends the emoji.
I tried with only the emoji id
or only with :emoji name:
and it still sends :emoji name:
. What can I do?
have you tried doing this inside of discord...
\
and copy and paste it into your code?
You would need to format the emoji like this:
<:emoji-name:emoji_id>
example:
<:CL_Discord:929513964805685248>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.