mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
fix: method signature of _handle
This commit is contained in:
@@ -8,7 +8,7 @@ interface ReturnType {
|
||||
export default class CanSendRecord extends BaseAction<any, ReturnType> {
|
||||
actionName = ActionName.CanSendRecord;
|
||||
|
||||
protected async _handle(_payload: void): Promise<ReturnType> {
|
||||
async _handle(_payload: void): Promise<ReturnType> {
|
||||
return {
|
||||
yes: true,
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ActionName } from '../types';
|
||||
class GetLoginInfo extends BaseAction<null, OB11User> {
|
||||
actionName = ActionName.GetLoginInfo;
|
||||
|
||||
protected async _handle(payload: null) {
|
||||
async _handle(payload: null) {
|
||||
return OB11Constructor.selfInfo(this.CoreContext.selfInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { ActionName } from '../types';
|
||||
export default class GetStatus extends BaseAction<any, any> {
|
||||
actionName = ActionName.GetStatus;
|
||||
|
||||
protected async _handle(payload: any): Promise<any> {
|
||||
async _handle(payload: any): Promise<any> {
|
||||
return {
|
||||
online: !!this.CoreContext.selfInfo.online,
|
||||
good: true,
|
||||
|
||||
@@ -5,7 +5,7 @@ import { napcat_version } from '@/common/framework/napcat';
|
||||
export default class GetVersionInfo extends BaseAction<any, any> {
|
||||
actionName = ActionName.GetVersionInfo;
|
||||
|
||||
protected async _handle(payload: any): Promise<any> {
|
||||
async _handle(payload: any): Promise<any> {
|
||||
return {
|
||||
app_name: 'NapCat.Onebot',
|
||||
protocol_version: 'v11',
|
||||
|
||||
Reference in New Issue
Block a user