src/Message/AttachmentBuilder.php
public function setAuthor($name, $link = null, $icon = null)
    {
        $this->data['author_name'] = $name;
        if ($link) {
            $this->data['author_link'] = $link;
        }
        if ($icon) {
            $this->data['author_icon'] = $icon;
        }

        return $this;
    }
public function setAuthor($name, $link = null, $icon = null)
    {
        $this->data['author_name'] = $name;
        if ($link) {
            $this->data['author_link'] = $link;
        }
        if ($icon) {
            $this->data['author_icon'] = $icon;
        }

        return $this;
    }
public function setAuthor ( $ name , $ link = null , $ icon = null ) { $ this -> data [ 'author_name' ] = $ name ; if ( $ link ) { $ this -> data [ 'author_link' ] = $ link ; } if ( $ icon ) { $ this -> data [ 'author_icon' ] = $ icon ; } return $ this ; }
Sets the message author.

@param string $name The author name.
@param string $link An optional URL that the author text should link to.
@param string $icon An optional URL to an image to show to the left of the author name.
@return $this
Sets the message author .