Files
xiao/commands/edit-text/embed.js
T
2020-04-09 14:37:24 -04:00

26 lines
560 B
JavaScript

const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
module.exports = class EmbedCommand extends Command {
constructor(client) {
super(client, {
name: 'embed',
group: 'edit-text',
memberName: 'embed',
description: 'Sends text in an embed.',
clientPermissions: ['EMBED_LINKS'],
args: [
{
key: 'text',
prompt: 'What text would you like to embed?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.embed(new MessageEmbed().setDescription(text));
}
};