mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-20 21:50:10 +08:00
re: 移除 FetchUserProfileLike
This commit is contained in:
parent
57e72c197f
commit
e069e0e8aa
@ -1,17 +0,0 @@
|
|||||||
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
|
||||||
import { ActionName } from '@/onebot/action/router';
|
|
||||||
import { Type, Static } from '@sinclair/typebox';
|
|
||||||
|
|
||||||
const SchemaData = Type.Object({
|
|
||||||
user_id: Type.Union([Type.Number(), Type.String()]),
|
|
||||||
});
|
|
||||||
|
|
||||||
type Payload = Static<typeof SchemaData>;
|
|
||||||
|
|
||||||
export class FetchUserProfileLike extends OneBotAction<Payload, any> {
|
|
||||||
actionName = ActionName.FetchUserProfileLike;
|
|
||||||
payloadSchema = SchemaData;
|
|
||||||
async _handle(payload: Payload) {
|
|
||||||
return await this.core.apis.UserApi.getUidByUinV2(payload.user_id.toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -66,7 +66,6 @@ import SetGroupPortrait from './go-cqhttp/SetGroupPortrait';
|
|||||||
import { FetchCustomFace } from './extends/FetchCustomFace';
|
import { FetchCustomFace } from './extends/FetchCustomFace';
|
||||||
import GoCQHTTPUploadPrivateFile from './go-cqhttp/UploadPrivateFile';
|
import GoCQHTTPUploadPrivateFile from './go-cqhttp/UploadPrivateFile';
|
||||||
import { FetchEmojiLike } from './extends/FetchEmojiLike';
|
import { FetchEmojiLike } from './extends/FetchEmojiLike';
|
||||||
import { FetchUserProfileLike } from './extends/FetchUserProfileLike';
|
|
||||||
import { NapCatCore } from '@/core';
|
import { NapCatCore } from '@/core';
|
||||||
import { NapCatOneBot11Adapter } from '@/onebot';
|
import { NapCatOneBot11Adapter } from '@/onebot';
|
||||||
import { SetInputStatus } from './extends/SetInputStatus';
|
import { SetInputStatus } from './extends/SetInputStatus';
|
||||||
@ -205,8 +204,6 @@ export function createActionMap(obContext: NapCatOneBot11Adapter, core: NapCatCo
|
|||||||
new DeleteGroupFileFolder(obContext, core),
|
new DeleteGroupFileFolder(obContext, core),
|
||||||
new GetGroupFileSystemInfo(obContext, core),
|
new GetGroupFileSystemInfo(obContext, core),
|
||||||
new GetGroupFilesByFolder(obContext, core),
|
new GetGroupFilesByFolder(obContext, core),
|
||||||
new GetGroupSystemMsg(obContext, core),
|
|
||||||
new FetchUserProfileLike(obContext, core),
|
|
||||||
new GetPacketStatus(obContext, core),
|
new GetPacketStatus(obContext, core),
|
||||||
new GroupPoke(obContext, core),
|
new GroupPoke(obContext, core),
|
||||||
new FriendPoke(obContext, core),
|
new FriendPoke(obContext, core),
|
||||||
|
|||||||
@ -122,7 +122,6 @@ export const ActionName = {
|
|||||||
GetGroupInfoEx: 'get_group_info_ex',
|
GetGroupInfoEx: 'get_group_info_ex',
|
||||||
GetGroupIgnoreAddRequest: 'get_group_ignore_add_request',
|
GetGroupIgnoreAddRequest: 'get_group_ignore_add_request',
|
||||||
DelGroupNotice: '_del_group_notice',
|
DelGroupNotice: '_del_group_notice',
|
||||||
FetchUserProfileLike: 'fetch_user_profile_like',
|
|
||||||
FriendPoke: 'friend_poke',
|
FriendPoke: 'friend_poke',
|
||||||
GroupPoke: 'group_poke',
|
GroupPoke: 'group_poke',
|
||||||
GetPacketStatus: 'nc_get_packet_status',
|
GetPacketStatus: 'nc_get_packet_status',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user