diff --git a/src/plugins/lastfmRichPresence/index.tsx b/src/plugins/lastfmRichPresence/index.tsx index 77fa2784..abf42d5f 100644 --- a/src/plugins/lastfmRichPresence/index.tsx +++ b/src/plugins/lastfmRichPresence/index.tsx @@ -47,6 +47,7 @@ interface Activity { buttons?: Array; name: string; application_id: string; + status_display_type?: number; metadata?: { button_urls?: Array; }; @@ -134,6 +135,25 @@ const settings = definePluginSettings({ type: OptionType.STRING, default: "some music", }, + statusDisplayType: { + description: "Show the track / artist name in the member list", + type: OptionType.SELECT, + options: [ + { + label: "Don't show (shows generic listening message)", + value: "off", + default: true + }, + { + label: "Show artist name", + value: "artist" + }, + { + label: "Show track name", + value: "track" + } + ] + }, nameFormat: { description: "Show name of song and artist in status name", type: OptionType.SELECT, @@ -346,6 +366,11 @@ export default definePlugin({ details: trackData.name, state: trackData.artist, + status_display_type: { + "off": 0, + "artist": 1, + "track": 2 + }[settings.store.statusDisplayType], assets, buttons: buttons.length ? buttons.map(v => v.label) : undefined,