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;
|
: undefined;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: payload.subject,
|
title: payload.event
|
||||||
|
? `${payload.event}: ${payload.subject}`
|
||||||
|
: payload.subject,
|
||||||
url,
|
url,
|
||||||
description: payload.message,
|
description: payload.message,
|
||||||
color,
|
color,
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
author: payload.event
|
|
||||||
? {
|
|
||||||
name: payload.event,
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
fields,
|
fields,
|
||||||
thumbnail: embedPoster
|
thumbnail: embedPoster
|
||||||
? {
|
? {
|
||||||
|
|||||||
Reference in New Issue
Block a user