feat: Message 정의를 좀더 상세히

This commit is contained in:
2023-03-09 02:15:42 +09:00
parent 0081c86d1e
commit 6a4fa8ee0d
+10 -1
View File
@@ -16,13 +16,22 @@ export type MsgTarget = {
icon: string;
};
export type MsgActionType = 'scout' | 'noAggression' | 'cancelNA' | 'stopWar';
export type MsgItem = {
id: number;
msgType: MsgType;
src: MsgTarget;
dest?: MsgTarget;
text: string;
option: Record<string, string | number>;
option: {
action?: MsgActionType;
invalid?: boolean;
deletable?: boolean;
overwrite?: number[];
hide?: boolean;
silence?: boolean;
};
time: string;
};