diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-04-30 04:03:33 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-04-30 04:03:33 -0400 |
| commit | 9f3a555c2801c00a78e8380d8acc3d5931972335 (patch) | |
| tree | 836b52f30514b56d7cc18fd0f4d2cb547291d7cf /src/commands/mod.rs | |
| parent | 8b9da75019ecb72aa2b9c3d05ff890e96a61fae9 (diff) | |
update volume command0.1.2
Diffstat (limited to 'src/commands/mod.rs')
| -rw-r--r-- | src/commands/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 19615de..542d649 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -87,8 +87,8 @@ fn register_db(f: StandardFramework) -> StandardFramework { f } -fn send(channel: ChannelId, text: &str, tts: bool) -> Result<()> { - channel.send_message(|m| m.content(text).tts(tts))?; +fn send<A: AsRef<str>>(channel: ChannelId, text: A, tts: bool) -> Result<()> { + channel.send_message(|m| m.content(text.as_ref()).tts(tts))?; Ok(()) } |
