aboutsummaryrefslogtreecommitdiff
path: root/lib/models/message.ml
diff options
context:
space:
mode:
authorMishio595 <[email protected]>2018-11-25 16:02:37 -0700
committerMishio595 <[email protected]>2018-11-25 16:02:37 -0700
commit011e3224c0292dfcb0024daf474d4ef1e00b82f0 (patch)
treea04caad1d49ee4092cfb3bb3506ad5dba85120a4 /lib/models/message.ml
parentMajor structural changes (diff)
downloaddisml-011e3224c0292dfcb0024daf474d4ef1e00b82f0.tar.xz
disml-011e3224c0292dfcb0024daf474d4ef1e00b82f0.zip
A lot is going on...
Diffstat (limited to 'lib/models/message.ml')
-rw-r--r--lib/models/message.ml21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/models/message.ml b/lib/models/message.ml
new file mode 100644
index 0000000..6c2e80d
--- /dev/null
+++ b/lib/models/message.ml
@@ -0,0 +1,21 @@
+type t = {
+ id: Snowflake.t;
+ author: User.t;
+ channel: Channel.t;
+ member: Member.t option;
+ guild: Guild.t option;
+ content: string;
+ timestamp: string;
+ edited_timestamp: string option;
+ tts: bool;
+ mention_everyone: bool;
+ mentions: User.t list;
+ role_mentions: Role.t list;
+ attachments: Attachment.t list;
+ embeds: Embed.t list;
+ reactions: Reaction.t list;
+ nonce: Snowflake.t option;
+ pinned: bool;
+ webhook_id: Snowflake.t;
+ kind: int;
+} \ No newline at end of file