feat(wip): Chat.getInfo

This commit is contained in:
CrescentLeaf
2025-09-14 00:36:51 +08:00
parent 557234841d
commit ed494413fd
2 changed files with 8 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ export type CallMethod =
"User.setAvatar" |
"User.getMyInfo" |
"Chat.getInfo" |
"Chat.sendMessage" |
"Chat.getMessageHistory"

View File

@@ -6,6 +6,13 @@ export default class UserApi extends BaseApi {
return "Chat"
}
override onInit(): void {
this.registerEvent("Chat.getInfo", (args) => {
return {
code: 501,
msg: "未實現",
}
})
this.registerEvent("Chat.sendMessage", (args) => {
return {