From 03989e08f2358cbd536655a063143028f34c2ffd Mon Sep 17 00:00:00 2001 From: Will Hunt <half-shot@molrams.com> Date: Wed, 22 Feb 2017 22:28:31 +0000 Subject: [PATCH] Missing return --- src/discordclientfactory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discordclientfactory.ts b/src/discordclientfactory.ts index d6e3acd..461843e 100644 --- a/src/discordclientfactory.ts +++ b/src/discordclientfactory.ts @@ -38,7 +38,7 @@ export class DiscordClientFactory { } return this.store.get_user_token(userId).then((token) => { if (token === null) { - Promise.resolve(this.botClient); + return Promise.resolve(this.botClient); } client = Bluebird.promisifyAll(new Client({ fetchAllMembers: true, -- GitLab