src/SlackRTMDriver.php
public function connected()
    {
        $this->client->getAuthedUser()->then(function ($user) {
            $this->botUserID = $user->getId();
            $data = $user->getRawUser();
            if (isset($data['is_bot']) && $data['is_bot']) {
                $this->bot_id = $data['profile']['bot_id'];
            }
        });
    }
public function connected()
    {
        $this->client->getAuthedUser()->then(function ($user) {
            $this->botUserID = $user->getId();
            $data = $user->getRawUser();
            if (isset($data['is_bot']) && $data['is_bot']) {
                $this->bot_id = $data['profile']['bot_id'];
            }
        });
    }
public function connected ( ) { $ this -> client -> getAuthedUser ( ) -> then ( function ( $ user ) { $ this -> botUserID = $ user -> getId ( ) ; $ data = $ user -> getRawUser ( ) ; if ( isset ( $ data [ 'is_bot' ] ) && $ data [ 'is_bot' ] ) { $ this -> bot_id = $ data [ 'profile' ] [ 'bot_id' ] ; } } ) ; }
Connected event.
Connected event .