Debug
parent
7c4b475cbc
commit
95d775778c
2
index.js
2
index.js
|
@ -222,7 +222,7 @@ function getModmailChannel(user, allowCreate = true) {
|
||||||
// Try to find a matching channel
|
// Try to find a matching channel
|
||||||
let candidate = modMailGuild.channels.find(c => {
|
let candidate = modMailGuild.channels.find(c => {
|
||||||
const info = getModmailChannelInfo(c);
|
const info = getModmailChannelInfo(c);
|
||||||
console.log(`testing ${info.userId} === ${user.id}`);
|
console.log(`testing ${info && info.userId} === ${user.id}`);
|
||||||
return info && info.userId === user.id;
|
return info && info.userId === user.id;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue