Fix Lint
This commit is contained in:
parent
9a906c9cb6
commit
2dd277a270
6 changed files with 15 additions and 16 deletions
|
|
@ -3,3 +3,4 @@ export * from "./channel";
|
|||
export * from "./commands";
|
||||
export * from "./messages";
|
||||
export * from "./misc";
|
||||
export * from "./user";
|
||||
|
|
|
|||
9
packages/discord-types/enums/user.ts
Normal file
9
packages/discord-types/enums/user.ts
Normal 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
|
||||
}
|
||||
|
|
@ -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[];
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue