feat: add file for storing types
This commit is contained in:
parent
358b950af4
commit
89cd8ec1bf
1 changed files with 54 additions and 0 deletions
54
types/interfaces.ts
Normal file
54
types/interfaces.ts
Normal file
|
@ -0,0 +1,54 @@
|
|||
export interface ChannelPermissionResponse {
|
||||
channel_uuid: string,
|
||||
role_uuid: string,
|
||||
permissions: number
|
||||
}
|
||||
|
||||
export interface RoleResponse {
|
||||
uuid: string,
|
||||
guild_uuid: string,
|
||||
name: string,
|
||||
color: number,
|
||||
position: number,
|
||||
permissions: number
|
||||
}
|
||||
|
||||
export interface GuildResponse {
|
||||
uuid: string,
|
||||
name: string,
|
||||
description: string | null,
|
||||
icon: string | null,
|
||||
owner_uuid: string,
|
||||
roles: [],
|
||||
member_count: number
|
||||
}
|
||||
|
||||
export interface ChannelResponse {
|
||||
uuid: string,
|
||||
guild_uuid: string,
|
||||
name: string,
|
||||
description: string,
|
||||
permissions: ChannelPermissionResponse[]
|
||||
}
|
||||
|
||||
export interface MessageResponse {
|
||||
uuid: string
|
||||
channel_uuid: string
|
||||
user_uuid: string
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface InviteResponse {
|
||||
id: string,
|
||||
user_uuid: string,
|
||||
guild_uuid: string
|
||||
}
|
||||
|
||||
export interface UserResponse {
|
||||
uuid: string,
|
||||
username: string,
|
||||
display_name: string | null,
|
||||
avatar: string | null,
|
||||
email: string,
|
||||
email_verified: boolean
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue