diff --git a/package.json b/package.json index b367a1d..36877eb 100644 --- a/package.json +++ b/package.json @@ -123,5 +123,10 @@ "utf-8-validate": "^5.0.8" }, "packageManager": "yarn@1.22.22", - "repository": "https://github.com/Venipa/ytmdesktop2" + "repository": "https://github.com/Venipa/ytmdesktop2", + "findUnusedExports": { + "include": [ + "./src/**/*.ts" + ] + } } diff --git a/src/main/utils/trackData.ts b/src/main/utils/trackData.ts index fc7d1b9..323e1d2 100644 --- a/src/main/utils/trackData.ts +++ b/src/main/utils/trackData.ts @@ -1,4 +1,4 @@ -import { Presence } from "discord-rpc"; +import { SetActivity as Presence } from "@xhayper/discord-rpc"; import { YoutubeMatcher } from "./youtubeMatcher"; export interface Thumbnails { @@ -114,6 +114,7 @@ export const discordEmbedFromTrack = ( smallImageText: `${ Number.parseInt(track.video.viewCount)?.toLocaleString("de") || track.video.viewCount } views`, + type: 2, buttons: [ ...(track.video.videoId ? [