Skip to content

Commit faf9b43

Browse files
committed
Properly send the actions
1 parent 5378340 commit faf9b43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Notification.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ public function show(): self
8282
'event' => $this->event,
8383
'hasReply' => $this->hasReply,
8484
'replyPlaceholder' => $this->replyPlaceholder,
85-
'actions' => $this->actions,
85+
'actions' => array_map(fn(string $label) => [
86+
'type' => 'button',
87+
'text' => $label
88+
], $this->actions),
8689
]);
8790

8891
$this->reference = $response->json('reference');

0 commit comments

Comments
 (0)