diff options
author | 2019-09-28 18:03:58 +1000 | |
---|---|---|
committer | 2019-09-28 18:03:58 +1000 | |
commit | db98337337efc0592d4ffbf5aded12b66e3f9a4d (patch) | |
tree | a43b86dac220c43fb32215b80f1374225d2742e0 | |
parent | Lovely lemon let loose and forgot linting. (diff) | |
parent | Apply suggestions from code review (diff) |
Merge pull request #460 from python-discord/help-fix
Fix help command invocation
-rw-r--r-- | bot/cogs/help.py | 4 | ||||
-rw-r--r-- | bot/cogs/watchchannels/watchchannel.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bot/cogs/help.py b/bot/cogs/help.py index 4971cd0bb..37d12b2d5 100644 --- a/bot/cogs/help.py +++ b/bot/cogs/help.py @@ -110,9 +110,9 @@ class HelpSession: cog = self._bot.cogs.get(query) if cog: return Cog( - name=cog.__class__.__name__, + name=cog.qualified_name, description=inspect.getdoc(cog), - commands=[c for c in self._bot.commands if c.instance is cog] + commands=[c for c in self._bot.commands if c.cog is cog] ) self._handle_not_found(query) diff --git a/bot/cogs/watchchannels/watchchannel.py b/bot/cogs/watchchannels/watchchannel.py index 122e3dfe8..ce8014d69 100644 --- a/bot/cogs/watchchannels/watchchannel.py +++ b/bot/cogs/watchchannels/watchchannel.py @@ -148,8 +148,8 @@ class WatchChannel(metaclass=CogABCMeta): title=f"Warning: Failed to retrieve user cache for the {self.__class__.__name__} watch channel", text="Could not retrieve the list of watched users from the API and messages will not be relayed.", ping_everyone=True, - icon=Icons.token_removed, - color=Color.red() + icon_url=Icons.token_removed, + colour=Color.red() ) async def fetch_user_cache(self) -> bool: |