mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-18 14:15:34 +08:00
add plugin loader support
This commit is contained in:
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace ZM\Annotation\OneBot;
|
||||
|
||||
use Attribute;
|
||||
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
|
||||
use Doctrine\Common\Annotations\Annotation\Target;
|
||||
use ZM\Annotation\AnnotationBase;
|
||||
@@ -114,6 +113,12 @@ class BotCommand extends AnnotationBase implements Level
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function withArgumentObject(CommandArgument $argument): BotCommand
|
||||
{
|
||||
$this->arguments[] = $argument;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLevel(): int
|
||||
{
|
||||
return $this->level;
|
||||
|
||||
Reference in New Issue
Block a user