From 2d20a1f0afb93c482e16d4c0d00a2c3d2f97b40e Mon Sep 17 00:00:00 2001 From: oven <39243708+UserUNP@users.noreply.github.com> Date: Thu, 16 Mar 2023 20:15:23 +0100 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ab3f78..b9987c5 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ const sdk = new ActivitySDK("app id"); sdk.on("READY", async () => { let user; try { - user = (await sdk.commands.authenticate("app secret", ["identify"])).user; + user = (await sdk.login("app secret", ["identify"])).user; } catch (e) { console.error("could not authorize/authenticate"); return;