diff --git a/packages/engine-chronocat-api/src/api/login/get.ts b/packages/engine-chronocat-api/src/api/login/get.ts index 5148948..e5f0c82 100644 --- a/packages/engine-chronocat-api/src/api/login/get.ts +++ b/packages/engine-chronocat-api/src/api/login/get.ts @@ -11,6 +11,49 @@ export const buildLoginGet = (ctx: ChronocatContext) => async () => { self_id: authData.uin, platform: ctx.chronocat.platform, status: 1, // LoginStatus.ONLINE, + features: [ + 'channel.get', + 'channel.list', + 'channel.create', + 'channel.update', + 'channel.delete', + 'unsafe.channel.mute', + 'unsafe.channel.member.mute', + 'user.channel.create', + 'guild.get', + 'guild.list', + 'guild.approve', + 'unsafe.guild.remove', + 'guild.member.get', + 'guild.member.list', + 'guild.member.kick', + 'guild.member.approve', + 'guild.member.mute', + 'guild.member.role.set', + 'guild.member.role.unset', + 'chronocat.guild.member.title.set', + 'guild.role.list', + 'guild.role.create', + 'guild.role.update', + 'guild.role.delete', + 'login.get', + 'message.create', + 'message.get', + 'message.delete', + 'message.update', + 'message.list', + 'reaction.create', + 'reaction.delete', + 'reaction.clear', + 'reaction.list', + 'user.get', + 'friend.list', + 'friend.approve', + 'unsafe.friend.remove', + 'chronocat.putongdejiekou1', + 'guild.plain', + ], + proxy_urls: [], } return result diff --git a/packages/shell/src/satori/server.ts b/packages/shell/src/satori/server.ts index ef0f289..6f8ef68 100644 --- a/packages/shell/src/satori/server.ts +++ b/packages/shell/src/satori/server.ts @@ -243,6 +243,49 @@ export const initSatoriServer = async ( self_id: uin, platform: PLATFORM, status: LoginStatus.ONLINE, + features: [ + 'channel.get', + 'channel.list', + 'channel.create', + 'channel.update', + 'channel.delete', + 'unsafe.channel.mute', + 'unsafe.channel.member.mute', + 'user.channel.create', + 'guild.get', + 'guild.list', + 'guild.approve', + 'unsafe.guild.remove', + 'guild.member.get', + 'guild.member.list', + 'guild.member.kick', + 'guild.member.approve', + 'guild.member.mute', + 'guild.member.role.set', + 'guild.member.role.unset', + 'chronocat.guild.member.title.set', + 'guild.role.list', + 'guild.role.create', + 'guild.role.update', + 'guild.role.delete', + 'login.get', + 'message.create', + 'message.get', + 'message.delete', + 'message.update', + 'message.list', + 'reaction.create', + 'reaction.delete', + 'reaction.clear', + 'reaction.list', + 'user.get', + 'friend.list', + 'friend.approve', + 'unsafe.friend.remove', + 'chronocat.putongdejiekou1', + 'guild.plain', + ], + proxy_urls: [], } ws.send( diff --git a/packages/shell/src/satori/types/satoriEntity.ts b/packages/shell/src/satori/types/satoriEntity.ts index 950d9d9..c951000 100644 --- a/packages/shell/src/satori/types/satoriEntity.ts +++ b/packages/shell/src/satori/types/satoriEntity.ts @@ -159,6 +159,16 @@ export interface Login { * 在线状态 */ status: LoginStatus + + /** + * 平台特性列表 + */ + features: string[] + + /** + * 代理路由列表 + */ + proxy_urls: string[] } export enum LoginStatus {