diff options
author | V <vendicated@riseup.net> | 2023-06-29 16:06:21 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-06-29 16:15:07 +0200 |
commit | 73354973a37a03fffa5acacd49c9251008efbba8 (patch) | |
tree | 7ad74dff97a838aa12069d15f055c334567e8037 /src/webpack | |
parent | e12c0e546c9042bebc31431b3b870d3c036d744d (diff) | |
download | Vencord-73354973a37a03fffa5acacd49c9251008efbba8.tar.gz Vencord-73354973a37a03fffa5acacd49c9251008efbba8.tar.bz2 Vencord-73354973a37a03fffa5acacd49c9251008efbba8.zip |
OpenInApp: Support steam; integrate with SpotifyControls & ShowConnections
Diffstat (limited to 'src/webpack')
-rw-r--r-- | src/webpack/common/utils.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index 629d052..40a45da 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -77,6 +77,17 @@ export const Toasts = { } }; +/** + * Show a simple toast. If you need more options, use Toasts.show manually + */ +export function showToast(message: string, type = ToastType.MESSAGE) { + Toasts.show({ + id: Toasts.genId(), + message, + type + }); +} + export const UserUtils = { fetchUser: findByCodeLazy(".USER(", "getUser") as (id: string) => Promise<User>, }; |