Skip to content

Commit c8eadd3

Browse files
ventiphecsousa
authored andcommitted
refactor(notifications): move event from author to title field in Discord Embed (seerr-team#2119)
1 parent a9a4fb8 commit c8eadd3

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

server/lib/notifications/agents/discord.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,13 @@ class DiscordAgent
214214
: undefined;
215215

216216
return {
217-
title: payload.subject,
217+
title: payload.event
218+
? `${payload.event}: ${payload.subject}`
219+
: payload.subject,
218220
url,
219221
description: payload.message,
220222
color,
221223
timestamp: new Date().toISOString(),
222-
author: payload.event
223-
? {
224-
name: payload.event,
225-
}
226-
: undefined,
227224
fields,
228225
thumbnail: embedPoster
229226
? {

0 commit comments

Comments
 (0)