diff options
| author | mat <git@matdoes.dev> | 2025-08-12 16:02:42 -0630 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-08-12 16:02:42 -0630 |
| commit | f01579f70b4acc045559c1aca82d8d39a1f79f12 (patch) | |
| tree | 327e52737e4c7254b971bfb1d03db64bebdd120a /azalea/examples | |
| parent | 7f4e3c583dd669561e8502822952fc9afe26e005 (diff) | |
| download | azalea-drasl-f01579f70b4acc045559c1aca82d8d39a1f79f12.tar.xz | |
Client::chat now takes Into<String> and doc fixes
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/echo.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/testbot/commands.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/azalea/examples/echo.rs b/azalea/examples/echo.rs index 09c3d5d3..0f59be2a 100644 --- a/azalea/examples/echo.rs +++ b/azalea/examples/echo.rs @@ -25,7 +25,7 @@ async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> // ignore our own messages return Ok(()); } - bot.chat(&content); + bot.chat(content); } Ok(()) diff --git a/azalea/examples/testbot/commands.rs b/azalea/examples/testbot/commands.rs index 7486780e..1616b82e 100644 --- a/azalea/examples/testbot/commands.rs +++ b/azalea/examples/testbot/commands.rs @@ -23,9 +23,9 @@ impl CommandSource { let message = message.into(); if self.chat.is_whisper() { self.bot - .chat(&format!("/w {} {message}", self.chat.sender().unwrap())); + .chat(format!("/w {} {message}", self.chat.sender().unwrap())); } else { - self.bot.chat(&message); + self.bot.chat(message); } } |
