[PCCompat > Entities] Global: Add api.commands.unregisterCommand

This commit is contained in:
Ducko 2021-04-04 15:30:48 +01:00 committed by Keanu
parent d95f20db3f
commit 86a2e3b7cb
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ window.powercord = {
}, [
{ type: 3, required: false, name: 'args', description: 'Arguments for PC command' } // Argument for any string for compat. with PC's classical commands
])
},
unregisterCommand: (command) => {
goosemodScope.patcher.commands.remove(command);
}
}
}