aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-15 13:53:46 +0930
committermat <git@matdoes.dev>2025-12-15 13:53:46 +0930
commitaab9f56da20a36347fe31557377e07a47c114dc6 (patch)
tree15c81634d92eed995a85a65b05584ae216207163 /azalea/src
parent9745766cff8907e6c6bb87b4ab852acaeadd6ef9 (diff)
downloadazalea-drasl-aab9f56da20a36347fe31557377e07a47c114dc6.tar.xz
improve docs by enabling scraped examples and bevy trait tags
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/builder.rs13
-rw-r--r--azalea/src/swarm/builder.rs4
2 files changed, 9 insertions, 8 deletions
diff --git a/azalea/src/builder.rs b/azalea/src/builder.rs
index d0318424..91fb9d5e 100644
--- a/azalea/src/builder.rs
+++ b/azalea/src/builder.rs
@@ -11,8 +11,8 @@ use crate::{
swarm::{self, SwarmBuilder},
};
-/// A builder for creating new [`Client`]s. This is the recommended way of
-/// making a bot.
+/// A builder for creating new [`Client`](crate::Client)s. This is the
+/// recommended way of making a bot.
///
/// ```no_run
/// # use azalea::prelude::*;
@@ -84,8 +84,9 @@ impl ClientBuilder<NoState, ()> {
}
}
- /// Set the function that's called every time a bot receives an [`Event`].
- /// This is the way to handle normal per-bot events.
+ /// Set the function that's called every time a bot receives an
+ /// [`Event`](crate::Client). This is the way to handle normal per-bot
+ /// events.
///
/// Currently, you can have up to one client handler.
///
@@ -156,8 +157,8 @@ where
self
}
- /// Build this `ClientBuilder` into an actual [`Client`] and join the given
- /// server.
+ /// Build this `ClientBuilder` into an actual [`Client`](crate::Client) and
+ /// join the given server.
///
/// If the client can't join, it'll keep retrying forever until it can.
///
diff --git a/azalea/src/swarm/builder.rs b/azalea/src/swarm/builder.rs
index 412ec67e..4eae7eab 100644
--- a/azalea/src/swarm/builder.rs
+++ b/azalea/src/swarm/builder.rs
@@ -137,8 +137,8 @@ where
SS: Default + Send + Sync + Clone + Resource + 'static,
{
/// Set the function that's called every time a bot receives an
- /// [`enum@Event`]. This is the intended way to handle normal per-bot
- /// events.
+ /// [`Event`](crate::Event). This is the intended way to handle
+ /// normal per-bot events.
///
/// Currently you can have up to one handler.
///