Skip to content

Commit

Permalink
Added fields on Slack Section block
Browse files Browse the repository at this point in the history
  • Loading branch information
birkof committed Mar 21, 2020
1 parent cc73b1e commit faad197
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -34,6 +34,19 @@ public function text(string $text, bool $markdown = true): self
return $this;
}

/**
* @return $this
*/
public function field(string $text, bool $markdown = true): self
{
$this->options['fields'][] = [
'type' => $markdown ? 'mrkdwn' : 'plain_text',
'text' => $text,
];

return $this;
}

/**
* @return $this
*/
Expand Down

0 comments on commit faad197

Please sign in to comment.