discord-bot-rss-feed/discord-bot-core/Command.js

12 lines
308 B
JavaScript
Raw Normal View History

module.exports = class Command {
/**@param param */
constructor({ name, description, syntax, admin, invoke }) {
this.name = name;
this.description = description;
this.syntax = syntax;
this.admin = admin;
this.invoke = invoke;
this.expectedParamCount = this.syntax.split(/ +/).length - 1;
}
};