src/SlackDriver.php
private function getBotId()
    {
        $botUserRequest = $this->http->post('https://slack.com/api/users.info', [], [
            'user' => $this->botUserID,
            'token' => $this->config->get('token'),
        ]);
        $botUserPayload = (array) json_decode($botUserRequest->getContent(), true);

        if ($botUserPayload['user']['is_bot']) {
            $this->botID = $botUserPayload['user']['profile']['bot_id'];
        }
    }
private function getBotId()
    {
        $botUserRequest = $this->http->post('https://slack.com/api/users.info', [], [
            'user' => $this->botUserID,
            'token' => $this->config->get('token'),
        ]);
        $botUserPayload = (array) json_decode($botUserRequest->getContent(), true);

        if ($botUserPayload['user']['is_bot']) {
            $this->botID = $botUserPayload['user']['profile']['bot_id'];
        }
    }
private function getBotId ( ) { $ botUserRequest = $ this -> http -> post ( 'https://slack.com/api/users.info' , [ ] , [ 'user' => $ this -> botUserID , 'token' => $ this -> config -> get ( 'token' ) , ] ) ; $ botUserPayload = ( array ) json_decode ( $ botUserRequest -> getContent ( ) , true ) ; if ( $ botUserPayload [ 'user' ] [ 'is_bot' ] ) { $ this -> botID = $ botUserPayload [ 'user' ] [ 'profile' ] [ 'bot_id' ] ; } }
Get bot ID.
Get bot ID .