[PCCompat > Global] api.commands.registerCommand: add alias TODO
This commit is contained in:
parent
31dea36c77
commit
87b84d23e5
|
@ -3,7 +3,9 @@
|
||||||
window.powercord = {
|
window.powercord = {
|
||||||
api: {
|
api: {
|
||||||
commands: {
|
commands: {
|
||||||
registerCommand: ({ command, description, _usage, executor }) => {
|
registerCommand: ({ command, alias, description, usage, executor }) => {
|
||||||
|
// TODO: implement alias
|
||||||
|
|
||||||
goosemodScope.patcher.commands.add(command, description,
|
goosemodScope.patcher.commands.add(command, description,
|
||||||
( { message: [ { text } ] } ) => {
|
( { message: [ { text } ] } ) => {
|
||||||
const out = executor(text.split(' ')); // Run original executor func
|
const out = executor(text.split(' ')); // Run original executor func
|
||||||
|
|
Loading…
Reference in New Issue