discord.js create emoji code example

Example 1: discord.js emoji

// Do you know the name of the emoji? if so, you can simply do this:
message.channel.send("<:emoji name:emoji id>")
// If not, you could possibly do,
const emoji = bot.emojis.cache.get("emoji id")

message.channel.send(`${emoji}`
//I assume the emoji has to be cached for the method above to work, 
// i'm sure someone else could brew up a better solution. Hope i could help!

Example 2: how to send emoji as ID discord.js

msg.channel.send("<:bat_food_full:786954379223367710>");
//msg.channel.send("<:emoji_name:ID>");

/*---
To get ID, in discord; type "\" then the name of your emoji 

For Example, type
\:bat_food:
and it will return
<:bat_food:786554369626347415>
---*/