reactions working

This commit is contained in:
Cadence Ember 2023-07-05 08:41:15 +12:00
parent 4cd9da49fd
commit bd32fe6c6d
5 changed files with 24 additions and 16 deletions

View file

@ -17,7 +17,9 @@ async function addReaction(event) {
// no need to sync the matrix member to the other side. but if I did need to, this is where I'd do it
const emoji = event.content["m.relates_to"].key // TODO: handle custom text or emoji reactions
let emoji = event.content["m.relates_to"].key // TODO: handle custom text or emoji reactions
emoji = encodeURIComponent(emoji)
emoji = emoji.replace(/%EF%B8%8F/g, "")
return discord.snow.channel.createReaction(channelID, messageID, emoji)
}