class Mongoose extends Plugin<{
transport: "any";
runtime: "server";
}>Member visibility
Filter class members by access level.
Mongoose(host: CoreBase, options: MongooseOptions)Showing members with Protected visibility and higher.
public connection: Mongoosecore
The host, typed to the transport whose Plugin base this class extends.
protected core: TCoreInherited from:Plugin
public static readonly idkv
This plugin's records in the bot's config.kv, stored under its attach key. Two attachments of
one plugin class each get their own records. Renaming the attach key leaves the records under
the old key behind.
logger
Logs under the plugin's class name, on the channel its attach key sets.
public get services(): MongooseServicesThrows:
A SeedcordError if accessed before the plugin finishes initializing.
public override async codegen(): Promise<{
services: Record<
string,
Constructor<object>
>;
}>onHmr(_event: HmrUpdateEvent): Promisable<void>Inherited from:Plugin
ready()
Runs in the Ready phase, after every attached plugin's init() has resolved. The other Ready
tasks run alongside it, including the http server binding its port.
Override it when your work needs a logged-in client or a resolved application id.
ready?(): Promisable<void>Inherited from:Plugin
registerCriticalFiles()
Registers critical file patterns that should trigger a full restart when changed in Dev HMR.
rejectOptions()
Rejects the options this plugin got.