refactor(notifications): move event from author to title field in Discord Embed (#2119)
This commit is contained in:
@@ -214,16 +214,13 @@ class DiscordAgent
|
||||
: undefined;
|
||||
|
||||
return {
|
||||
title: payload.subject,
|
||||
title: payload.event
|
||||
? `${payload.event}: ${payload.subject}`
|
||||
: payload.subject,
|
||||
url,
|
||||
description: payload.message,
|
||||
color,
|
||||
timestamp: new Date().toISOString(),
|
||||
author: payload.event
|
||||
? {
|
||||
name: payload.event,
|
||||
}
|
||||
: undefined,
|
||||
fields,
|
||||
thumbnail: embedPoster
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user