From b396e2f9d5d491c1759a86a6dd622b7f58993c72 Mon Sep 17 00:00:00 2001 From: JunDao Date: Mon, 20 May 2019 08:06:06 +0800 Subject: [PATCH] fix the login mistake of the example --- bot/example_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/example_test.go b/bot/example_test.go index 09ae12e..9c72547 100644 --- a/bot/example_test.go +++ b/bot/example_test.go @@ -48,7 +48,8 @@ func ExampleClient_JoinServer_online() { panic(err) } c.Name = auth.SelectedProfile.Name - c.AsTk = auth.SelectedProfile.ID + c.Auth.UUID = auth.SelectedProfile.ID + c.AsTk = auth.AccessToken //Connect server err = c.JoinServer("localhost", 25565)