Skip to content

Send emoji/custom emoji #35

Answered by DeadLyBro
toastyy00 asked this question in Q&A
Aug 30, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can try this;

{
  id()
  let channelId = cid

  // Send Custom Emoji
  let sentMessage = await api.sendMessage(channelId, '<a:emojiname:123456789098765432>') 
  // add "a" if animated, ":emojiname:" is emoji's custom name, "123456789098765432" is emoji's id.
  
  // Send Normal Emoji 
  let sentMessage = await api.sendMessage(channelId, ':emojiname:')
  // or 
  let sentMessage = await api.sendMessage(channelId, '👍') 
  
}

Don't forget if you want to send custom emoji, you must have Discord Nitro. If there is another way idk! 👍

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@toastyy00
Comment options

@DeadLyBro
Comment options

Answer selected by toastyy00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants