Update suggest.js

Better look for Suggestions
This commit is contained in:
Joseph Gonzalo authored and GitHub committed 2019-06-19 14:27:24 -06:00
1 parent 2b3edc7b45
commit f413bb5f3c
1 file changed
+5 -3
+5 -3
View File
@@ -10,10 +10,12 @@ exports.run = async(bot, message, args) => {
message.delete(); message.delete();
const SuggestionEmbed = new Discord.RichEmbed() const SuggestionEmbed = new Discord.RichEmbed()
.setTitle(`${bot.settings.Suggestion_Title}`) .setAuthor(`${bot.settings.Suggestion_Title} ` + message.author.username, message.author.displayAvatarURL)
.setThumbnail(message.guild.iconURL)
.setDescription(args.join(" ")) .setDescription(args.join(" "))
.setFooter(`Suggestion by ${message.author.username}`, message.author.displayAvatarURL) .setFooter(`${bot.settings.footer}`, bot.user.avatarURL)
.setColor(bot.settings.colour) .setTimestamp(new Date())
.setColor(bot.settings.colour);
let sc = message.guild.channels.find(SuggestionChannel => SuggestionChannel.name === `${bot.settings.Suggestion_Channel}`); let sc = message.guild.channels.find(SuggestionChannel => SuggestionChannel.name === `${bot.settings.Suggestion_Channel}`);
if(!sc) return message.channel.send(`:x: Error! Could not find the suggestion channel **${bot.settings.Suggestion_Channel}**`); if(!sc) return message.channel.send(`:x: Error! Could not find the suggestion channel **${bot.settings.Suggestion_Channel}**`);