mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-30 21:49:04 +08:00
15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
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 };
|
|
}
|
|
}
|