Add support for stickers in messages

The sticker name and description will be now forwarded
with the rest of the message content.
This commit is contained in:
Wroclaw 2023-03-18 04:55:37 +01:00
parent 582dff5243
commit fa1caf3ad8

View file

@ -31,7 +31,14 @@ export function formatMessage(message: DiscordMessage): string {
rvalue += "]"; rvalue += "]";
} }
return rvalue; for (const sticker of message.stickers.values()) {
rvalue += ` [Sticker:`;
rvalue += sticker.name;
rvalue += sticker.description ? ` - ${sticker.description}` : "";
rvalue += "]";
}
return rvalue.trim();
} }
/** /**