diff options
| author | mat <git@matdoes.dev> | 2025-02-22 21:52:23 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-22 21:52:23 +0000 |
| commit | 444993b609d54124183fbcadee121c11897ee20e (patch) | |
| tree | 2b1dd5fe78c35fa28713451646036e673e2d6b2a /azalea-client | |
| parent | 74b52a1fc12334c54eb671c1340e5e835e7bd33b (diff) | |
| download | azalea-drasl-444993b609d54124183fbcadee121c11897ee20e.tar.xz | |
debug log CARGO_PKG_VERSION on swarm start
Diffstat (limited to 'azalea-client')
| -rwxr-xr-x | azalea-client/src/chat.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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(()) /// # } |
