Closed Jeroen-G closed 5 years ago
This PR adds the option to show buttons, called actions, under attachments in Slack notifications.
Slack API: https://api.slack.com/docs/message-attachments#action_fields
How it could look:
How this would look in the notification class:
public function toSlack($notifiable): SlackMessage { return (new SlackMessage()) ->error() ->attachment(function (SlackAttachment $attachment) { $attachment ->title('🚨 '.$this->site->name.' lijkt offline.') ->content('URL: '.$this->url) ->action('🔎 Monitor openen', url('/')); }); }
This doesn't support the "style" setting?
Now it does 😄
This PR adds the option to show buttons, called actions, under attachments in Slack notifications.
Slack API: https://api.slack.com/docs/message-attachments#action_fields
How it could look:
How this would look in the notification class: