Skip to content

Commit aca2f75

Browse files
committed
refactor: update handler type in ListCommand to InternalCommand
1 parent 5cd3c79 commit aca2f75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/ListCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Illuminate\Support\Collection;
99
use Illuminate\Support\Str;
1010
use SergiX44\Nutgram\Handlers\Handler;
11-
use SergiX44\Nutgram\Handlers\Type\Command as NutgramCommand;
11+
use SergiX44\Nutgram\Handlers\Type\InternalCommand;
1212
use SergiX44\Nutgram\Nutgram;
1313
use function Termwind\render;
1414

@@ -62,7 +62,7 @@ protected function getHandlers(Nutgram $bot): Collection
6262

6363
return collect(Arr::dot($handlers))
6464
->map(fn (Handler $handler, string $key) => [
65-
'handler' => $this->getHandlerName($key, $handler instanceof NutgramCommand),
65+
'handler' => $this->getHandlerName($key, $handler instanceof InternalCommand),
6666
'pattern' => $handler->getPattern(),
6767
'callable' => $this->getCallableName($handler),
6868
])

0 commit comments

Comments
 (0)