diff options
author | Skycloudd <51929172+Skycloudd@users.noreply.github.com> | 2022-08-30 19:00:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 19:00:54 +0000 |
commit | 9d7563a24d952b7e70c61eac5c70d75e14f8e1d4 (patch) | |
tree | 282534c2a98383f6173c7f243ee4e79d968db707 /cogs/errorhandler.py | |
parent | 3463ce9fdd66ef0add1603e539bc748b8ab515d2 (diff) | |
download | steve-bot-9d7563a24d952b7e70c61eac5c70d75e14f8e1d4.tar steve-bot-9d7563a24d952b7e70c61eac5c70d75e14f8e1d4.tar.gz steve-bot-9d7563a24d952b7e70c61eac5c70d75e14f8e1d4.tar.bz2 steve-bot-9d7563a24d952b7e70c61eac5c70d75e14f8e1d4.tar.lz steve-bot-9d7563a24d952b7e70c61eac5c70d75e14f8e1d4.tar.xz steve-bot-9d7563a24d952b7e70c61eac5c70d75e14f8e1d4.tar.zst steve-bot-9d7563a24d952b7e70c61eac5c70d75e14f8e1d4.zip |
update to discord.py==2.0.1 (#66)
Diffstat (limited to 'cogs/errorhandler.py')
-rw-r--r-- | cogs/errorhandler.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cogs/errorhandler.py b/cogs/errorhandler.py index d428d72..0b61e7d 100644 --- a/cogs/errorhandler.py +++ b/cogs/errorhandler.py @@ -56,13 +56,6 @@ class Errorhandler(commands.Cog): f"{ctx.author.mention}, you have to wait {round(error.retry_after, 2)} seconds before using this again" ) - # For this error example we check to see where it came from... - elif isinstance(error, commands.BadArgument): - if ( - ctx.command.qualified_name == "tag list" - ): # Check if the command being invoked is 'tag list' - await ctx.send("I could not find that member. Please try again.") - else: # All other Errors not returned come here. And we can just print the default TraceBack. print( @@ -73,5 +66,5 @@ class Errorhandler(commands.Cog): ) -def setup(bot): - bot.add_cog(Errorhandler(bot)) +async def setup(bot): + await bot.add_cog(Errorhandler(bot)) |