aboutsummaryrefslogtreecommitdiff
path: root/lib/models/guild/guild_t.mli
blob: 0b1ec92970bdbeab9fab700405c18554db4dc916 (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
53
54
55
56
57
58
59
60
61
62
63
64
type unavailable = {
    id: Guild_id_t.t;
} [@@deriving sexp, yojson]

type pre = {
    id: Guild_id_t.t;
    name: string;
    icon: string option;
    splash: string option;
    owner_id: User_id_t.t;
    region: string;
    afk_channel_id: Channel_id_t.t option;
    afk_timeout: int;
    embed_enabled: bool option;
    embed_channel_id: Channel_id_t.t option;
    verification_level: int;
    default_message_notifications: int;
    explicit_content_filter: int;
    roles: Role_t.role list;
    emojis: Emoji.t list;
    features: string list;
    mfa_level: int;
    application_id: Snowflake.t option;
    widget_enabled: bool option;
    widget_channel: Channel_t.channel_wrapper option;
    system_channel: Channel_t.channel_wrapper option;
    large: bool;
    unavailable: bool;
    member_count: int option;
    members: Member_t.member list;
    channels: Channel_t.channel_wrapper list;
} [@@deriving sexp, yojson]

type t = {
    id: Guild_id_t.t;
    name: string;
    icon: string option;
    splash: string option;
    owner_id: User_id_t.t;
    region: string;
    afk_channel_id: Channel_id_t.t option;
    afk_timeout: int;
    embed_enabled: bool option;
    embed_channel_id: Channel_id_t.t option;
    verification_level: int;
    default_message_notifications: int;
    explicit_content_filter: int;
    roles: Role_t.t list;
    emojis: Emoji.t list;
    features: string list;
    mfa_level: int;
    application_id: Snowflake.t option;
    widget_enabled: bool option;
    widget_channel: Channel_t.t option;
    system_channel: Channel_t.t option;
    large: bool;
    unavailable: bool;
    member_count: int option;
    members: Member_t.t list;
    channels: Channel_t.t list;
} [@@deriving sexp, yojson]

val wrap : pre -> t
val get_id : t -> Snowflake.t