const Discord = require('discord.js')

exports.run = (client, msg, args) => {
    msg.channel.fetchMessage(`${args[0]}`)
	.then(Message => {
		msg.delete()
		
		const embed = new Discord.RichEmbed()
	    .setAuthor(`${Message.author.username}`, `${Message.author.avatarURL}`)	
		.addField("Quote", `${Message.content}`)
		.setColor("#33ccff")
		msg.channel.send({embed})
	}).catch(() => {
		msg.delete()
		msg.channel.send("Invalid message ID").then(message => message.delete(3000))
	})
}

exports.help = { 'name': 'quote' }