Skip to content

Commit

Permalink
Merge branch 'patch-stickers' of https://github.com/graphiteisaac/mod…
Browse files Browse the repository at this point in the history
…mailbot into 230912_node_18
  • Loading branch information
Dragory committed Sep 12, 2023
2 parents 682c25c + 8806977 commit 545bf1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/data/Thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ class Thread {
messageContent = messageContent.trim();
}

if (msg.stickers && msg.stickers.length) {
const stickerLines = msg.stickers.map(sticker => {
return `*<Message contains sticker "${sticker.name}">*`;
});
if (msg.stickerItems && msg.stickerItems.length) {
const stickerLines = msg.stickerItems.map(sticker => {
return `*Sent sticker "${sticker.name}":* https://media.discordapp.net/stickers/${sticker.id}.webp?size=160`
})

messageContent += "\n\n" + stickerLines.join("\n");
}
Expand Down

0 comments on commit 545bf1e

Please sign in to comment.