diff --git a/plugins/invidivizer/index.jsx b/plugins/invidivizer/index.jsx index 910845f..0f9c426 100644 --- a/plugins/invidivizer/index.jsx +++ b/plugins/invidivizer/index.jsx @@ -1,7 +1,10 @@ const { plugin: { store }, observeDom, - flux: { dispatcher, storesFlat: { SelectedChannelStore } }, + flux: { + dispatcher, + storesFlat: { SelectedChannelStore }, + }, util: { reactFiberWalker, getFiber }, ui: { Header, HeaderTags, TextBox }, } = shelter; diff --git a/plugins/lastfm/index.ts b/plugins/lastfm/index.ts index b9de166..add2a06 100644 --- a/plugins/lastfm/index.ts +++ b/plugins/lastfm/index.ts @@ -51,9 +51,7 @@ const setPresence = async (name = "", activity?: Track, start?: number) => details: activity.name, state: activity.artist, application_id: DISCORD_APP_ID, - timestamps: store.stamp - ? { start } - : undefined, + timestamps: store.stamp ? { start } : undefined, assets: { large_image: activity.albumArt && (await getAsset(activity.albumArt)), @@ -193,7 +191,7 @@ const updateStatus = async () => { if (lastTrack.url !== lastUrl || !startTimestamp) { startTimestamp = Date.now(); - }; + } lastUrl = lastTrack.url; diff --git a/plugins/pronoundb/db.ts b/plugins/pronoundb/db.ts index 5dd63b1..32bad00 100644 --- a/plugins/pronoundb/db.ts +++ b/plugins/pronoundb/db.ts @@ -1,7 +1,7 @@ import type { FluxStore } from "@uwu/shelter-defs"; const UserProfileStore = shelter.flux.stores.UserProfileStore as FluxStore<{ - getUserProfile(id: string): { bio: string, pronouns: string } | undefined; + getUserProfile(id: string): { bio: string; pronouns: string } | undefined; }>; const pronouns = { @@ -42,13 +42,12 @@ export const fromStore = (id) => { return pronounsToSearch.find((p) => pronounSource.includes(p)); }; -const endpoint = - "https://pronoundb.org/api/v2/lookup?platform=discord&ids="; +const endpoint = "https://pronoundb.org/api/v2/lookup?platform=discord&ids="; const options = { headers: { - "X-PronounDB-Source": "yellowsink/shelter-plugins" - } + "X-PronounDB-Source": "yellowsink/shelter-plugins", + }, }; let batch = new Map void>();