mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
More uniform group names
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user