From 2d2fcb0113d22b8bc2023bc1f843687ea9fbb71b Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Thu, 26 Sep 2019 20:56:39 -0400 Subject: Fix incorrect kwargs in watchchannel modlog send --- bot/cogs/watchchannels/watchchannel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- cgit v1.2.3 From d3d0672612ef96de8ebaf8bd16f2862d1f0ffae9 Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Thu, 26 Sep 2019 21:14:59 -0400 Subject: Use Command.cog_name attr instead of missing instance attr --- bot/cogs/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/help.py b/bot/cogs/help.py index 4971cd0bb..352ea63ce 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.cog_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_name == cog.cog_name] ) self._handle_not_found(query) -- cgit v1.2.3 From 6409846e5d6164a60623a9540258bc7d80253412 Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Fri, 27 Sep 2019 13:38:34 -0400 Subject: Apply suggestions from code review Co-Authored-By: Mark --- bot/cogs/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/help.py b/bot/cogs/help.py index 352ea63ce..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.cog_name, + name=cog.qualified_name, description=inspect.getdoc(cog), - commands=[c for c in self._bot.commands if c.cog_name == cog.cog_name] + commands=[c for c in self._bot.commands if c.cog is cog] ) self._handle_not_found(query) -- cgit v1.2.3