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:
parent
582dff5243
commit
fa1caf3ad8
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue