diff options
| author | Nathan Perry <np@nathanperry.dev> | 2020-09-26 14:56:53 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2020-09-26 14:57:07 -0400 |
| commit | b5c6a0e5a65d13c639830296400ceb176f64c716 (patch) | |
| tree | 0198c24a204381da44807aa614162eb985d49512 /src/util.rs | |
| parent | b9a8db34b22c83ae1a4f5f446e54dc0d6be0bd40 (diff) | |
reorganize modules
Diffstat (limited to 'src/util.rs')
| -rw-r--r-- | src/util.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util.rs b/src/util.rs index 77f2dd4..e9b6203 100644 --- a/src/util.rs +++ b/src/util.rs @@ -8,9 +8,10 @@ use serenity::{ permissions::Permissions,
}
};
-use url::Url;
+use url::Url;
use lazy_static::lazy_static;
+use log::debug;
use crate::{
CONFIG,
@@ -52,8 +53,8 @@ impl CtxExt for Context { #[inline]
fn send_result<A: AsRef<str>>(&self, channel: ChannelId, text: A, tts: bool) -> Result<MessageId> {
let text = text.as_ref();
- debug!("sending message {:?} to channel {:?}", text, channel);
- let result = channel.send_message(self, |m| m.content(text.as_ref()).tts(tts))?;
+ debug!("sending message {:?} to channel {:?} (tts: {})", text, channel, tts);
+ let result = channel.send_message(self, |m| m.content(text).tts(tts))?;
Ok(result.id)
}
}
|
