From b5c6a0e5a65d13c639830296400ceb176f64c716 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 26 Sep 2020 14:56:53 -0400 Subject: reorganize modules --- src/util.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/util.rs') 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>(&self, channel: ChannelId, text: A, tts: bool) -> Result { 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) } } -- cgit v1.3.1