From 7177f7dca1a36e6d6cf0f7ea1916906f74e73245 Mon Sep 17 00:00:00 2001 From: Trey Date: Fri, 23 Feb 2018 20:04:35 -0500 Subject: trey cant djs --- bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 5f227cb..d32c765 100644 --- a/bot.js +++ b/bot.js @@ -45,12 +45,12 @@ function parseCommand(msg) { msg.channel.send(':ping_pong: Pong! ' + Math.floor(bot.ping) + 'ms.'); break; case 'suggest': - var suggestionAuthor = message.author.id; + var suggestionAuthor = msg.author.id; bot.channels.get('416726932927938570').send( new Discord.RichEmbed() .setColor (0x00ae86) - .setAuthor(`${suggestionAuthor.user.tag}`, message.author.displayavatarURL) + .setAuthor(`${suggestionAuthor.user.tag}`, msg.author.displayavatarURL) .setDescription('This is a suggestion from a community member for something relating to the server. Please rate it based on your opinion, and a staff member will decide what to do with the suggestion.') .addField('Suggestion Contents', args.join(' ')) ).then(message => { -- cgit v1.2.3