slack-client icon indicating copy to clipboard operation
slack-client copied to clipboard

Add ability to use Markdown in attachments

Open Repox opened this issue 9 years ago • 0 comments

Addresses issue #30 (I created myself).

Usage:

$message = $client->getMessageBuilder()
            ->setText('')
            ->setChannel($channel)
            ->addAttachment(new Attachment('Title', 'This *is* _formatted_', 'danger, 'fallback', [], ['text', 'pretext', 'fields']))
            ->create();

Repox avatar Aug 25 '16 08:08 Repox