aboutsummaryrefslogtreecommitdiff
path: root/lib/models/gen/role.atd
blob: bfe6b13865f00f3ad9db723ccb6ff1776346d462 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
type snowflake <ocaml from="Snowflake" t="t"> = abstract

type role = {
    id: snowflake;
    name: string;
    colour <json name="color">: int;
    hoist: bool;
    position: int;
    permissions: int;
    managed: bool;
    mentionable: bool;
}

type role_update = {
    role: role;
    id: snowflake;
}

type t = {
    inherit role;
    guild_id: snowflake;
 }