mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 04:32:35 +01:00
added missing optional types
This commit is contained in:
parent
16a01111b8
commit
def655c738
68
dist/models/Guild.d.ts
vendored
68
dist/models/Guild.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user