import { Command } from 'discord-akairo'; import { Message } from 'discord.js'; export default class ClapifyFun extends Command { public constructor() { super('clapify', { aliases: ['clapify'], category: 'fun', description: { content: 'Clapifies your specified text.', usage: '[text]', examples: [ 'clap this lol' ] }, ratelimit: 3, args: [ { id: 'text', type: 'string', prompt: { start: 'What would you like to clapify?' }, match: 'rest' }, { id: 'deleteinitialmessage', flag: ['-delete', '-d'], match: 'flag' } ] }); } public exec(msg: Message, { text, deleteinitialmessage }): Promise { if (deleteinitialmessage) msg.delete(); return msg.channel.send(text.split(' ').join('👏')); } }