Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update suggest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew119427 committed Oct 20, 2018
1 parent 0254706 commit c73e15a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions commands/suggest.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const Discord = require('discord.js');
exports.run = async (client, message, args) => {
const dataSuggestion = args.join(" ");
const dataSuggestion = args.join(' ');
if (!dataSuggestion) return message.reply('**Please include text for the suggestion!**');

const Discord = new Discord.RichEmbed()
.setTitle('FCC Server Suggestion')
.setTitle('FC Server Suggestion')
.addField('Author:', `${message.author.username} (${message.author.id})`)
.addField('Suggestion:', `${dataSuggestion}`)
.setTimestamp()
.setColor('BLACK')
.setColor('RANDOM')
.setFooter(client.user.username, client.user.avatarURL)
client.channels.get('462361967026241536').send({embed});
};

Expand All @@ -21,7 +22,7 @@ exports.conf = {

exports.help = {
name: 'suggest',
category: 'FCC Server',
category: 'system',
description: 'Suggest something on the guild.',
usage: 'suggest [..suggestion]'
};

0 comments on commit c73e15a

Please sign in to comment.