aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-16 22:56:31 -0500
committermat <github@matdoes.dev>2022-10-16 22:56:31 -0500
commitab9e50b1307012b698d826a1f4d04b347ee2203f (patch)
treead26a9b22130ebe3ec1096870f2a2457eaa966e6 /azalea/examples
parent4cef62e8e4aa04e44048eb67e5091c12a73d2a09 (diff)
downloadazalea-drasl-ab9e50b1307012b698d826a1f4d04b347ee2203f.tar.xz
change examples with Account
Diffstat (limited to 'azalea/examples')
-rw-r--r--azalea/examples/craft_dig_straight_down.rs2
-rw-r--r--azalea/examples/echo.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/craft_dig_straight_down.rs b/azalea/examples/craft_dig_straight_down.rs
index 3b7267ef..89b11021 100644
--- a/azalea/examples/craft_dig_straight_down.rs
+++ b/azalea/examples/craft_dig_straight_down.rs
@@ -11,7 +11,7 @@ struct State {
#[tokio::main]
async fn main() {
let account = Account::offline("bot");
- // or let bot = azalea::Bot::microsoft("access token").await;
+ // or let bot = Account::microsoft("access token").await;
azalea::start(azalea::Options {
account,
diff --git a/azalea/examples/echo.rs b/azalea/examples/echo.rs
index 75cd235f..a5e27d56 100644
--- a/azalea/examples/echo.rs
+++ b/azalea/examples/echo.rs
@@ -6,7 +6,7 @@ use parking_lot::Mutex;
#[tokio::main]
async fn main() {
let account = Account::offline("bot");
- // or let account = azalea::Account::microsoft("access token").await;
+ // or let account = Account::microsoft("access token").await;
azalea::start(azalea::Options {
account,