aboutsummaryrefslogtreecommitdiff
path: root/lib/models/gen/guild.atd
blob: 3bb40d9261eb5d747ab0b8f473ccc51a0eb85e86 (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
type snowflake <ocaml from="Snowflake" t="t"> = abstract
type user <ocaml from="User" t="t"> = abstract
type member <ocaml from="Member" t="t"> = abstract
type role <ocaml from="Role" t="t"> = abstract
type channel <ocaml from="Channel" t="t"> = abstract
type emoji <ocaml from="Emoji" t="t"> = abstract


type t = {
    id: snowflake;
    name: string;
    ?icon: string option;
    ?splash: string option;
    owner_id: snowflake;
    region: string;
    ?afk_channel_id: snowflake option;
    afk_timeout: int;
    ?embed_enabled: bool option;
    ?embed_channel_id: snowflake option;
    verification_level: int;
    default_message_notifications: int;
    explicit_content_filter: int;
    roles: role list;
    emojis: emoji list;
    features: string list;
    mfa_level: int;
    ?application_id: snowflake option;
    ?widget_enabled: bool option;
    ?widget_channel: channel option;
    ?system_channel: channel option;
    ?large: bool option;
    ?unavailable: bool option;
    ?member_count: int option;
    ~members: member list;
    ~channels: channel list;
}