function setAuthor($name, string $iconurl = '', string $url = '') {
        $name = (string) $name;
        
        if(\mb_strlen($name) > 256) {
            throw new \InvalidArgumentException('Author name can not be longer than 256 characters.');
        }
        
        $this->author = array(
            'name' => $name,
            'icon_url' => $iconurl,
            'url' => $url
        );
        
        return $this;
    }
function setAuthor($name, string $iconurl = '', string $url = '') {
        $name = (string) $name;
        
        if(\mb_strlen($name) > 256) {
            throw new \InvalidArgumentException('Author name can not be longer than 256 characters.');
        }
        
        $this->author = array(
            'name' => $name,
            'icon_url' => $iconurl,
            'url' => $url
        );
        
        return $this;
    }
function setAuthor ( $ name , string $ iconurl = '' , string $ url = '' ) { $ name = ( string ) $ name ; if ( \ mb_strlen ( $ name ) > 256 ) { throw new \ InvalidArgumentException ( 'Author name can not be longer than 256 characters.' ) ; } $ this -> author = array ( 'name' => $ name , 'icon_url' => $ iconurl , 'url' => $ url ) ; return $ this ; }
Set the author of this embed.
@param string  $name      Maximum length is 256 characters.
@param string  $iconurl   The URL to the icon.
@param string  $url       The URL to the author.
@return $this
@throws \InvalidArgumentException
Set the author of this embed .