[PCCompat > Entities] Global: Add api.notices.sendToast

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

View File

@ -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);
}
}
}
};