From c58dbac4696ef0403b6f7904220313044dceed47 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 4 Apr 2021 15:37:08 +0100 Subject: [PATCH] [PCCompat > Entities] Global: Add api.notices.sendToast --- moduleWrappers/powercord/entities.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/moduleWrappers/powercord/entities.js b/moduleWrappers/powercord/entities.js index 7ecd470..dba6709 100644 --- a/moduleWrappers/powercord/entities.js +++ b/moduleWrappers/powercord/entities.js @@ -18,6 +18,14 @@ window.powercord = { unregisterCommand: (command) => { goosemodScope.patcher.commands.remove(command); } + }, + + notices: { + sendToast: (_id, { header, content, type, buttons }) => { + // TODO: implement full toast in future instead of just small current GM toast + + goosemodScope.showToast(content); + } } } };