src/Client.php
private function getAttachmentsAsArrays(Message $message): array
    {
        $attachments = [];

        foreach ($message->getAttachments() as $attachment) {
            $attachments[] = $attachment->toArray();
        }

        return $attachments;
    }
private function getAttachmentsAsArrays(Message $message): array
    {
        $attachments = [];

        foreach ($message->getAttachments() as $attachment) {
            $attachments[] = $attachment->toArray();
        }

        return $attachments;
    }
private function getAttachmentsAsArrays ( Message $ message ) : array { $ attachments = [ ] ; foreach ( $ message -> getAttachments ( ) as $ attachment ) { $ attachments [ ] = $ attachment -> toArray ( ) ; } return $ attachments ; }
Get the attachments in array form.

@param \Nexy\Slack\Message $message

@return array
Get the attachments in array form .