diff --git a/uqcsbot/error_handler.py b/uqcsbot/error_handler.py index e6a1ec0..de60587 100644 --- a/uqcsbot/error_handler.py +++ b/uqcsbot/error_handler.py @@ -1,5 +1,4 @@ from discord.ext import commands -from discord.ext.commands.errors import MissingRequiredArgument import logging from typing import Any from uqcsbot.bot import UQCSBot @@ -12,7 +11,7 @@ class ErrorHandler(commands.Cog): @commands.Cog.listener() async def on_command_error(self, ctx: commands.Context[UQCSBot], err: Any): - if isinstance(err, MissingRequiredArgument): + if isinstance(err, commands.errors.MissingRequiredArgument): await ctx.send( "Missing required argument. For further information refer to `!help`" )