mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-08-06 04:46:49 +02:00
Maybe? Can't build
This commit is contained in:
39
src/types/discord-rpc.d.ts
vendored
Normal file
39
src/types/discord-rpc.d.ts
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
declare module 'discord-rpc' {
|
||||
export class Client {
|
||||
constructor(options: { transport: 'ipc' });
|
||||
on(event: string, listener: (...args: any[]) => void): this;
|
||||
login(options: { clientId: string }): Promise<void>;
|
||||
setActivity(presence: Presence): Promise<void>;
|
||||
clearActivity(): Promise<void>;
|
||||
destroy(): Promise<void>;
|
||||
}
|
||||
|
||||
export interface Presence {
|
||||
state?: string;
|
||||
details?: string;
|
||||
startTimestamp?: number;
|
||||
endTimestamp?: number;
|
||||
largeImageKey?: string;
|
||||
largeImageText?: string;
|
||||
smallImageKey?: string;
|
||||
smallImageText?: string;
|
||||
partyId?: string;
|
||||
partySize?: number;
|
||||
partyMax?: number;
|
||||
matchSecret?: string;
|
||||
spectateSecret?: string;
|
||||
joinSecret?: string;
|
||||
instance?: boolean;
|
||||
type?: number;
|
||||
buttons?: Array<{ label: string; url: string }>;
|
||||
}
|
||||
|
||||
export const ActivityTypes: {
|
||||
PLAYING: 0,
|
||||
STREAMING: 1,
|
||||
LISTENING: 2,
|
||||
WATCHING: 3,
|
||||
CUSTOM: 4,
|
||||
COMPETING: 5
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user