Slack\RealTimeClient::getBots PHP 메소드

getBots() 공개 메소드

Gets all bots in the Slack team.
public getBots ( ) : React\Promise\PromiseInterface
리턴 React\Promise\PromiseInterface A promise for an array of bots.
    public function getBots()
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }
        return Promise\resolve(array_values($this->bots));
    }