Skip to content

Commit 4c7f7cd

Browse files
authored
Merge pull request #9 from jonnywilliamson/main
2 parents 0f6ce75 + 3736edb commit 4c7f7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Command/CommandRegisterCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function registerCommands(): void
5353
$botCommands = $handler->getCommands();
5454

5555
$commands = collect($botCommands)->map(static function ($command, $name) use ($handler): BotCommand {
56-
$command = $handler->getCommandBus()->resolveCommand($command);
56+
$command = $handler->getCommandBus()->resolveCommand($command)->setName($name);
5757

5858
return BotCommand::make([
5959
// Can contain only lowercase English letters, digits and underscores.

0 commit comments

Comments
 (0)