listchannels -> listchannel, keep error print

Avoids conflict with another cog
This commit is contained in:
aikaterna
2018-10-31 20:47:04 -07:00
committed by GitHub
parent b82e4252cd
commit 33b1153293

View File

@@ -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()