feat: Message 정의를 좀더 상세히
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user