summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorxnacly <matteogropp@gmail.com>2021-02-09 19:29:26 +0100
committerxnacly <matteogropp@gmail.com>2021-02-09 19:29:26 +0100
commitdef655c738c5968af1722e5d32c5e8ec83327527 (patch)
treedb466ed70ab388ca657f495404348a5400c3bf4e /src
parentadded missing exports (guildschema) (diff)
downloadserver-def655c738c5968af1722e5d32c5e8ec83327527.tar.xz
added missing optional types
Diffstat (limited to 'src')
-rw-r--r--src/models/Guild.ts69
1 files changed, 34 insertions, 35 deletions
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; }