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;