refactor: raw message parsers
This commit is contained in:
1 parent
e3ca5df713
commit
2a7f8d0c99
4 files changed
+375
-401
No files matched your search
@@ -94,7 +94,7 @@ export interface OB11MessageImage extends OB11MessageFileBase {
|
||||
type: OB11MessageDataType.image
|
||||
data: OB11MessageFileBase['data'] & {
|
||||
summary?: string; // 图片摘要
|
||||
subType?: PicSubType
|
||||
sub_type?: PicSubType
|
||||
},
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ export interface OB11MessageVideo extends OB11MessageFileBase {
|
||||
export interface OB11MessageAt {
|
||||
type: OB11MessageDataType.at;
|
||||
data: {
|
||||
qq: `${number}` | 'all'
|
||||
qq: string, // `${number}` | 'all'
|
||||
name?: string
|
||||
};
|
||||
}
|
||||
@@ -162,14 +162,14 @@ export interface OB11MessageJson {
|
||||
export interface OB11MessageDice {
|
||||
type: OB11MessageDataType.dice,
|
||||
data: {
|
||||
result: number
|
||||
result: number /* intended */ | string /* in fact */
|
||||
}
|
||||
}
|
||||
|
||||
export interface OB11MessageRPS {
|
||||
type: OB11MessageDataType.RPS,
|
||||
data: {
|
||||
result: number
|
||||
result: number | string
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user