- dynamicLoadPlugin
Plugin dynamicLoadPlugin(string path, PluginState state)
Loads a plugin from a dynamic library, optionally restoring previous plugin
state.
- dynamicLoadPlugin
Plugin dynamicLoadPlugin(string path, PluginState state)
Undocumented in source. Be warned that the author may not have intended to support it.
- dynamicReloadPlugin
Plugin dynamicReloadPlugin(Plugin p)
Reloads a plugin which was previously loaded as a dynamic library. This
function restores previous plugin state.
- dynamicReloadPlugin
Plugin dynamicReloadPlugin(Plugin p)
Undocumented in source. Be warned that the author may not have intended to support it.
- feature
bool feature(BotFeatures[] features)
Returns true if the current bot instance/configuration supports all of the
passed BotFeature flags.
- loadPlugin
void loadPlugin(Plugin p, PluginState state)
Loads a plugin into the bot, optionally restoring previous plugin state.
- run
void run()
- unloadPlugin
void unloadPlugin(Plugin p)
Unloads a plugin from the bot, unbinding all listeners and commands.
- unloadPlugin
void unloadPlugin(string name)
Unloads a plugin from the bot by name.
The Bot class is an extensible, fully-featured base for building Bots with the dscord library. It was meant to serve as a base class that can be extended in seperate projects.