feat: add get_clientkey

This commit is contained in:
JerryZRF committed 2024-12-21 20:43:15 +08:00
1 parent fb1f122ef7
commit 2954776539
3 files changed
+131 -111

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { ActionName } from '@/onebot/action/router';
import { OneBotAction } from '../OneBotAction';
interface GetClientkeyResponse {
clientkey?: string;
}
export class GetClientkey extends OneBotAction<void, GetClientkeyResponse> {
actionName = ActionName.GetClientkey;
async _handle() {
return { clientkey: (await this.core.apis.UserApi.forceFetchClientKey()).clientKey };
}
}