aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/model/channel/private_channel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/private_channel.rs b/src/model/channel/private_channel.rs
index 80a59bb..e97d948 100644
--- a/src/model/channel/private_channel.rs
+++ b/src/model/channel/private_channel.rs
@@ -219,7 +219,7 @@ impl PrivateChannel {
/// [`ChannelId`]: ../model/struct.ChannelId.html
/// [`ModelError::MessageTooLong`]: enum.ModelError.html#variant.MessageTooLong
#[inline]
- pub fn say(&self, content: &str) -> Result<Message> { self.id.say(content) }
+ pub fn say<D: ::std::fmt::Display>(&self, content: D) -> Result<Message> { self.id.say(content) }
/// Sends (a) file(s) along with optional message contents.
///