diff --git a/package.json b/package.json index 97c701c74..c4b5c153a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "equicord", "private": "true", - "version": "1.15.7.0", + "version": "1.15.8.0", "description": "The other cutest Discord client mod", "homepage": "https://github.com/Equicord/Equicord#readme", "bugs": { diff --git a/packages/discord-types/src/stores/AccessibilityStore.d.ts b/packages/discord-types/src/stores/AccessibilityStore.d.ts index 6cad93454..2de798992 100644 --- a/packages/discord-types/src/stores/AccessibilityStore.d.ts +++ b/packages/discord-types/src/stores/AccessibilityStore.d.ts @@ -74,9 +74,7 @@ export class AccessibilityStore extends FluxStore { get condensePickerWhenNarrow(): boolean; get youBarNameplateAnimation(): YouBarAnimationPreference; get youBarAvatarDecoAnimation(): YouBarAnimationPreference; - /** resolves youBarNameplateAnimation against useReducedMotion */ get animateYouBarNameplate(): boolean; - /** resolves youBarAvatarDecoAnimation against useReducedMotion */ get animateYouBarAvatarDeco(): boolean; get syncProfileThemeWithUserTheme(): boolean; get systemPrefersReducedMotion(): ReducedMotionPreference; diff --git a/packages/discord-types/src/stores/ApplicationStreamPreviewStore.d.ts b/packages/discord-types/src/stores/ApplicationStreamPreviewStore.d.ts index e8e66f19c..beb0da41b 100644 --- a/packages/discord-types/src/stores/ApplicationStreamPreviewStore.d.ts +++ b/packages/discord-types/src/stores/ApplicationStreamPreviewStore.d.ts @@ -4,6 +4,5 @@ export interface ApplicationStreamPreviewStore extends FluxStore { getIsPreviewLoading: (guildId: string | bigint | null, channelId: string | bigint, ownerId: string | bigint) => boolean; getPreviewURL: (guildId: string | bigint | null, channelId: string | bigint, ownerId: string | bigint) => string | undefined; getPreviewURLForStreamKey: (streamKey: string) => ReturnType; - /** true if no preview exists and fewer than 5 fetches failed, or the preview expired, and none is loading */ shouldFetchPreview: (guildId: string | bigint | null, channelId: string | bigint, ownerId: string | bigint) => boolean; } diff --git a/packages/discord-types/src/stores/ApplicationStreamingStore.d.ts b/packages/discord-types/src/stores/ApplicationStreamingStore.d.ts index bddc35ee4..86da099c2 100644 --- a/packages/discord-types/src/stores/ApplicationStreamingStore.d.ts +++ b/packages/discord-types/src/stores/ApplicationStreamingStore.d.ts @@ -31,7 +31,6 @@ export interface ApplicationStreamingStore extends FluxStore { getAllApplicationStreamsForChannel: (channelId: string | bigint) => ApplicationStream[]; getAllActiveStreamsForChannel: (channelId: string | bigint) => Stream[]; getAnyStreamForUser: (userId: string | bigint) => Stream | ApplicationStream | null; - /** like getAnyStreamForUser, but skips streams with discoverable set to false */ getAnyDiscoverableStreamForUser: (userId: string | bigint) => ApplicationStream | null; getStreamForUser: (userId: string | bigint, guildId?: string | bigint | null) => Stream | null; getCurrentUserActiveStream: () => Stream | null; diff --git a/packages/discord-types/src/stores/AuthorizedAppsStore.d.ts b/packages/discord-types/src/stores/AuthorizedAppsStore.d.ts index 4e270300e..f44711768 100644 --- a/packages/discord-types/src/stores/AuthorizedAppsStore.d.ts +++ b/packages/discord-types/src/stores/AuthorizedAppsStore.d.ts @@ -2,7 +2,7 @@ import { FluxStore } from ".."; export interface AuthorizedAppToken { id: string; - application: { id: string; parent_id?: string | null; [key: string]: unknown; }; + application: { id: string; parent_id?: string | null;[key: string]: unknown; }; scopes: string[]; } @@ -11,10 +11,8 @@ export type AuthorizedAppsFetchState = "NOT_FETCHED" | "FETCHING" | "FETCHED"; export class AuthorizedAppsStore extends FluxStore { getNewestTokenForApplication(applicationId: string): AuthorizedAppToken | null; getNewestTokens(): AuthorizedAppToken[]; - /** tokens whose application has no parent_id */ getNewestTokensForNonChildrenApplications(): AuthorizedAppToken[]; getFetchState(): AuthorizedAppsFetchState; getFetchStateForApplication(applicationId: string): AuthorizedAppsFetchState; - /** incremented whenever a fetch state changes */ getApplicationFetchStateVersion(): number; } diff --git a/packages/discord-types/src/stores/ClientThemesBackgroundStore.d.ts b/packages/discord-types/src/stores/ClientThemesBackgroundStore.d.ts index ef69e02ff..666f4c28b 100644 --- a/packages/discord-types/src/stores/ClientThemesBackgroundStore.d.ts +++ b/packages/discord-types/src/stores/ClientThemesBackgroundStore.d.ts @@ -7,10 +7,8 @@ export interface GradientPreset { export class ClientThemesBackgroundStore extends FluxStore { get gradientPreset(): GradientPreset | undefined; - /** true while previewing a theme the user can't use */ get isPreview(): boolean; get isCoachmark(): boolean; get mobilePendingThemeIndex(): number | undefined; - /** css linear-gradient for the current preset, or null if none */ getLinearGradient(): string | null; } diff --git a/packages/discord-types/src/stores/ConnectedAccountsStore.d.ts b/packages/discord-types/src/stores/ConnectedAccountsStore.d.ts index bca40cf3f..e5d5a6e13 100644 --- a/packages/discord-types/src/stores/ConnectedAccountsStore.d.ts +++ b/packages/discord-types/src/stores/ConnectedAccountsStore.d.ts @@ -2,7 +2,6 @@ import { ConnectedAccount, FluxStore } from ".."; export class ConnectedAccountsStore extends FluxStore { getAccounts(): ConnectedAccount[]; - /** accounts for platforms that are connected locally, like xbox or playstation */ getLocalAccounts(): ConnectedAccount[]; getAccount(accountId: string | null | undefined, type: string): ConnectedAccount | undefined; getLocalAccount(type: string): ConnectedAccount | undefined; diff --git a/packages/discord-types/src/stores/ExperimentStore.d.ts b/packages/discord-types/src/stores/ExperimentStore.d.ts index 18f50863b..1a42c38e0 100644 --- a/packages/discord-types/src/stores/ExperimentStore.d.ts +++ b/packages/discord-types/src/stores/ExperimentStore.d.ts @@ -113,12 +113,9 @@ export class ExperimentStore extends FluxStore { getUserExperimentDescriptor(experimentId: string): ExperimentAssignmentOverride; hasRegisteredExperiment(experimentId: string): boolean; - /** sends an experiment exposure event unless it was already tracked in the last 7 days */ trackExposure: (options: TrackExposureOptions) => false | void; - /** returns [experimentId, time] pairs for exposures of the given type and experiment */ getRecentExposures(type: "user" | "guild", experimentId: string): [string, number][]; hasExperimentTrackedExposure(experimentId: string, descriptor: ExperimentExposureDescriptor, location?: string, triggerDebugging?: boolean): boolean; - /** loads experiments from the cache snapshot */ loadCache(): void; takeSnapshot(): { version: number; data: Record; }; } diff --git a/packages/discord-types/src/stores/MessageStore.d.ts b/packages/discord-types/src/stores/MessageStore.d.ts index 3aa5dc158..be6a0c963 100644 --- a/packages/discord-types/src/stores/MessageStore.d.ts +++ b/packages/discord-types/src/stores/MessageStore.d.ts @@ -55,9 +55,7 @@ export class MessageStore extends FluxStore { getMessages(channelId: string): ChannelMessages; hasCurrentUserSentMessage(channelId: string): boolean; hasCurrentUserSentMessageSinceAppStart(channelId: string): boolean; - /** true if the current user sent any message other than a friend request accepted one */ hasCurrentUserSentWaveBlockingMessage(channelId: string): boolean; - /** notice attached to a message removed by automod, keyed by message id */ getAutomodRemovalNotice(messageId: string): unknown; hasPresent(channelId: string): boolean; isLoadingMessages(channelId: string): boolean; diff --git a/packages/discord-types/src/stores/PrivateChannelSortStore.d.ts b/packages/discord-types/src/stores/PrivateChannelSortStore.d.ts index 358c87ac4..3358fe70c 100644 --- a/packages/discord-types/src/stores/PrivateChannelSortStore.d.ts +++ b/packages/discord-types/src/stores/PrivateChannelSortStore.d.ts @@ -9,8 +9,6 @@ export interface PrivateChannelSortEntry { export class PrivateChannelSortStore extends FluxStore { getPrivateChannelIds(): string[]; - /** returns [favorites, others], both sorted by last message */ getSortedChannels(): [PrivateChannelSortEntry[], PrivateChannelSortEntry[]]; - /** returns a map of channel ids to last message ids */ serializeForOverlay(): Record; } diff --git a/packages/discord-types/src/stores/ReferencedMessageStore.d.ts b/packages/discord-types/src/stores/ReferencedMessageStore.d.ts index 641446cff..7e06e6cca 100644 --- a/packages/discord-types/src/stores/ReferencedMessageStore.d.ts +++ b/packages/discord-types/src/stores/ReferencedMessageStore.d.ts @@ -1,7 +1,6 @@ import { FluxStore, Message } from ".."; export interface ReferencedMessage { - /** 0 loaded, 1 not loaded, 2 deleted */ state: number; message?: Message; } diff --git a/packages/discord-types/src/stores/RunningGameStore.d.ts b/packages/discord-types/src/stores/RunningGameStore.d.ts index e84370455..f7fdcfbf5 100644 --- a/packages/discord-types/src/stores/RunningGameStore.d.ts +++ b/packages/discord-types/src/stores/RunningGameStore.d.ts @@ -35,7 +35,6 @@ export class RunningGameStore extends FluxStore { getCurrentGameForAnalytics(): RunningGame | null; getCurrentNonGameForAnalytics(): RunningGame | null; getDebugRunningGame(): RunningGame | null; - /** last detection pass, null until the first scan */ getDetectionDebug(): { timestamp: number; totalFromNative: number; entries: { game: RunningGame; outcome: { kind: string; }; }[]; } | null; canCollectExecutableFingerprintsForRunningGames(): boolean; getGameForName(name: string): RunningGame | null; diff --git a/packages/discord-types/src/stores/SessionsStore.d.ts b/packages/discord-types/src/stores/SessionsStore.d.ts index a07efeca7..c47cfd054 100644 --- a/packages/discord-types/src/stores/SessionsStore.d.ts +++ b/packages/discord-types/src/stores/SessionsStore.d.ts @@ -15,11 +15,9 @@ export interface Session { export class SessionsStore extends FluxStore { getSessions(): Record; - /** session for the current connection */ getSession(): Session | null | undefined; getSessionById(sessionId: string): Session | undefined; getActiveSession(): Session | undefined; - /** activities from the active session on another device */ getRemoteActivities(): Activity[]; getHiddenActivities(): Activity[]; getRemoteApplicationActivity(applicationId: string | null | undefined): Activity | null | undefined; diff --git a/packages/discord-types/src/stores/SortedGuildStore.d.ts b/packages/discord-types/src/stores/SortedGuildStore.d.ts index b44a9e251..1a9ea6db1 100644 --- a/packages/discord-types/src/stores/SortedGuildStore.d.ts +++ b/packages/discord-types/src/stores/SortedGuildStore.d.ts @@ -20,7 +20,6 @@ export interface GuildsTree { export class SortedGuildStore extends FluxStore { getGuildsTree(): GuildsTree; - /** every folder and guild node, depth first */ getFlattenedGuildFolderList(): GuildsTreeNode[]; getCompatibleGuildFolders(): GuildFolder[]; getFastListGuildFolders(): GuildsTreeNode[]; diff --git a/packages/discord-types/src/stores/SpellCheckStore.d.ts b/packages/discord-types/src/stores/SpellCheckStore.d.ts index 134fc18f2..1cb95d43e 100644 --- a/packages/discord-types/src/stores/SpellCheckStore.d.ts +++ b/packages/discord-types/src/stores/SpellCheckStore.d.ts @@ -2,7 +2,6 @@ import { FluxStore } from ".."; export class SpellCheckStore extends FluxStore { hasLearnedWord(word: string): boolean; - /** returns the first learned word found as a whole word in text */ findLearnedWordIn(text: string): string | null; isEnabled(): boolean; } diff --git a/packages/discord-types/src/stores/StreamerModeStore.d.ts b/packages/discord-types/src/stores/StreamerModeStore.d.ts index 206a8d527..5d3aa0c1d 100644 --- a/packages/discord-types/src/stores/StreamerModeStore.d.ts +++ b/packages/discord-types/src/stores/StreamerModeStore.d.ts @@ -22,6 +22,5 @@ export class StreamerModeStore extends FluxStore { getSettings(): StreamerModeSettings; getState(): Record; - /** true only when the overlay widget is listed in disabledOverlayWidgets and streamer mode is enabled */ isOverlayWidgetDisabled(widget: string): boolean; } diff --git a/packages/discord-types/src/stores/UserProfileSettingsStore.d.ts b/packages/discord-types/src/stores/UserProfileSettingsStore.d.ts index 15eff8f63..39165102e 100644 --- a/packages/discord-types/src/stores/UserProfileSettingsStore.d.ts +++ b/packages/discord-types/src/stores/UserProfileSettingsStore.d.ts @@ -7,10 +7,7 @@ export class UserProfileSettingsStore extends FluxStore { getErrors(guildId?: string): Record; getTryItOutChanges(): Record; hasTryItOutChanges(): boolean; - /** true if any pending change exists for the user or any guild */ hasUnsavedChanges(): boolean; - /** true if there are pending changes for the user or the selected guild */ showNotice(): boolean; - /** false if a pending bio is over the length limit */ canSubmit(): boolean; } diff --git a/packages/discord-types/src/stores/UserSettingsProtoStore.d.ts b/packages/discord-types/src/stores/UserSettingsProtoStore.d.ts index 832bb6515..da7e9f7eb 100644 --- a/packages/discord-types/src/stores/UserSettingsProtoStore.d.ts +++ b/packages/discord-types/src/stores/UserSettingsProtoStore.d.ts @@ -224,10 +224,7 @@ export class UserSettingsProtoStore extends FluxStore { // TODO: finish typing getGuildDismissedContentState(guildId: string): any; getGuildsProto(): Record; - /** guild theme source preference from appearance settings, 0 if unspecified */ getDefaultGuildThemePreference(): number; - /** per guild theme source preference, 0 if unspecified */ getGuildThemeSourcePreferenceOverride(guildId: string | null | undefined): number; - /** override if set, otherwise the default preference */ resolveGuildThemeSourcePreference(guildId: string | null | undefined): number; } diff --git a/src/webpack/common/stores.ts b/src/webpack/common/stores.ts index ad530c159..002e375ca 100644 --- a/src/webpack/common/stores.ts +++ b/src/webpack/common/stores.ts @@ -87,6 +87,25 @@ export let ExperimentStore: t.ExperimentStore; export let UserAffinitiesStore: t.UserAffinitiesStore; export let ApplicationStreamingStore: t.ApplicationStreamingStore; export let ApplicationStreamPreviewStore: t.ApplicationStreamPreviewStore; +export let SortedGuildStore: t.SortedGuildStore; +export let JoinedThreadsStore: t.JoinedThreadsStore; +export let SafetyHubStore: t.SafetyHubStore; +export let PrivateChannelSortStore: t.PrivateChannelSortStore; +export let UserProfileSettingsStore: t.UserProfileSettingsStore; +export let AuthorizedAppsStore: t.AuthorizedAppsStore; +export let ChannelSectionStore: t.ChannelSectionStore; +export let ClientThemesBackgroundStore: t.ClientThemesBackgroundStore; +export let ConnectedAccountsStore: t.ConnectedAccountsStore; +export let ChannelMemberStore: t.ChannelMemberStore; +export let ThreadMemberListStore: t.ThreadMemberListStore; +export let CollapsedVoiceChannelStore: t.CollapsedVoiceChannelStore; +export let ReferencedMessageStore: t.ReferencedMessageStore; +export let SessionsStore: t.SessionsStore; +export let UserGuildJoinRequestStore: t.UserGuildJoinRequestStore; +export let SelfPresenceStore: t.SelfPresenceStore; +export let MessageRequestStore: t.MessageRequestStore; +export let GIFPickerViewStore: t.GIFPickerViewStore; +export let GuildReadStateStore: t.GuildReadStateStore; export let SortedGuildStore: t.SortedGuildStore; export let JoinedThreadsStore: t.JoinedThreadsStore;