mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-16 05:10:34 +00:00
chore: 移除类型
This commit is contained in:
parent
2dd0907565
commit
90dddd10a9
@ -2,7 +2,7 @@ import log4js, { Configuration } from 'log4js';
|
|||||||
import { truncateString } from '@/common/utils/helper';
|
import { truncateString } from '@/common/utils/helper';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import { AtType, ChatType, ElementType, ElementWrapper, MessageElement, RawMessage, SelfInfo } from '@/core';
|
import { AtType, ChatType, ElementType, MessageElement, RawMessage, SelfInfo } from '@/core';
|
||||||
|
|
||||||
export enum LogLevel {
|
export enum LogLevel {
|
||||||
DEBUG = 'debug',
|
DEBUG = 'debug',
|
||||||
|
|||||||
@ -968,74 +968,3 @@ export interface RawMessage {
|
|||||||
|
|
||||||
elements: MessageElement[];
|
elements: MessageElement[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 并非原生接口类型,故以 type 包装
|
|
||||||
*/
|
|
||||||
export type ElementWrapper = {
|
|
||||||
elementId: string;
|
|
||||||
|
|
||||||
elementType: ElementType;
|
|
||||||
|
|
||||||
replyElement?: {
|
|
||||||
sourceMsgIdInRecords: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 源消息发送者 QQ 号
|
|
||||||
*/
|
|
||||||
senderUid: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 源消息是否有图片
|
|
||||||
*/
|
|
||||||
sourceMsgIsIncPic: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 源消息文本
|
|
||||||
*/
|
|
||||||
sourceMsgText: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 源消息的 msgSeq,可以通过这个找到源消息的 msgId
|
|
||||||
*/
|
|
||||||
replayMsgSeq: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
textElement?: {
|
|
||||||
atType: AtType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 被 @ 的 QQ 号
|
|
||||||
*/
|
|
||||||
atUid: string;
|
|
||||||
|
|
||||||
content: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 被 @ 的 UID(从这里可以看出来 UID 的概念是 NT 才引入的)
|
|
||||||
*/
|
|
||||||
atNtUid: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
picElement?: PicElement;
|
|
||||||
|
|
||||||
pttElement?: PttElement;
|
|
||||||
|
|
||||||
arkElement?: ArkElement;
|
|
||||||
|
|
||||||
grayTipElement?: GrayTipElement;
|
|
||||||
|
|
||||||
faceElement?: FaceElement;
|
|
||||||
|
|
||||||
videoElement?: VideoElement;
|
|
||||||
|
|
||||||
fileElement?: FileElement;
|
|
||||||
|
|
||||||
marketFaceElement?: MarketFaceElement;
|
|
||||||
|
|
||||||
inlineKeyboardElement?: InlineKeyboardElement;
|
|
||||||
|
|
||||||
markdownElement?: MarkdownElement;
|
|
||||||
|
|
||||||
multiForwardMsgElement?: MultiForwardMsgElement;
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user