ÂCommand: fixed inconsistent API method name

This commit is contained in:
Dylan K. Taylor
2023-03-02 15:09:52 +00:00
parent 407b78de3b
commit 948aa059c3
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ class SimpleCommandMap implements CommandMap{
}
public function register(string $fallbackPrefix, Command $command, ?string $label = null) : bool{
if(count($command->getPermission()) === 0){
if(count($command->getPermissions()) === 0){
throw new \InvalidArgumentException("Commands must have a permission set");
}