Merge branch 'main' into improve-chat-look
This commit is contained in:
commit
014dff9c2d
6 changed files with 34 additions and 8 deletions
11
types/enums.ts
Normal file
11
types/enums.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
export const enum Permission {
|
||||
SendMessage = 1,
|
||||
ManageChannel = 2,
|
||||
ManageRole = 4,
|
||||
CreateInvite = 8,
|
||||
ManageInvite = 16,
|
||||
ManageGuild = 32,
|
||||
ManageMember = 64,
|
||||
BanMember = 128,
|
||||
KickMember = 256
|
||||
}
|
|
@ -19,16 +19,17 @@ export interface GuildResponse {
|
|||
description: string | null,
|
||||
icon: string | null,
|
||||
owner_uuid: string,
|
||||
roles: [],
|
||||
roles: RoleResponse[],
|
||||
member_count: number
|
||||
}
|
||||
|
||||
export interface GuildMemberResponse {
|
||||
uuid: string,
|
||||
nickname: string,
|
||||
user_uuid: string,
|
||||
guild_uuid: string,
|
||||
user: UserResponse
|
||||
is_owner: boolean,
|
||||
user: UserResponse,
|
||||
roles: RoleResponse[]
|
||||
}
|
||||
|
||||
export interface GuildMembersResponse {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue