feat: Message 정의를 좀더 상세히
This commit is contained in:
@@ -16,13 +16,22 @@ export type MsgTarget = {
|
|||||||
icon: string;
|
icon: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MsgActionType = 'scout' | 'noAggression' | 'cancelNA' | 'stopWar';
|
||||||
|
|
||||||
export type MsgItem = {
|
export type MsgItem = {
|
||||||
id: number;
|
id: number;
|
||||||
msgType: MsgType;
|
msgType: MsgType;
|
||||||
src: MsgTarget;
|
src: MsgTarget;
|
||||||
dest?: MsgTarget;
|
dest?: MsgTarget;
|
||||||
text: string;
|
text: string;
|
||||||
option: Record<string, string | number>;
|
option: {
|
||||||
|
action?: MsgActionType;
|
||||||
|
invalid?: boolean;
|
||||||
|
deletable?: boolean;
|
||||||
|
overwrite?: number[];
|
||||||
|
hide?: boolean;
|
||||||
|
silence?: boolean;
|
||||||
|
};
|
||||||
time: string;
|
time: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user