Discord.js: Make client.logout()

Created on 26 Mar 2018  路  1Comment  路  Source: discordjs/discord.js

It would be a lot easier to logout the client without getting all the token errors with client.destroy().

REST enhancement

Most helpful comment

If you're getting token errors, it's because you're trying to send messages or do other things after calling client.destroy(). I don't think adding a new method that keeps the token stored just for REST methods is at all necessary.

>All comments

If you're getting token errors, it's because you're trying to send messages or do other things after calling client.destroy(). I don't think adding a new method that keeps the token stored just for REST methods is at all necessary.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tom-barnes picture tom-barnes  路  3Comments

LLamaFTL picture LLamaFTL  路  3Comments

xCuzImPro picture xCuzImPro  路  3Comments

Alipoodle picture Alipoodle  路  3Comments

Acaretia picture Acaretia  路  3Comments