Plugin.api

Indicates whether or not the plugin has APIs. The plugin's APIs are always in the api.d file in the plugin's directory.

class Plugin
pure nothrow @property @safe @nogc
bool
api
()

Examples

static if(__traits(compile, { import example.api; })) {
   assert(server.plugins.filter!(a => a.namespace == "example")[0].api);
}

Meta