UNPKG

discord.js-commando

Version:

The official command framework for Discord.js

26 lines (23 loc) 595 B
const Command = require('../base'); module.exports = class UnknownCommandCommand extends Command { constructor(client) { super(client, { name: 'unknown-command', group: 'util', memberName: 'unknown-command', description: 'Displays help information for when an unknown command is used.', examples: ['unknown-command kickeverybodyever'], unknown: true, hidden: true }); } run(msg) { return msg.reply( `Unknown command. Use ${msg.anyUsage( 'help', msg.guild ? undefined : null, msg.guild ? undefined : null )} to view the command list.` ); } };