diff options
| author | Adelyn Breedlove <[email protected]> | 2019-01-20 21:10:03 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-01-20 21:10:03 -0700 |
| commit | 8cc616e0878d9209c383b15863998ce975da4425 (patch) | |
| tree | 08389f16a387dedda52e0ab0da5229ae522d5729 /bin/bot.ml | |
| parent | more updates (diff) | |
| download | disml-8cc616e0878d9209c383b15863998ce975da4425.tar.xz disml-8cc616e0878d9209c383b15863998ce975da4425.zip | |
Add embed builders
Diffstat (limited to 'bin/bot.ml')
| -rw-r--r-- | bin/bot.ml | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -30,7 +30,12 @@ let check_command (msg:Message.t) = |> Int.to_string in Message.reply msg list >>> ignore | "!embed" -> - let embed = { Embed.default with description = Some "Hello World!" } in + let embed = Embed.(default + |> title "Foo" + |> description "Bar" + |> colour 0xff + |> field { name = "field"; value = "test"; inline = true; } + ) in Message.reply_with ~embed msg >>> ignore | _ -> () |