From 86a2e3b7cb11a6e80a05e8a1b1971b850fa7faf5 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 4 Apr 2021 15:30:48 +0100 Subject: [PATCH] [PCCompat > Entities] Global: Add api.commands.unregisterCommand --- moduleWrappers/powercord/entities.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/moduleWrappers/powercord/entities.js b/moduleWrappers/powercord/entities.js index 1e939f8..7ecd470 100644 --- a/moduleWrappers/powercord/entities.js +++ b/moduleWrappers/powercord/entities.js @@ -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); } } }