[PCCompat > Global] api.commands.registerCommand: add alias TODO

This commit is contained in:
Ducko 2021-04-04 15:57:28 +01:00 committed by Keanu
parent 31dea36c77
commit 87b84d23e5
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 3 additions and 1 deletions

View File

@ -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