Skip to content

Plugins Api

Methods for getting info on plugins

get list(): string[]

A list of all the plugins installed

string[]

get<T>(name): Plugins[T]

Gets the exported values of a plugin, if it has been enabled

Type Parameter
T extends string | number
Parameter Type
name T

Plugins[T]


getHeaders(name): ScriptHeaders | null

Gets the headers of a plugin, such as version, author, and description

Parameter Type
name string

ScriptHeaders | null


isEnabled(name): boolean

Whether a plugin exists and is enabled

Parameter Type
name string

boolean


require<T>(name, downloadUrl?): Promise<Plugins[T]>

Gets a plugin by name, prompting the user to enable/download it if necessary. Returns a promise with its exports

Type Parameter
T extends string | number
Parameter Type
name T
downloadUrl? string

Promise<Plugins[T]>

api.libs.require("Desynchronize", "https://raw.githubusercontent.com/Gimloader/builds/main/plugins/Desynchronize.js");