Add some debug stuff

master
Miikka Virtanen 2017-02-15 01:20:56 +02:00
parent 3bdd0384f4
commit e7ed0e5a21
1 changed files with 5 additions and 0 deletions

View File

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