From 60d0c93bdee75aaf4a7fc7ca69074ce2047a840b Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Sat, 23 Jul 2022 00:37:25 +0800 Subject: + tab completions + tab completions for register command --- featureClass/class.js | 4 ++-- 1 file 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) } -- cgit