fix(event): fix message.id field in guild events

This commit is contained in:
Il Harper 2024-09-22 18:47:33 +08:00
parent 00c4688386
commit 36cc8f89ea
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -79,11 +79,10 @@ export class GuildRequestDispatchMessage implements SatoriDispatchMessage {
avatar: `http://thirdqq.qlogo.cn/headimg_dl?dst_uin=${this.uin}&spec=640`, avatar: `http://thirdqq.qlogo.cn/headimg_dl?dst_uin=${this.uin}&spec=640`,
}, },
member: { member: {},
},
message: { message: {
id: undefined as unknown as string, id: '',
content: this.notify.postscript, content: this.notify.postscript,
}, },
} }
@ -129,11 +128,10 @@ export class GuildMemberRequestDispatchMessage
avatar: `http://thirdqq.qlogo.cn/headimg_dl?dst_uin=${this.uin}&spec=640`, avatar: `http://thirdqq.qlogo.cn/headimg_dl?dst_uin=${this.uin}&spec=640`,
}, },
member: { member: {},
},
message: { message: {
id: undefined as unknown as string, id: '',
content: this.notify.postscript, content: this.notify.postscript,
}, },
} }
@ -179,11 +177,10 @@ export class GuildMemberRemovedDispatchMessage
avatar: `http://thirdqq.qlogo.cn/headimg_dl?dst_uin=${this.uin}&spec=640`, avatar: `http://thirdqq.qlogo.cn/headimg_dl?dst_uin=${this.uin}&spec=640`,
}, },
member: { member: {},
},
message: { message: {
id: undefined as unknown as string, id: '',
content: this.notify.postscript, content: this.notify.postscript,
}, },
} }