Skip to content

Commit f06450e

Browse files
committed
Add extra details to discord webhook
1 parent 96718ec commit f06450e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

include/plugins/Discord-Webhook/discord.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,21 @@ private function createJsonMessage($ticket, $type = null)
260260
"name" => "Ticket Type",
261261
"value" => $ticket->getHelpTopic(),
262262
"inline" => true
263+
],
264+
[
265+
"name" => "Status",
266+
"value" => $ticket->getStatus(),
267+
"inline" => true
268+
],
269+
[
270+
"name" => "Status",
271+
"value" => $ticket->getStatus(),
272+
"inline" => false
273+
],
274+
[
275+
"name" => "Message",
276+
"value" => $ticket->getLastMessage()->getBody(),
277+
"inline" => false
263278
]
264279
// Etc..
265280
],

0 commit comments

Comments
 (0)