Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## 2025

### 09-02 v0.4.19

- [*] 部分情况下可能收不到 `role` 字段(合并转发中)
- [*] 修改 `Buffer` 类型的默认值

### 08-29 v0.4.18

- [*] 优化 `emit` 模拟触发事件的类型
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-napcat-ts",
"version": "0.4.18",
"version": "0.4.19",
"description": "napcat SDK for Node",
"license": "MIT",
"type": "module",
Expand Down
10 changes: 5 additions & 5 deletions src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export type GroupMessage = {
user_id: number
nickname: string
card: string
role: 'owner' | 'admin' | 'member'
role?: 'owner' | 'admin' | 'member'
}
raw_message: string
font: number
Expand Down Expand Up @@ -307,7 +307,7 @@ export type GroupMessageSelf = {
user_id: number
nickname: string
card: string
role: 'owner' | 'admin' | 'member'
role?: 'owner' | 'admin' | 'member'
}
raw_message: string
font: number
Expand Down Expand Up @@ -1036,7 +1036,7 @@ export type WSSendParam = {
}
}

type Buffer<T = string> = { [key: string]: T }
type Buffer<T = number> = { [key: string]: T }

export type WSSendReturn = {
// ontbot11
Expand Down Expand Up @@ -1962,7 +1962,7 @@ export type WSSendReturn = {
nick: string
}
shareTemplateId: string
shareTemplateData: Buffer<unknown>
shareTemplateData: Buffer
showLittleTail: string
gamePoints: string
gamePointsUrl: string
Expand Down Expand Up @@ -1993,7 +1993,7 @@ export type WSSendReturn = {
nick: string
}
shareTemplateId: string
shareTemplateData: Buffer<unknown>
shareTemplateData: Buffer
showLittleTail: string
gamePoints: string
gamePointsUrl: string
Expand Down