aboutsummaryrefslogtreecommitdiff
path: root/src/client/dispatch.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-15 09:34:45 -0800
committerAustin Hellyer <[email protected]>2016-11-15 09:34:45 -0800
commit08721763df212cd46b4226d535da00fad9dc10e7 (patch)
treebbf65b7542d2b3f26f1f9cf2c2c90b3813e83524 /src/client/dispatch.rs
parentFeature-gate voice example (diff)
downloadserenity-08721763df212cd46b4226d535da00fad9dc10e7.tar.xz
serenity-08721763df212cd46b4226d535da00fad9dc10e7.zip
Add a message builder for Context::send_message
Add a message builder to `send_message`. Often only one field - i.e. `content` - needs to be specified, and the rest can be ignored. This is a preliminary patch to add rich embed support to messages. This message builder is used via: ```rust // assuming in a context with a `channel_id` bound context.send_message(channel_id, |m| m .content("TTS ping!") .tts(true)); ```
Diffstat (limited to 'src/client/dispatch.rs')
-rw-r--r--src/client/dispatch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs
index 985f03e..6295bc9 100644
--- a/src/client/dispatch.rs
+++ b/src/client/dispatch.rs
@@ -1,5 +1,5 @@
use std::sync::{Arc, Mutex};
-use std::{mem, thread};
+use std::thread;
use super::event_store::EventStore;
use super::login_type::LoginType;
use super::{STATE, Connection, Context};