update to 2.6.4 (build 432)

This commit is contained in:
crazywhalecc
2021-12-25 19:21:41 +08:00
parent 3ed1cb665a
commit 74050c46e7
10 changed files with 215 additions and 53 deletions

View File

@@ -80,6 +80,12 @@ trait CQAPI
return false;
}
public function getActionName($suffix, string $method) {
$postfix = ($suffix == OneBotV11::API_ASYNC ? '_async' : ($suffix == OneBotV11::API_RATE_LIMITED ? '_rate_limited' : ''));
$func_name = strtolower(preg_replace('/(?<=[a-z])([A-Z])/', '_$1', $method));
return $func_name . $postfix;
}
public function __call($name, $arguments) {
return false;
}