60efeeebe8
subrepo: subdir: "discord-bot-core" merged: "9f209e1" upstream: origin: "git@github.com:benji7425/discord-bot-core.git" branch: "master" commit: "9f209e1" git-subrepo: version: "0.3.1" origin: "???" commit: "???"
12 lines
308 B
JavaScript
12 lines
308 B
JavaScript
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;
|
|
}
|
|
}; |