diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-23 10:01:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 10:01:04 +0800 |
commit | bfebde30c5650a3edf00e6cd04de4b10793c87cf (patch) | |
tree | 9718bfb950df490f374c8f1053d08f39bebf7512 | |
parent | e6c5a7705ebd99f4d190478e74bdf32f303dae01 (diff) | |
parent | 60d0c93bdee75aaf4a7fc7ca69074ce2047a840b (diff) | |
download | SoopyV2-bfebde30c5650a3edf00e6cd04de4b10793c87cf.tar.gz SoopyV2-bfebde30c5650a3edf00e6cd04de4b10793c87cf.tar.bz2 SoopyV2-bfebde30c5650a3edf00e6cd04de4b10793c87cf.zip |
Merge pull request #33 from EmeraldMerchant/patch-34
+ tab completions
-rw-r--r-- | featureClass/class.js | 4 |
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) } |