Skip to content

How to react with emoji or custom emoji ? 馃 #23

Locked Answered by rigwild
toastyy00 asked this question in Q&A
Discussion options

You must be logged in to vote
{
  id()
  let guildId = gid
  let channelId = cid
  let messageId = '99420081234567890'

  // Get the list of server custom emojis
  let emojisCustom = await api.listEmojis(gid).then(emojis => emojis.map(emoji => ({ ...emoji, url: `${emoji.name}:${emoji.id}` })))
  
  // Add 馃 emoji
  await api.addReaction(channelId, messageId, '馃')
  await delay(500)

  // Add `monkas` emoji
  let monkasEmoji = emojisCustom.find(x => x.name === 'monkas')
  await api.addReaction(channelId, messageId, monkasEmoji.url)
}

Replies: 3 comments 76 replies

Comment options

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

@rigwild
Comment options

@toastyy00
Comment options

Answer selected by toastyy00
Comment options

You must be logged in to vote
57 replies
@DeadLyBro
Comment options

@DeadLyBro
Comment options

@toastyy00
Comment options

@DeadLyBro
Comment options

@rigwild
Comment options

Comment options

You must be logged in to vote
16 replies
@zodiaccong
Comment options

@DeadLyBro
Comment options

@zodiaccong
Comment options

@DeadLyBro
Comment options

@zodiaccong
Comment options

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