import { Command } from 'discord-akairo'; import { Message } from 'discord.js'; import { owners } from '../../Config'; export default class SuggestBot extends Command { public constructor() { super('suggest', { aliases: ['suggest'], category: 'bot', description: { content: 'Suggest a feature that the bot should add.', usage: '[suggestion]', examples: [ 'walter command please' ] }, ratelimit: 3, args: [ { id: 'suggestion', type: 'string', prompt: { start: 'What would you like to suggest?' }, match: 'rest' } ] }); } public async exec(msg: Message, { suggestion }): Promise { await this.client.users.resolve(owners[0]).send(`**${msg.author.tag}** suggest; *${suggestion}*`); return msg.channel.send('Thank you for your suggestion!'); } }