mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
chore: improve code quality
chore: improve code quality
This commit is contained in:
@@ -21,10 +21,10 @@ export class GetFriendList extends BaseAction<Payload, OB11User[]> {
|
||||
}
|
||||
|
||||
// extend
|
||||
export class GetFriendWithCategory extends BaseAction<void, any> {
|
||||
export class GetFriendWithCategory extends BaseAction<void, OB11User[]> {
|
||||
actionName = ActionName.GetFriendsWithCategory
|
||||
|
||||
protected async _handle(payload: void) {
|
||||
protected async _handle() {
|
||||
if (getBuildVersion() >= 26702) {
|
||||
//全新逻辑
|
||||
return OB11Entities.friendsV2(await this.ctx.ntFriendApi.getBuddyV2ExWithCate(true))
|
||||
|
Reference in New Issue
Block a user