src/Slack/Payload.php
private function setUsername()
    {
        if (!$this->slackConfig->getCustomUser()->hasUsername()) {
            return;
        }

        $this->payload['username'] = $this->slackConfig->getCustomUser()->getUsername();
    }
private function setUsername()
    {
        if (!$this->slackConfig->getCustomUser()->hasUsername()) {
            return;
        }

        $this->payload['username'] = $this->slackConfig->getCustomUser()->getUsername();
    }
private function setUsername ( ) { if ( ! $ this -> slackConfig -> getCustomUser ( ) -> hasUsername ( ) ) { return ; } $ this -> payload [ 'username' ] = $ this -> slackConfig -> getCustomUser ( ) -> getUsername ( ) ; }
Set a custom username if available.
Set a custom username if available .