From 33b11532939c5e0d59a72a93cd0a701f7105f79c Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Wed, 31 Oct 2018 20:47:04 -0700 Subject: [PATCH] listchannels -> listchannel, keep error print Avoids conflict with another cog --- tools/tools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/tools.py b/tools/tools.py index eeffbdb..00567cd 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -21,7 +21,6 @@ class Tools(BaseCog): self.bot = bot async def _Tools__error(self, ctx, error): - return if error.__cause__: cause = error.__cause__ print(f"Tools Cog :: Error Occured ::\n{error}\n{cause}\n") @@ -384,7 +383,7 @@ class Tools(BaseCog): @commands.guild_only() @checks.mod_or_permissions(manage_channels=True) @commands.command(name='listchannel', aliases=['channellist']) - async def listchannels(self, ctx): + async def listchannel(self, ctx): """ List the channels of the current server """ @@ -791,7 +790,6 @@ class Tools(BaseCog): role = discord.utils.find(lambda r: r.name.lower() == str(rolename).lower(), roles) return role - def sort_channels(self, channels): temp = dict()