Fix bound method autocomplete callbacks not working

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

No files matched your search

+1 -3
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