PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
791 stars 163 forks source link

load_module not working when using from_client_credentials #239

Closed iDutchy closed 2 years ago

iDutchy commented 2 years ago

When creating a commands.Bot instance using the from_client_credentials classmethod, Bot.load_module does not work.

Traceback (most recent call last):
  File "/home/dutchy/MyGames/bot.py", line 32, in <module>
     twitch_events.load_module("cogs.twitch.events")
  File "/home/dutchy/MyGames/venv/lib/python3.10/site-packages/twitchio/ext/commands/bot.py", line 275
     if name in self._modules:
AttributeError: 'Bot' object has no attribute '_modules'. Did you mean: '__module__'?