aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-02-25 09:25:02 -0800
committerZeyla Hellyer <[email protected]>2017-02-25 09:25:02 -0800
commitbad9ac3d28bb0417dedcdddf10cf764c08d1d6ae (patch)
tree61e9b21506b225fa5c5426a6ba32ab290400075c /src/utils
parentUpdate doctests for Context changes (diff)
downloadserenity-bad9ac3d28bb0417dedcdddf10cf764c08d1d6ae.tar.xz
serenity-bad9ac3d28bb0417dedcdddf10cf764c08d1d6ae.zip
Add missing send_file/send_message impls
Add the `send_file` method to: - `model::Channel` - `model::Group` - `model::GuildChannel` Add the `send_message` method to: - `model::Channel` Additionally, add more documentation for these with an example.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/builder/create_message.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/utils/builder/create_message.rs b/src/utils/builder/create_message.rs
index 90a1f65..b139d26 100644
--- a/src/utils/builder/create_message.rs
+++ b/src/utils/builder/create_message.rs
@@ -20,10 +20,17 @@ use super::CreateEmbed;
///
/// Sending a message with a content of `"test"` and applying text-to-speech:
///
-/// ```rust,ignore
-/// // assuming a `channel_id` has been bound
+/// ```rust,no_run
+/// use serenity::model::ChannelId;
///
-/// channel_id.say(|m| m.content("test").tts(true));
+/// let channel_id = ChannelId(7);
+///
+/// let _ = channel_id.send_message(|m| m
+/// .content("test")
+/// .tts(true)
+/// .embed(|e| e
+/// .title("This is an embed")
+/// .description("With a description")));
/// ```
///
/// [`Context::say`]: ../../client/struct.Context.html#method.say