diff options
| author | Trey <trey6979@gmail.com> | 2018-02-23 20:06:46 -0500 |
|---|---|---|
| committer | Trey <trey6979@gmail.com> | 2018-02-23 20:06:46 -0500 |
| commit | 75e45bf10fc8e8056fae4f620e9bcc65b02f7834 (patch) | |
| tree | 6b9d6621050b170f9cc251b5878f615adde99e7c | |
| parent | 7177f7dca1a36e6d6cf0f7ea1916906f74e73245 (diff) | |
| download | PokeBot-75e45bf10fc8e8056fae4f620e9bcc65b02f7834.tar.gz PokeBot-75e45bf10fc8e8056fae4f620e9bcc65b02f7834.tar.bz2 PokeBot-75e45bf10fc8e8056fae4f620e9bcc65b02f7834.zip | |
trey needs js for dummies
| -rw-r--r-- | bot.js | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -45,12 +45,10 @@ function parseCommand(msg) { msg.channel.send(':ping_pong: Pong! ' + Math.floor(bot.ping) + 'ms.'); break; case 'suggest': - var suggestionAuthor = msg.author.id; - bot.channels.get('416726932927938570').send( new Discord.RichEmbed() .setColor (0x00ae86) - .setAuthor(`${suggestionAuthor.user.tag}`, msg.author.displayavatarURL) + .setAuthor(msg.author.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 => { |
