diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-07-23 00:37:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 00:37:25 +0800 |
commit | 60d0c93bdee75aaf4a7fc7ca69074ce2047a840b (patch) | |
tree | c157246b33c6121721e521f0eba31f26e696cfb1 | |
parent | 218d91e91db6df30b28764d64d59ffbe709ce538 (diff) | |
download | SoopyV2-60d0c93bdee75aaf4a7fc7ca69074ce2047a840b.tar.gz SoopyV2-60d0c93bdee75aaf4a7fc7ca69074ce2047a840b.tar.bz2 SoopyV2-60d0c93bdee75aaf4a7fc7ca69074ce2047a840b.zip |
+ tab completions
+ tab completions for register command
-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) } |