aboutsummaryrefslogtreecommitdiff
path: root/lib/models/guild/guild_t.mli
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2019-01-21 09:08:47 -0700
committerAdelyn Breelove <[email protected]>2019-01-21 09:08:47 -0700
commitb6ad18b9795428c39292c15c712c7ce0ec0986c6 (patch)
tree5113f4bb480815ee316e847cca954060afc419af /lib/models/guild/guild_t.mli
parentfolder restructure (diff)
downloaddisml-b6ad18b9795428c39292c15c712c7ce0ec0986c6.tar.xz
disml-b6ad18b9795428c39292c15c712c7ce0ec0986c6.zip
finish making model signatures
Diffstat (limited to 'lib/models/guild/guild_t.mli')
-rw-r--r--lib/models/guild/guild_t.mli59
1 files changed, 59 insertions, 0 deletions
diff --git a/lib/models/guild/guild_t.mli b/lib/models/guild/guild_t.mli
new file mode 100644
index 0000000..6d9e4d3
--- /dev/null
+++ b/lib/models/guild/guild_t.mli
@@ -0,0 +1,59 @@
+type pre = {
+ id: Snowflake.t;
+ name: string;
+ icon: string option;
+ splash: string option;
+ owner_id: Snowflake.t;
+ region: string;
+ afk_channel_id: Snowflake.t option;
+ afk_timeout: int;
+ embed_enabled: bool option;
+ embed_channel_id: Snowflake.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: Snowflake.t;
+ name: string;
+ icon: string option;
+ splash: string option;
+ owner_id: Snowflake.t;
+ region: string;
+ afk_channel_id: Snowflake.t option;
+ afk_timeout: int;
+ embed_enabled: bool option;
+ embed_channel_id: Snowflake.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 \ No newline at end of file