Note you should NEVER be using or even looking at these libraries, they are not registered in the BaseClassLoader. This part is the biggest part of the plugin that works in the background inside the discord thread, It's a collection of third part libraries including DiscordPHP, React libraries, Monolog and much more. Technical note, The thread is completely independent of the Main thread and pocketmine's autoloader so collisions between my composer dependencies and anything else is impossible. We also execute API requests sent from the plugin base here and return a result in the near future when discord sends a response to our API request. This 'discord thread' is responsible for keeping a live connection to discords gateway so we can receive and pass on events back to the plugin base. The plugin interacts directly with the pocketmine server and sets up a child thread to start the connection to discord, its also the section responsible for handling API requests from other plugins and emitting events, providing data etc to other plugins. This is a very complicated plugin when looked at but its essentially broken down into 4 parts. Unfortunately its formatting is very weird on poggit please visit for API documentation Plugin Structure Please note that this plugin offers no standalone features, It is a central API plugin for external plugins to use/depend on. DiscordBot is a pocketmine plugin that provides an extensive API for plugin developers to interact with discord creating endless possibilities.