resolve for not loggedin clients (#1301)

This commit is contained in:
TimeForANinja 2017-04-01 08:05:46 +02:00 committed by Crawl
parent bca101aac8
commit c4e5292516

View file

@ -54,6 +54,7 @@ class ClientManager {
destroy() {
this.client.ws.destroy();
if (!this.client.user) return Promise.resolve();
if (this.client.user.bot) {
this.client.token = null;
return Promise.resolve();