From 95d775778c2c27d51b6aeaf33532fa0c5118bd11 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Sat, 31 Dec 2016 01:09:54 +0200 Subject: [PATCH] Debug --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });