From c7b7b784d9952f7102f76aabcbbb35743d36f407 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Sat, 31 Dec 2016 21:52:46 +0200 Subject: [PATCH] Add debug --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index ae430cf..907dddf 100644 --- a/index.js +++ b/index.js @@ -217,6 +217,7 @@ function getModmailChannel(user, allowCreate = true) { // If the cache value was invalid, remove it delete modMailChannels[user.id]; console.log(`[NOTE] INVALID CACHE VALUE FOR ${user.id}`); + console.log(`[DEBUG] Channels:\n` + modMailGuild.channels.map(channel => ` ${channel.id} / ${channel.name}`).join('\n')); } }