From ab874cf005b17b1334138997d9be3b2d2e4b84dd Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 18 Sep 2019 12:51:34 -0400 Subject: [PATCH] Fix undefined channel --- src/interactions/leaderAdd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interactions/leaderAdd.js b/src/interactions/leaderAdd.js index 685750ec..3103056c 100644 --- a/src/interactions/leaderAdd.js +++ b/src/interactions/leaderAdd.js @@ -1,7 +1,7 @@ import { getInfoForUser, airCreate, airPatch } from '../utils' const interactionLeaderAdd = (bot, message) => { - const { user, text } = message + const { user, text, channel } = message if (text === '' || text === 'help') { bot.whisper(message, transcript('leaderAdd.help'))