mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-09 13:03:37 +08:00
15 lines
411 B
TypeScript
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 };
|
|
}
|
|
}
|