From 444993b609d54124183fbcadee121c11897ee20e Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 22 Feb 2025 21:52:23 +0000 Subject: debug log CARGO_PKG_VERSION on swarm start --- azalea-client/src/chat.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/chat.rs b/azalea-client/src/chat.rs index 2988ad6a..97fdde72 100755 --- a/azalea-client/src/chat.rs +++ b/azalea-client/src/chat.rs @@ -153,6 +153,9 @@ impl Client { /// Send a command packet to the server. The `command` argument should not /// include the slash at the front. + /// + /// You can also just use [`Client::chat`] and start your message with a `/` + /// to send a command. pub fn send_command_packet(&self, command: &str) { self.ecs.lock().send_event(SendChatKindEvent { entity: self.entity, @@ -165,8 +168,8 @@ impl Client { /// Send a message in chat. /// /// ```rust,no_run - /// # use azalea_client::{Client, Event}; - /// # async fn handle(bot: Client, event: Event) -> anyhow::Result<()> { + /// # use azalea_client::Client; + /// # async fn example(bot: Client) -> anyhow::Result<()> { /// bot.chat("Hello, world!"); /// # Ok(()) /// # } -- cgit v1.2.3