feat: add osu status to rpc
This commit is contained in:
1 parent
9f62332334
commit
d6623891bb
10 files changed
+256
-15
No files matched your search
+5
-5
@@ -3,15 +3,15 @@ import { invoke } from '@tauri-apps/api/core';
|
||||
export const connect = async () => await invoke('presence_connect');
|
||||
export const disconnect = async () => await invoke('presence_disconnect');
|
||||
export const updateStatus = async (status: {
|
||||
state?: string;
|
||||
details?: string;
|
||||
large_image_key?: string;
|
||||
state?: string | null;
|
||||
details?: string | null;
|
||||
largeImageKey?: string;
|
||||
}) =>
|
||||
await invoke('presence_update_status', {
|
||||
state: status.state,
|
||||
details: status.details,
|
||||
largeImageKey: status.large_image_key,
|
||||
largeImageKey: status.largeImageKey,
|
||||
});
|
||||
export const updateUser = async (user: { username: string; id: string }) =>
|
||||
export const updateUser = async (user: { username: string; id?: string | null }) =>
|
||||
await invoke('presence_update_user', { username: user.username, id: user.id });
|
||||
export const isConnected = async () => await invoke<boolean>('presence_is_connected');
|
||||
Reference in new issue
Block a user