Add some debug stuff
parent
3bdd0384f4
commit
e7ed0e5a21
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue