NapCatQQ/packages/napcat-onebot/action/extends/GetClientkey.ts
2025-11-13 15:10:47 +08:00

15 lines
411 B
TypeScript

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