setDefaultIcon() public method

Set the default icon messages will be created with.
public setDefaultIcon ( string $icon ) : void
$icon string
return void
 /**
  * @param \Maknz\Slack\Client $client
  * @param Repository          $config
  */
 public function __construct(Client $client, Repository $config)
 {
     $this->config = $config->get('server-monitor.notifications.slack');
     $client->setDefaultUsername($this->config['username']);
     $client->setDefaultIcon($this->config['icon']);
     $this->client = $client;
 }
 /**
  * Set the default icon messages will be created with
  *
  * @param string $icon
  * @return void 
  * @static 
  */
 public static function setDefaultIcon($icon)
 {
     \Maknz\Slack\Client::setDefaultIcon($icon);
 }