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

Commit

Permalink
Add a colored embed command
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ray committed Oct 16, 2018
1 parent 192630a commit c97513a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions commands/colorfiy.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
const Discord = require('discord.js');
exports.run = (client, message, args) => {
const content = args.join(" ");
exports.run = async (client, message, args) => {
///const content = args.join(' ');

if(!content) return message.reply('Please add text to include in the embed!')

const embed = new Discord.RichEmbed()
.setDescription(`${content}`)
.setColor('RANDOM')
return await message.channel.send({embed});
const embed = new Discord.RichEmbed();
embed.setDescription(args.join(' '))
embed.setColor('RANDOM');
embed.setFooter(client.user.username, client.user.avatarURL);
embed.setTimestamp();
message.delete();
return await message.channel.send({embed});
};

exports.conf = {
Expand Down

0 comments on commit c97513a

Please sign in to comment.