From 65da123631b0a2dc078786f60fa6b213e8b430ee Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 23 Oct 2022 19:00:24 -0500 Subject: Add Client::set_client_information (#33) * start adding options * add default options * send options packet by default * mention set_options in Client::join doc * make TranslatableComponent::read return TextComponent * change set_options to set_client_information * clean up some code * Add `Initialize` event * fix some clippy warnings * change `Client::options` to `client_information` --- azalea/src/lib.rs | 2 +- azalea/src/prelude.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/src') diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 013e2dd3..a7d0791a 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -129,7 +129,7 @@ pub enum Error { /// it gets disconnected from the server. /// /// # Examples -/// +/// /// ```rust,no_run /// let error = azalea::start(azalea::Options { /// account, diff --git a/azalea/src/prelude.rs b/azalea/src/prelude.rs index 0ffb60b8..c09d85e2 100644 --- a/azalea/src/prelude.rs +++ b/azalea/src/prelude.rs @@ -1,4 +1,4 @@ -//! The Azalea prelude. +//! The Azalea prelude. Things that are necessary for a bare-bones bot are re-exported here. pub use crate::bot::BotTrait; pub use azalea_client::{Account, Client, Event}; -- cgit v1.2.3