mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
29 lines
545 B
TypeScript
29 lines
545 B
TypeScript
import { Category } from './category'
|
|
import { PresentableRole, Permissions } from './role'
|
|
|
|
export declare type ServerSlug = {
|
|
id: string,
|
|
name: string,
|
|
ownerID: string,
|
|
icon: string
|
|
}
|
|
|
|
export declare type ServerModel = {
|
|
id: string,
|
|
categories: {
|
|
[uuid: string]: Category
|
|
},
|
|
message: string
|
|
}
|
|
|
|
export declare type PresentableServer = ServerModel & {
|
|
id: string,
|
|
gm?: {
|
|
color?: number | string,
|
|
nickname: string,
|
|
roles: string[]
|
|
},
|
|
server: ServerSlug,
|
|
roles?: PresentableRole[],
|
|
perms: Permissions
|
|
}
|