Add Vencord.Api.isEquicord

This commit is contained in:
thororen1234 2025-02-19 17:06:09 -05:00
parent be270012bd
commit 549923ed16
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -122,3 +122,8 @@ export const MessageUpdater = $MessageUpdater;
* An API allowing you to get an user setting
*/
export const UserSettings = $UserSettings;
/**
* Just used to identify if user is on Equicord as Vencord doesnt have this
*/
export const isEquicord = true;

View file

@ -30,8 +30,8 @@ import { chooseFile } from "@utils/web";
import { findByPropsLazy, findLazy, findStoreLazy } from "@webpack";
import { Button, Card, Constants, FluxDispatcher, Forms, lodash, Menu, MessageActions, PermissionsBits, PermissionStore, RestAPI, SelectedChannelStore, showToast, SnowflakeUtils, Toasts, useEffect, useState } from "@webpack/common";
import { ComponentType } from "react";
import { lastState as silentMessageEnabled } from "../silentMessageToggle";
import { lastState as silentMessageEnabled } from "../silentMessageToggle";
import { VoiceRecorderDesktop } from "./DesktopRecorder";
import { settings } from "./settings";
import { cl } from "./utils";