mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
fix(Client): login not properly rejecting on invalid token
This commit is contained in:
@@ -273,7 +273,7 @@ class Client extends EventEmitter {
|
||||
* @example
|
||||
* client.login('my token');
|
||||
*/
|
||||
login(token) {
|
||||
login(token = this.token) {
|
||||
return this.rest.methods.login(token);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user