15 lines
397 B
TypeScript
15 lines
397 B
TypeScript
import { OB11User } from '@/onebot';
|
|
import { OB11Entities } from '@/onebot/entities';
|
|
import BaseAction from '../BaseAction';
|
|
import { ActionName } from '../types';
|
|
|
|
class GetLoginInfo extends BaseAction<null, OB11User> {
|
|
actionName = ActionName.GetLoginInfo;
|
|
|
|
async _handle(payload: null) {
|
|
return OB11Entities.selfInfo(this.core.selfInfo);
|
|
}
|
|
}
|
|
|
|
export default GetLoginInfo;
|