Fix bound method autocomplete callbacks not working

This also adds some regression tests
This commit is contained in:
Rapptz
2022-05-09 17:24:48 -04:00
parent b2929513cc
commit 40176bb71b
3 changed files with 134 additions and 5 deletions

View File

@ -104,9 +104,7 @@ class MockTree(discord.app_commands.CommandTree):
self.last_exception = None
return await super().call(interaction)
async def on_error(
self, interaction: discord.Interaction, error: discord.app_commands.AppCommandError
) -> None:
async def on_error(self, interaction: discord.Interaction, error: discord.app_commands.AppCommandError) -> None:
self.last_exception = error