added missing optional types
2 files changed, 67 insertions, 70 deletions
diff --git a/dist/models/Guild.d.ts b/dist/models/Guild.d.ts
index a4451c85..ff038f76 100644
--- a/dist/models/Guild.d.ts
+++ b/dist/models/Guild.d.ts
@@ -3,49 +3,47 @@ import { Emoji } from "./Emoji";
import { Member } from "./Member";
import { Role } from "./Role";
export interface Guild {
- afk_channel_id: bigint;
- afk_timeout: number;
- application_id: bigint;
- approximate_member_count: number;
- approximate_presence_count: number;
- banner: string;
+ 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;
- description: string;
- discovery_splash: string;
+ default_message_notifications?: number;
+ description?: string;
+ discovery_splash?: string;
emojis: Emoji[];
- explicit_content_filter: number;
+ explicit_content_filter?: number;
features: [];
- icon: string;
+ icon?: string;
id: bigint;
- joined_at: number;
- large: boolean;
- max_members: number;
- max_presences: number;
- max_video_channel_users: number;
- member_count: number;
- members: Member[];
- mfa_level: number;
+ large?: boolean;
+ max_members?: number;
+ max_presences?: number;
+ max_video_channel_users?: number;
+ member_count?: number;
+ members?: Member[];
+ mfa_level?: number;
name: string;
owner_id: bigint;
- owner: boolean;
- permissions: string;
- preferred_locale: string;
- premium_subscription_count: number;
- premium_tier: number;
+ permissions?: string;
+ preferred_locale?: string;
+ premium_subscription_count?: number;
+ premium_tier?: number;
presences: [];
- public_updates_channel_id: bigint;
- region: string;
+ public_updates_channel_id?: bigint;
+ region?: string;
roles: Role[];
- rules_channel_id: bigint;
- splash: string;
- system_channel_flags: number;
- system_channel_id: bigint;
- unavailable: boolean;
- vanity_url_code: string;
- verification_level: number;
+ rules_channel_id?: bigint;
+ splash?: string;
+ system_channel_flags?: number;
+ system_channel_id?: bigint;
+ unavailable?: boolean;
+ vanity_url_code?: string;
+ verification_level?: number;
voice_states: [];
welcome_screen: [];
- widget_channel_id: bigint;
- widget_enabled: boolean;
+ widget_channel_id?: bigint;
+ widget_enabled?: boolean;
}
diff --git a/src/models/Guild.ts b/src/models/Guild.ts
index 5140c610..33ec9587 100644
--- a/src/models/Guild.ts
+++ b/src/models/Guild.ts
@@ -4,49 +4,48 @@ import { Member } from "./Member";
import { Role } from "./Role";
export interface Guild {
- afk_channel_id: bigint;
- afk_timeout: number;
- application_id: bigint;
- approximate_member_count: number;
- approximate_presence_count: number;
- banner: string;
+ 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;
- description: string;
- discovery_splash: string;
+ default_message_notifications?: number;
+ description?: string;
+ discovery_splash?: string;
emojis: Emoji[];
- explicit_content_filter: number;
+ explicit_content_filter?: number;
features: [];
- icon: string;
+ icon?: string;
id: bigint;
- joined_at: number; // ! member specific should be removed
- large: boolean;
- max_members: number; // e.g. default 100.000
- max_presences: number;
- max_video_channel_users: number; // ? default: 25, is this max 25 streaming or watching
- member_count: number;
- members: Member[];
- mfa_level: number;
+ // joined_at?: number; \n // owner?: boolean; // ! member specific should be removed
+ large?: boolean;
+ max_members?: number; // e.g. default 100.000
+ max_presences?: number;
+ max_video_channel_users?: number; // ? default: 25, is this max 25 streaming or watching
+ member_count?: number;
+ members?: Member[];
+ mfa_level?: number;
name: string;
owner_id: bigint;
- owner: boolean;
- permissions: string;
- preferred_locale: string; // only community guilds can choose this
- premium_subscription_count: number;
- premium_tier: number; // nitro boost level
+ permissions?: string;
+ preferred_locale?: string; // only community guilds can choose this
+ premium_subscription_count?: number;
+ premium_tier?: number; // nitro boost level
presences: []; // TODO: add model
- public_updates_channel_id: bigint;
- region: string;
+ public_updates_channel_id?: bigint;
+ region?: string;
roles: Role[];
- rules_channel_id: bigint;
- splash: string;
- system_channel_flags: number;
- system_channel_id: bigint;
- unavailable: boolean;
- vanity_url_code: string;
- verification_level: number;
+ rules_channel_id?: bigint;
+ splash?: string;
+ system_channel_flags?: number;
+ system_channel_id?: bigint;
+ unavailable?: boolean;
+ vanity_url_code?: string;
+ verification_level?: number;
voice_states: []; // connected users
welcome_screen: []; // welcome splash screen if a user joins guild
- widget_channel_id: bigint;
- widget_enabled: boolean;
+ widget_channel_id?: bigint;
+ widget_enabled?: boolean;
}
|