forked from cadence/out-of-your-element
Annotate crossposted messages with their origin
This commit is contained in:
parent
7790d98c66
commit
dc92dc0b69
2 changed files with 18 additions and 0 deletions
|
@ -194,6 +194,12 @@ async function messageToEvent(message, guild, options = {}, di) {
|
|||
html = "* " + html
|
||||
}
|
||||
|
||||
const flags = message.flags || 0
|
||||
if (flags & 2) {
|
||||
body = `[🔀 ${message.author.username}]\n` + body
|
||||
html = `🔀 <strong>${message.author.username}</strong><br>` + html
|
||||
}
|
||||
|
||||
// Fallback body/formatted_body for replies
|
||||
// This branch is optional - do NOT change anything apart from the reply fallback, since it may not be run
|
||||
if (repliedToEventRow && options.includeReplyFallback !== false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue