From 87b84d23e530f50658e882760465102d4b751412 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 4 Apr 2021 15:57:28 +0100 Subject: [PATCH] [PCCompat > Global] api.commands.registerCommand: add alias TODO --- moduleWrappers/powercord/entities.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moduleWrappers/powercord/entities.js b/moduleWrappers/powercord/entities.js index dba6709..87fa6c8 100644 --- a/moduleWrappers/powercord/entities.js +++ b/moduleWrappers/powercord/entities.js @@ -3,7 +3,9 @@ window.powercord = { api: { commands: { - registerCommand: ({ command, description, _usage, executor }) => { + registerCommand: ({ command, alias, description, usage, executor }) => { + // TODO: implement alias + goosemodScope.patcher.commands.add(command, description, ( { message: [ { text } ] } ) => { const out = executor(text.split(' ')); // Run original executor func