aboutsummaryrefslogtreecommitdiff
path: root/featureClass/class.js
diff options
context:
space:
mode:
Diffstat (limited to 'featureClass/class.js')
-rw-r--r--featureClass/class.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/featureClass/class.js b/featureClass/class.js
index 2ccbb49..f2d5549 100644
--- a/featureClass/class.js
+++ b/featureClass/class.js
@@ -139,7 +139,7 @@ class Feature {
return new CustomEvent(theEvent, theEvent.trigger, [event, func], this)
}
- registerCommand(name, func) {
+ registerCommand(name, func, completions) {
this.FeatureManager.commandFuncs[name] = func
this.FeatureManager.registerCommand(name, (...args) => {
@@ -148,7 +148,7 @@ class Feature {
} else {
ChatLib.chat(this.FeatureManager.messagePrefix + "This command is not available atm")
}
- }, this)
+ }, this, completions)
return new CommandEvent(name, undefined, [name, func], this)
}