aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility/suggest.js
diff options
context:
space:
mode:
authorTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-24 15:31:16 -0400
committerTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-24 15:31:16 -0400
commitac316088f53c82a23d07fe220bd133bbc8ec65fb (patch)
tree3df48828f76dfb0581f16b32decc78a0eb1bf86d /commands/Utility/suggest.js
parent0b922294948ed3e1811aa166085775289f7ccfce (diff)
downloadPokeBot-ac316088f53c82a23d07fe220bd133bbc8ec65fb.tar.gz
PokeBot-ac316088f53c82a23d07fe220bd133bbc8ec65fb.tar.bz2
PokeBot-ac316088f53c82a23d07fe220bd133bbc8ec65fb.zip
wow
Diffstat (limited to 'commands/Utility/suggest.js')
-rw-r--r--commands/Utility/suggest.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/Utility/suggest.js b/commands/Utility/suggest.js
index 5345441..9a0179d 100644
--- a/commands/Utility/suggest.js
+++ b/commands/Utility/suggest.js
@@ -21,7 +21,8 @@
exports.run = (bot, msg, args) => {
if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
const { RichEmbed } = require('discord.js');
- bot.channels.find('name', 'suggestions').send(
+ const suggestionChannel = await bot.plugins.settings.getStr('suggestions', member.guild.id);
+ bot.channels.find('id', suggestionChannel).send(
new RichEmbed()
.setColor (0x00ae86)
.setTitle('Suggestion')