Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Aluerie committed Nov 19, 2024
1 parent 6fdb78f commit 957abfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ async def start(self) -> None:
)

@override
async def get_context(self, origin: discord.Interaction | discord.Message) -> AluContext: # pyright: ignore[reportIncompatibleMethodOverride]
async def get_context(self, origin: discord.Interaction | discord.Message) -> AluContext:
return await super().get_context(origin, cls=AluContext)

@property
Expand Down Expand Up @@ -521,7 +521,7 @@ async def on_error(self: AluBot, event: str, *args: Any, **kwargs: Any) -> None:
await self.exc_manager.register_error(exception, embed)

@override
async def on_command_error(self, ctx: AluContext, error: commands.CommandError | Exception) -> None: # pyright: ignore[reportIncompatibleMethodOverride]
async def on_command_error(self, ctx: AluContext, error: commands.CommandError | Exception) -> None:
"""Handler called when an error is raised while invoking a ctx command.
In case of problems - check out on_command_error in parent BotBase class - it's not simply `pass`
Expand Down

0 comments on commit 957abfa

Please sign in to comment.