You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is one of the unfortunate flaws of load_extensions().
If you change the working directory from which the process is launched to ./centurybot/ instead of the top-level directory, load_extensions("module") should work, but this might break other things in your code that relied on a specific cwd.
Running your code as a module would also work, but requires you to adjust some imports.
Alternatively, the manual approach of iterating through os.listdir as you did before is perfectly fine too.
#796 aims to improve load_extensions significantly, but there are still a couple edge cases to be ironed out.
Summary
She misidentifies the audience
Reproduction Steps
Minimal Reproducible Code
Expected Results
I expected cogs to run without a loop for
Actual Results
Mistake
Intents
disnake.Intents.all()
System Information
Checklist
Additional Context
https://discord.com/channels/808030843078836254/1220966362747244555/1221327569585176606
No response
The text was updated successfully, but these errors were encountered: