Closed
Description
Bot Version
v4.0.1
How are you hosting Modmail?
Other
Error Logs
None
Screenshots
No response
Additional Information
This only occurs on plugins that use multiple files.
More in-depth explanations can be found on discord.py discussions, here.
This happened to me quite a few times now since most of my plugins use multiple files. Updating the plugins does not re-import other files in same directory or sub-directories.
Steps to produce:
- Create a plugin with multiple files. Example:
├── plugin_folder
│ ├── plugin.py
│ ├── views.py - Make a change in
views.py
. - Update the plugin using
?plugin update ...
command. The changes inviews.py
do not take affect (at least until bot restart). If new attributes were added in a class inviews.py
, accessing it fromplugin.py
would raiseAttributeError
.