* Add reload_extension helper * Removes unused message reaction event handling Eliminates dead code for message reaction events that were not being processed or utilized by the application. Cleans up the event dispatcher by removing the unused parser method and event mappings for reaction add/remove events.
539 B
539 B
Extension Loader
The disagreement.ext.loader
module provides simple helpers to manage optional
extensions. Extensions are regular Python modules that expose a setup
function
called when the extension is loaded.
from disagreement.ext import loader
loader.load_extension(name)
– Import and initialize an extension.loader.unload_extension(name)
– Tear down and remove a previously loaded extension.loader.reload_extension(name)
– Convenience wrapper that unloads then loads the extension again.