aboutsummaryrefslogtreecommitdiff
path: root/cogs/errorhandler.py
diff options
context:
space:
mode:
authorSkycloudd <51929172+Skycloudd@users.noreply.github.com>2022-08-30 19:00:54 +0000
committerGitHub <noreply@github.com>2022-08-30 19:00:54 +0000
commit9d7563a24d952b7e70c61eac5c70d75e14f8e1d4 (patch)
tree282534c2a98383f6173c7f243ee4e79d968db707 /cogs/errorhandler.py
parent3463ce9fdd66ef0add1603e539bc748b8ab515d2 (diff)
downloadsteve-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.py11
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))