src/SlackDriver.php
public function getBotUserId()
    {
        $botUserIdRequest = $this->http->post('https://slack.com/api/auth.test', [], [
            'token' => $this->config->get('token'),
        ]);
        $botUserIdPayload = new ParameterBag((array) json_decode($botUserIdRequest->getContent(), true));

        if ($botUserIdPayload->get('user_id')) {
            $this->botUserID = $botUserIdPayload->get('user_id');
            $this->getBotId();
        }
    }
public function getBotUserId()
    {
        $botUserIdRequest = $this->http->post('https://slack.com/api/auth.test', [], [
            'token' => $this->config->get('token'),
        ]);
        $botUserIdPayload = new ParameterBag((array) json_decode($botUserIdRequest->getContent(), true));

        if ($botUserIdPayload->get('user_id')) {
            $this->botUserID = $botUserIdPayload->get('user_id');
            $this->getBotId();
        }
    }
public function getBotUserId ( ) { $ botUserIdRequest = $ this -> http -> post ( 'https://slack.com/api/auth.test' , [ ] , [ 'token' => $ this -> config -> get ( 'token' ) , ] ) ; $ botUserIdPayload = new ParameterBag ( ( array ) json_decode ( $ botUserIdRequest -> getContent ( ) , true ) ) ; if ( $ botUserIdPayload -> get ( 'user_id' ) ) { $ this -> botUserID = $ botUserIdPayload -> get ( 'user_id' ) ; $ this -> getBotId ( ) ; } }
Get bot userID.
Get bot userID .