Remove nsfw/useless commands, refactor stuff

This commit is contained in:
Dragon Fire
2018-08-15 19:34:34 -04:00
parent cc3680009a
commit b3c6b591d3
38 changed files with 192 additions and 531 deletions
+34
View File
@@ -0,0 +1,34 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
module.exports = class MessageInfoCommand extends Command {
constructor(client) {
super(client, {
name: 'message-info',
aliases: ['message', 'msg', 'msg-info', 'reply'],
group: 'info',
memberName: 'message',
description: 'Responds with detailed information on a message.',
clientPermissions: ['EMBED_LINKS'],
args: [
{
key: 'message',
prompt: 'Which message would you like to get information on?',
type: 'message'
}
]
});
}
run(msg, { message }) {
const embed = new MessageEmbed()
.setColor(message.member ? message.member.displayHexColor : 0x00AE86)
.setThumbnail(message.author.displayAvatarURL())
.setAuthor(msg.author.tag, msg.author.displayAvatarURL())
.setDescription(message.content)
.setTimestamp(message.createdAt)
.setFooter(`ID: ${message.id}`)
.addField(' Jump', message.url);
return msg.embed(embed);
}
};