diff --git a/src/index.js b/src/index.js index 3d83150..f41650b 100644 --- a/src/index.js +++ b/src/index.js @@ -127,11 +127,16 @@ Here's what their message contained: threadInitDonePromise = memberPromise .then(member => { + console.log('member', member); if (! member) return null; // If the member doesn't have user data on it, try fetching that manually if (! member.user) return restBot.getRESTUser(member.id).then(user => { member.user = user; return member; + }, err => { + console.log(`Could not get user for member ${member.id}`); + console.log(String(err)); + return member; }); return member; }, err => {