Skip to content

getBotUserId() returns NULL #52

@bohemianoid

Description

@bohemianoid

When I call the getBotUserId() function, I do not get back the bot user ID but NULL.

Reproduction steps

<?php

use BotMan\BotMan\BotMan;
use BotMan\BotMan\BotManFactory;
use BotMan\BotMan\Drivers\DriverManager;

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../source/config.php';

DriverManager::loadDriver(\BotMan\Drivers\Slack\SlackDriver::class);

$botman = BotManFactory::create($config);

$botman->loadDriver('Slack');
$botUserId = $botman->getDriver()->getBotUserId();

echo $botUserId;
echo gettype($botUserId);

PHP: 7.1.33
Botman: 2.5.0
Slack-Driver: 2.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions