From 90f8cbd09ad7549421453ef2aec3e3247cc1bf0b Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Fri, 30 Dec 2016 16:40:24 -0500 Subject: [PATCH] Add a header --- docs/general/updating.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/general/updating.md b/docs/general/updating.md index d06085ec5..bca2192f2 100644 --- a/docs/general/updating.md +++ b/docs/general/updating.md @@ -6,15 +6,16 @@ See [the changelog](https://github.com/hydrabolt/discord.js/releases/tag/11.0.0) * OAuthApplication support * Web distributions -## Client.login() no longer supports logging in with email + password +## Breaking changes +### Client.login() no longer supports logging in with email + password Logging in with an email and password has always been heavily discouraged since the advent of proper token support, but in v11 we have made the decision to completely remove the functionality, since Hammer & Chisel have [officially stated](https://github.com/hammerandchisel/discord-api-docs/issues/69#issuecomment-223886862) it simply shouldn't be done. User accounts can still log in with tokens just like bot accounts. To obtain the token for a user account, you can log in to Discord with that account, and use Ctrl + Shift + I to open the developer tools. In the console tab, evaluating `localStorage.token` will give you the token for that account. -## ClientUser.setEmail()/setPassword() now require the current password, as well as setUsername() on user accounts +### ClientUser.setEmail()/setPassword() now require the current password, as well as setUsername() on user accounts Since you can no longer log in with email and password, you must provide the current account password to the `setEmail()`, `setPassword()`, and `setUsername()` methods for user accounts (self-bots). -## Removed TextBasedChannel.sendTTSMessage() +### Removed TextBasedChannel.sendTTSMessage() This method was deemed to be an entirely pointless shortcut that virtually nobody even used. The same results can be achieved by passing options to `send()` or `sendMessage()`.