From ad4b84d4468a0aa78bd5b4e0c2430a93dc74f924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 11 May 2024 13:10:34 +0800 Subject: [PATCH] build: 1.3.2-beta3 --- CHANGELOG.md | 2 +- src/onebot11/action/extends/GetFriendCategory.ts | 4 ++-- src/onebot11/action/index.ts | 4 ++-- src/onebot11/action/types.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dd64f2d..ca4e6abf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,6 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361 * 重置Rkey获取机制,使用接口分发Rkey ## 新增与调整 -* 新增获取好友列表Api /get_friend_category +* 新增扩展获取好友分类列表 Api /get_friend_with_category 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) diff --git a/src/onebot11/action/extends/GetFriendCategory.ts b/src/onebot11/action/extends/GetFriendCategory.ts index 399552a1..35d0d63f 100644 --- a/src/onebot11/action/extends/GetFriendCategory.ts +++ b/src/onebot11/action/extends/GetFriendCategory.ts @@ -5,8 +5,8 @@ import BaseAction from '../BaseAction'; import { ActionName } from '../types'; import { buddyCategorType } from '@/core/entities/'; -export class GetFriendCategory extends BaseAction> { - actionName = ActionName.GetFriendCategory; +export class GetFriendWithCategory extends BaseAction> { + actionName = ActionName.GetFriendWithCategory; protected async _handle(payload: void) { return buddyCategory.data; diff --git a/src/onebot11/action/index.ts b/src/onebot11/action/index.ts index ea5c84b7..0eac336a 100644 --- a/src/onebot11/action/index.ts +++ b/src/onebot11/action/index.ts @@ -52,7 +52,7 @@ import { SetOnlineStatus } from './extends/SetOnlineStatus'; import { GetGroupNotice } from './group/GetGroupNotice'; import { GetGroupEssence } from './group/GetGroupEssence'; import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg'; -import { GetFriendCategory } from './extends/GetFriendCategory'; +import { GetFriendWithCategory } from './extends/GetFriendWithCategory'; export const actionHandlers = [ new GetFile(), @@ -95,7 +95,7 @@ export const actionHandlers = [ // new SetOnlineStatus(), new GetRobotUinRange(), - new GetFriendCategory(), + new GetFriendWithCategory(), //以下为go-cqhttp api new GetGroupNotice(), new GetGroupEssence(), diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index dc448a78..f60400ab 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -57,7 +57,7 @@ export enum ActionName { // 以下为扩展napcat扩展 GetRobotUinRange = 'get_robot_uin_range', SetOnlineStatus = 'set_online_status', - GetFriendCategory = 'get_friend_category', + GetFriendWithCategory = 'get_friend_with_category', // 以下为go-cqhttp api GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list', GoCQHTTP_SetGroupNotice = '_send_group_notice',