fix(presence): keep rich presence synced with launcher state
Refresh idle activity from live mode, stats, user, and config changes, replace activity snapshots so cleared buttons and images are removed, and keep retrying Discord IPC until presence is disabled.
This commit is contained in:
1 parent
e1c04c4f5b
commit
34e93ee29b
7 files changed
+137
-125
No files matched your search
+9
-9
@@ -6,15 +6,15 @@ export type PresenceButtonPayload = {
|
||||
};
|
||||
|
||||
export type PresenceActivityPayload = {
|
||||
state?: string;
|
||||
details?: string;
|
||||
largeImageKey?: string;
|
||||
largeImageText?: string;
|
||||
smallImageKey?: string | null;
|
||||
smallImageText?: string | null;
|
||||
button1?: PresenceButtonPayload | null;
|
||||
button2?: PresenceButtonPayload | null;
|
||||
showTimestamp?: boolean;
|
||||
state: string;
|
||||
details: string;
|
||||
largeImageKey: string;
|
||||
largeImageText: string;
|
||||
smallImageKey: string | null;
|
||||
smallImageText: string | null;
|
||||
button1: PresenceButtonPayload | null;
|
||||
button2: PresenceButtonPayload | null;
|
||||
showTimestamp: boolean;
|
||||
};
|
||||
|
||||
export const connect = async () => await invoke('presence_connect');
|
||||
|
||||
Reference in new issue
Block a user