diff options
Diffstat (limited to 'src/util.rs')
| -rw-r--r-- | src/util.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs index ca50157..77f2dd4 100644 --- a/src/util.rs +++ b/src/util.rs @@ -51,6 +51,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))?;
Ok(result.id)
}
|
