Skip to content

Commit

Permalink
fix(Client): login wasnt using env.token (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewdcario authored and amishshah committed Oct 25, 2017
1 parent ee1d4c5 commit 0277d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class Client extends BaseClient {
* @example
* client.login('my token');
*/
login(token) {
login(token = this.token) {
return new Promise((resolve, reject) => {
if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID');
token = token.replace(/^Bot\s*/i, '');
Expand Down

0 comments on commit 0277d1d

Please sign in to comment.