πŸ‡ΊπŸ‡²
eng docs
  • πŸ‘‹Welcome to pbmodular wiki!
  • 🐦PBModular github repository
  • πŸ“²Quick start
    • πŸ–₯️Bot structure
    • πŸ““Module structure
  • ✏️module development
    • πŸ’»Initial structure and a simple handler
    • 🌎Traslations
    • πŸ“Multifiling
    • β˜‘οΈUsing /start
    • πŸ“ƒComparison page
    • βœ…Command permission system
    • 🐍Using 3rd party python packages
    • πŸ“‹Getting the list of loaded modules
  • ✨Extended usage
    • β˜‘οΈModule permissions
    • πŸ’½Database usage
    • πŸ”ƒCallback functions
    • ▢️Loader usage
    • πŸ“₯Load module
    • πŸ“€Unload module
    • βœ…Downloading module
    • πŸ”„Updating a module/extension
    • πŸ—‘οΈDeleting a module
    • ⬇️Getting an internal name from a common name
  • πŸ’¬Publishing
    • πŸ’¬Publishing modules
Powered by GitBook
On this page
  1. ✨Extended usage

πŸ“₯Load module

def load_module(self, name: str) -> Optional[str]:

Where name is the name of the module folder, followed by the internal name. Returns the base name of the module (specified in info.yaml) on success, and None on failure

PreviousLoader usageNextUnload module

Last updated 1 year ago