aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrey <trey6979@gmail.com>2018-02-23 20:04:35 -0500
committerTrey <trey6979@gmail.com>2018-02-23 20:04:35 -0500
commit7177f7dca1a36e6d6cf0f7ea1916906f74e73245 (patch)
tree8c3c8243e170745361b0a01ac3c2f3578ada7bd6
parenta3cd86b5dd64cb81e29de7d7d70f91de4c56fed0 (diff)
downloadPokeBot-7177f7dca1a36e6d6cf0f7ea1916906f74e73245.tar.gz
PokeBot-7177f7dca1a36e6d6cf0f7ea1916906f74e73245.tar.bz2
PokeBot-7177f7dca1a36e6d6cf0f7ea1916906f74e73245.zip
trey cant djs
-rw-r--r--bot.js4
1 files 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 => {