refactor: type

This commit is contained in:
手瓜一十雪 committed 2024-11-21 10:36:08 +08:00
1 parent 8a5e5bce4e
commit ef5ea29d5d
8 files changed
+591 -656

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ import {
GroupFileExtra
} from "@/core/packet/transformer/proto";
import {
AtType,
NTMsgAtType,
PicType,
SendArkElement,
SendFaceElement,
@@ -82,7 +82,7 @@ export class PacketMsgAtElement extends PacketMsgTextElement {
constructor(element: SendTextElement) {
super(element);
this.targetUid = element.textElement.atNtUid;
this.atAll = element.textElement.atType === AtType.atAll;
this.atAll = element.textElement.atType === NTMsgAtType.ATTYPEALL;
}
buildElement(): NapProtoEncodeStructType<typeof Elem>[] {