mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 12:22:50 +02:00
New unicode emoji processor
This commit is contained in:
parent
14574b4e2c
commit
f42eb6495f
7 changed files with 4015 additions and 46 deletions
|
@ -53,7 +53,7 @@ async function removeReaction(data, reactions) {
|
|||
*/
|
||||
async function removeEmojiReaction(data, reactions) {
|
||||
const key = await emojiToKey.emojiToKey(data.emoji)
|
||||
const discordPreferredEncoding = emoji.encodeEmoji(key, undefined)
|
||||
const discordPreferredEncoding = await emoji.encodeEmoji(key, undefined)
|
||||
db.prepare("DELETE FROM reaction WHERE message_id = ? AND encoded_emoji = ?").run(data.message_id, discordPreferredEncoding)
|
||||
|
||||
return converter.removeEmojiReaction(data, reactions, key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue