fix models + move schemas in api and gateway

This commit is contained in:
Flam3rboy
2021-02-10 20:59:58 +01:00
parent b2e3df59d3
commit 3d54ed4762
84 changed files with 1243 additions and 193 deletions
+1
View File
@@ -1,6 +1,7 @@
export interface Event {
guild_id?: bigint;
user_id?: bigint;
channel_id?: bigint;
created_at: number;
data: any;
event: string;
+1 -3
View File
@@ -7,8 +7,6 @@ export interface Guild {
afk_channel_id?: bigint;
afk_timeout?: number;
application_id?: bigint;
approximate_member_count?: number;
approximate_presence_count?: number;
banner?: string;
channels: Channel[];
default_message_notifications?: number;
@@ -25,11 +23,11 @@ export interface Guild {
max_presences?: number;
max_video_channel_users?: number; // ? default: 25, is this max 25 streaming or watching
member_count?: number;
presence_count?: number; // users online
members?: Member[];
mfa_level?: number;
name: string;
owner_id: bigint;
permissions?: string;
preferred_locale?: string; // only community guilds can choose this
premium_subscription_count?: number;
premium_tier?: number; // nitro boost level
+4
View File
@@ -1,4 +1,5 @@
export interface Role {
id: bigint;
color: number;
hoist: boolean;
managed: boolean;
@@ -6,4 +7,7 @@ export interface Role {
name: string;
permissions: bigint;
position: number;
tags?: {
bot_id?: bigint;
};
}