Skip to content

Commit

Permalink
Fix undefined channel
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Sep 18, 2019
1 parent e1f7f1e commit ab874cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/leaderAdd.js
Original file line number Diff line number Diff line change
@@ -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'))
Expand Down

0 comments on commit ab874cf

Please sign in to comment.