This commit is contained in:
thororen1234 2025-12-22 08:37:51 -05:00
parent 9a906c9cb6
commit 2dd277a270
No known key found for this signature in database
6 changed files with 15 additions and 16 deletions

View file

@ -3,3 +3,4 @@ export * from "./channel";
export * from "./commands";
export * from "./messages";
export * from "./misc";
export * from "./user";

View file

@ -0,0 +1,9 @@
export const enum RelationshipType {
NONE = 0,
FRIEND = 1,
BLOCKED = 2,
INCOMING_REQUEST = 3,
OUTGOING_REQUEST = 4,
IMPLICIT = 5,
SUGGESTION = 6
}

View file

@ -1,15 +1,5 @@
import { FluxStore } from "..";
export const enum RelationshipType {
NONE = 0,
FRIEND = 1,
BLOCKED = 2,
INCOMING_REQUEST = 3,
OUTGOING_REQUEST = 4,
IMPLICIT = 5,
SUGGESTION = 6
}
export class RelationshipStore extends FluxStore {
getBlockedIDs(): string[];
getBlockedOrIgnoredIDs(): string[];

View file

@ -19,8 +19,8 @@
import { definePluginSettings } from "@api/Settings";
import { EquicordDevs } from "@utils/constants";
import definePlugin, { makeRange, OptionType } from "@utils/types";
import { Channel, Message, RelationshipType, User } from "@vencord/discord-types";
import { MessageType } from "@vencord/discord-types/enums";
import { Channel, Message, User } from "@vencord/discord-types";
import { MessageType, RelationshipType } from "@vencord/discord-types/enums";
import { findByPropsLazy, findStore } from "@webpack";
import { Button, ChannelStore, GuildRoleStore, NavigationRouter, RelationshipStore, SelectedChannelStore, StreamerModeStore, UserStore } from "@webpack/common";
import { ReactNode } from "react";

View file

@ -17,8 +17,7 @@
*/
import { getUniqueUsername, openUserProfile } from "@utils/discord";
import { RelationshipType } from "@vencord/discord-types";
import { ChannelType } from "@vencord/discord-types/enums";
import { ChannelType, RelationshipType } from "@vencord/discord-types/enums";
import { UserUtils } from "@webpack/common";
import settings from "./settings";

View file

@ -20,8 +20,8 @@ import * as DataStore from "@api/DataStore";
import { popNotice, showNotice } from "@api/Notices";
import { showNotification } from "@api/Notifications";
import { getUniqueUsername, openUserProfile } from "@utils/discord";
import { FluxStore, RelationshipType } from "@vencord/discord-types";
import { ChannelType } from "@vencord/discord-types/enums";
import { FluxStore } from "@vencord/discord-types";
import { ChannelType, RelationshipType } from "@vencord/discord-types/enums";
import { findStoreLazy } from "@webpack";
import { ChannelStore, GuildMemberStore, GuildStore, RelationshipStore, UserStore, UserUtils } from "@webpack/common";