diff options
| author | Mishio595 <[email protected]> | 2018-11-25 16:02:37 -0700 |
|---|---|---|
| committer | Mishio595 <[email protected]> | 2018-11-25 16:02:37 -0700 |
| commit | 011e3224c0292dfcb0024daf474d4ef1e00b82f0 (patch) | |
| tree | a04caad1d49ee4092cfb3bb3506ad5dba85120a4 /lib/message.ml | |
| parent | Major structural changes (diff) | |
| download | disml-011e3224c0292dfcb0024daf474d4ef1e00b82f0.tar.xz disml-011e3224c0292dfcb0024daf474d4ef1e00b82f0.zip | |
A lot is going on...
Diffstat (limited to 'lib/message.ml')
| -rw-r--r-- | lib/message.ml | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/message.ml b/lib/message.ml deleted file mode 100644 index 5b632d7..0000000 --- a/lib/message.ml +++ /dev/null @@ -1,12 +0,0 @@ -type t = { - id: string; - content: string; - channel: string; -} - -let from_json term = - let module J = Yojson.Basic.Util in - let id = J.(member "id" term |> to_string) in - let content = J.(member "content" term |> to_string) in - let channel = J.(member "channel_id" term |> to_string) in - { id; content; channel; } |