update to discord 0.8.0

This commit is contained in:
Adrian Malacoda 2017-05-09 19:50:33 -05:00
parent 21b312543b
commit 23e32f28fe
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ authors=["Adrian Malacoda <adrian.malacoda@monarch-pass.net>"]
[dependencies]
hlua = "0.3"
discord = "0.7.0"
discord = "0.8.0"
toml = "0.2.1"
crossbeam = "0.2"
rand = "0.3"

View File

@ -46,7 +46,7 @@ pub struct DiscordMessageSender {
impl MessageSender for DiscordMessageSender {
fn send_message (&self, message: &str) {
debug!("Send message to channel id {:?}: {:?}", self.channel_id, message);
match self.discord.send_message(&self.channel_id, message, "", false) {
match self.discord.send_message(self.channel_id, message, "", false) {
Ok(message) => { debug!("Send message succeeded: {:?}", message.id); },
Err(err) => { error!("Send message failed: {:?}", err) }
}