Skip to content

Commit

Permalink
add new sticker type (stickerLine) to response
Browse files Browse the repository at this point in the history
  • Loading branch information
graphiteisaac authored Apr 20, 2023
1 parent f81bb31 commit 8806977
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 @@ -443,10 +443,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 8806977

Please sign in to comment.