feat(shell): satori: implement field in resource Login

This commit is contained in:
Il Harper 2024-08-23 12:41:11 +08:00
parent 183bf7f911
commit ab26d18813
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC
3 changed files with 96 additions and 0 deletions

View File

@ -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

View File

@ -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(

View File

@ -159,6 +159,16 @@ export interface Login {
* 线
*/
status: LoginStatus
/**
*
*/
features: string[]
/**
*
*/
proxy_urls: string[]
}
export enum LoginStatus {