diff options
| author | Adelyn Breedlove <[email protected]> | 2018-12-13 16:44:32 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2018-12-13 16:44:32 -0700 |
| commit | c6463e5ca9c557c7e8ecd05e71d37f237bc59da6 (patch) | |
| tree | df4b700a4c039e34bbee401250281a6c1814d4ca /lib/models/message.atd | |
| parent | Merge branch 'dev' of https://gitlab.com/Mishio595/disml into dev (diff) | |
| parent | Fix more dispatch issues (diff) | |
| download | disml-c6463e5ca9c557c7e8ecd05e71d37f237bc59da6.tar.xz disml-c6463e5ca9c557c7e8ecd05e71d37f237bc59da6.zip | |
Merge branch 'dev' of https://gitlab.com/Mishio595/disml into dev
Diffstat (limited to 'lib/models/message.atd')
| -rw-r--r-- | lib/models/message.atd | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/models/message.atd b/lib/models/message.atd new file mode 100644 index 0000000..1c90be9 --- /dev/null +++ b/lib/models/message.atd @@ -0,0 +1,30 @@ +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 partial_member <ocaml from="Member" t="partial_member"> = abstract +type role <ocaml from="Role" t="t"> = abstract +type attachment <ocaml from="Attachment" t="t"> = abstract +type embed <ocaml from="Embed" t="t"> = abstract +type reaction <ocaml from="Reaction" t="t"> = abstract + +type t = { + id: snowflake; + author: user; + channel_id: snowflake; + ?member: partial_member option; + ?guild_id: snowflake option; + content: string; + timestamp: string; + ?edited_timestamp: string option; + tts: bool; + mention_everyone: bool; + mentions: user list; + role_mentions: role list; + attachments: attachment list; + embeds: embed list; + reactions: reaction list; + ?nonce: snowflake option; + pinned: bool; + webhook_id: snowflake; + kind <json name="type">: int; +}
\ No newline at end of file |