mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[PCCompat > Global] api.commands.registerCommand: add alias TODO
This commit is contained in:
parent
31dea36c77
commit
87b84d23e5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue