summary refs log tree commit diff
path: root/src/models/Guild.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-05 21:55:07 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-05 21:55:07 +0100
commit9b7f4e2b66bd978c3903b352ee1811e80848a24a (patch)
tree4f537890f27f44b95d7057e41ae3c32be08a1791 /src/models/Guild.ts
parent:bug: make default options optional (diff)
downloadserver-9b7f4e2b66bd978c3903b352ee1811e80848a24a.tar.xz
Move Models/Schemas to server-util
Diffstat (limited to 'src/models/Guild.ts')
-rw-r--r--src/models/Guild.ts53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/models/Guild.ts b/src/models/Guild.ts
new file mode 100644

index 00000000..3d84a9c8 --- /dev/null +++ b/src/models/Guild.ts
@@ -0,0 +1,53 @@ +import { Channel } from "./Channel"; +import { Emoji } from "./Emoji"; +import { Member } from "./Member"; +import { Role } from "./Role"; + +export interface Guild { + id: bigint; + name: string; + icon: string; + icon_hash: string; + splash: string; + discovery_splash: string; + owner: boolean; + owner_id: bigint; + permissions: string; + region: string; + afk_channel_id: bigint; + afk_timeout: number; + widget_enabled: boolean; + widget_channel_id: bigint; + verification_level: number; + default_message_notifications: number; + explicit_content_filter: number; + roles: Role[]; + emojis: Emoji[]; + features: []; + mfa_level: number; + application_id: bigint; + system_channel_id: bigint; + system_channel_flags: number; + rules_channel_id: bigint; + joined_at: number; + large: boolean; + unavailable: boolean; + member_count: number; + voice_states: []; // ! tf is this + members: Member[]; + channels: Channel[]; + presences: []; // TODO: add model + max_presences: number; + max_members: number; + vanity_url_code: string; + description: string; + banner: string; + premium_tier: number; + premium_subscription_count: number; + preferred_locale: string; + public_updates_channel_id: bigint; + max_video_channel_users: number; + approximate_member_count: number; + approximate_presence_count: number; + welcome_screen: []; // ! what is this +}