We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f6ce75 + 3736edb commit 4c7f7cdCopy full SHA for 4c7f7cd
src/Console/Command/CommandRegisterCommand.php
@@ -53,7 +53,7 @@ protected function registerCommands(): void
53
$botCommands = $handler->getCommands();
54
55
$commands = collect($botCommands)->map(static function ($command, $name) use ($handler): BotCommand {
56
- $command = $handler->getCommandBus()->resolveCommand($command);
+ $command = $handler->getCommandBus()->resolveCommand($command)->setName($name);
57
58
return BotCommand::make([
59
// Can contain only lowercase English letters, digits and underscores.
0 commit comments