summary refs log tree commit diff
path: root/src/models/Guild.ts
blob: 5140c6103736a6b60d945cde007f6f99edddf581 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Channel } from "./Channel";
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;
	channels: Channel[];
	default_message_notifications: number;
	description: string;
	discovery_splash: string;
	emojis: Emoji[];
	explicit_content_filter: number;
	features: [];
	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;
	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
	presences: []; // TODO: add model
	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;
	voice_states: []; // connected users
	welcome_screen: []; // welcome splash screen if a user joins guild
	widget_channel_id: bigint;
	widget_enabled: boolean;
}