Skip to content

Commit

Permalink
Fixed stub issue for error_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
49Indium committed Mar 7, 2024
1 parent 760102e commit 49eb5eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions uqcsbot/error_handler.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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`"
)
Expand Down

0 comments on commit 49eb5eb

Please sign in to comment.