Files
2024-05-21 21:02:12 -04:00

24 lines
522 B
JavaScript

const Command = require('../../framework/Command');
const { EmbedBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = class EmbedCommand extends Command {
constructor(client) {
super(client, {
name: 'embed',
group: 'edit-text',
description: 'Sends text in an embed.',
clientPermissions: [PermissionFlagsBits.EmbedLinks],
args: [
{
key: 'text',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.embed(new EmbedBuilder().setDescription(text));
}
};