From 1a73007b3aaa17940173eaff1eb4f6703fd9ec0c Mon Sep 17 00:00:00 2001 From: Adelyn Breelove Date: Wed, 19 Dec 2018 13:44:04 -0700 Subject: Re-arrange autogen serialization files and incorporate into dune file --- lib/message.atd | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/message.atd (limited to 'lib/message.atd') diff --git a/lib/message.atd b/lib/message.atd new file mode 100644 index 0000000..8611f6a --- /dev/null +++ b/lib/message.atd @@ -0,0 +1,29 @@ +type snowflake = abstract +type user = abstract +type member = abstract +type partial_member = abstract +type attachment = abstract +type embed = abstract +type reaction = 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: snowflake list; + ?role_mentions: snowflake list option; + attachments: attachment list; + embeds: embed list; + ?reactions: snowflake list option; + ?nonce: snowflake option; + pinned: bool; + ?webhook_id: snowflake option; + kind : int; +} \ No newline at end of file -- cgit v1.2.3