Skip to content

core/detect ​

Variables ​

VENCORD_SEARCH_PATHS ​

ts
const VENCORD_SEARCH_PATHS: string[];

Defined in: venpm/src/core/detect.ts:5

Functions ​

checkGitAvailable() ​

ts
function checkGitAvailable(shell): Promise<boolean>;

Defined in: venpm/src/core/detect.ts:96

Check whether git is available on PATH.

Parameters ​

ParameterType
shellShellRunner

Returns ​

Promise<boolean>


checkPnpmAvailable() ​

ts
function checkPnpmAvailable(shell): Promise<boolean>;

Defined in: venpm/src/core/detect.ts:108

Check whether pnpm is available on PATH.

Parameters ​

ParameterType
shellShellRunner

Returns ​

Promise<boolean>


detectDiscordBinary() ​

ts
function detectDiscordBinary(fs): Promise<string | null>;

Defined in: venpm/src/core/detect.ts:84

Detect the Discord binary path.

Returns the first candidate that exists on disk, or null.

Parameters ​

ParameterType
fsFileSystem

Returns ​

Promise<string | null>


detectVencordPath() ​

ts
function detectVencordPath(fs): Promise<string | null>;

Defined in: venpm/src/core/detect.ts:30

Detect the Vencord source checkout path.

Checks $VENPM_VENCORD_PATH first, then scans VENCORD_SEARCH_PATHS. A path is valid when <path>/package.json exists.

Parameters ​

ParameterType
fsFileSystem

Returns ​

Promise<string | null>

Absolute path string or null when not found.


resolveTilde() ​

ts
function resolveTilde(p): string;

Defined in: venpm/src/core/detect.ts:15

Replace a leading ~ with the user's home directory.

Parameters ​

ParameterType
pstring

Returns ​

string

Disclaimer — Not affiliated with Discord Inc. or Vencord. Client mods are against Discord's ToS. Use at your own risk.