Meta and refactor
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
export interface ClientMeta {
|
||||
displayName: string;
|
||||
avatar?: string;
|
||||
}
|
||||
|
||||
export interface ServerMeta {
|
||||
name: string;
|
||||
description: string;
|
||||
channels: Channel[];
|
||||
}
|
||||
|
||||
export interface MessageData {
|
||||
content: string;
|
||||
timestamp: number;
|
||||
signature: string;
|
||||
}
|
||||
|
||||
export interface StoredMessage extends MessageData {
|
||||
id: string;
|
||||
author: string;
|
||||
}
|
||||
|
||||
export type Channel = { id: string; name: string } & ChannelKind;
|
||||
|
||||
export type ChannelKind =
|
||||
{ kind: "text" } | { kind: "category"; channels: Channel[] };
|
||||
Reference in New Issue
Block a user