diff --git a/index.js b/index.js index e0e1dac..f9ccedd 100644 --- a/index.js +++ b/index.js @@ -222,7 +222,7 @@ function getModmailChannel(user, allowCreate = true) { // Try to find a matching channel let candidate = modMailGuild.channels.find(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; });