diff --git a/docs/src/Guides/03 Creating Commands.md b/docs/src/Guides/03 Creating Commands.md index abe04237a..aa4f46c60 100644 --- a/docs/src/Guides/03 Creating Commands.md +++ b/docs/src/Guides/03 Creating Commands.md @@ -263,7 +263,7 @@ In there, you have three seconds to return whatever choices you want to the user from interactions import AutocompleteContext @my_command_function.autocomplete("string_option") -async def autocomplete(self, ctx: AutocompleteContext): +async def autocomplete(ctx: AutocompleteContext): string_option_input = ctx.input_text # can be empty # you can use ctx.kwargs.get("name") to get the current state of other options - note they can be empty too @@ -507,7 +507,7 @@ import traceback from interactions.api.events import CommandError @listen(CommandError, disable_default_listeners=True) # tell the dispatcher that this replaces the default listener -async def on_command_error(self, event: CommandError): +async def on_command_error(event: CommandError): traceback.print_exception(event.error) if not event.ctx.responded: await event.ctx.send("Something went wrong.") diff --git a/pyproject.toml b/pyproject.toml index 68778cfea..1d28bd18b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "interactions.py" -version = "5.9.2" +version = "5.10.0" description = "Easy, simple, scalable and modular: a Python API wrapper for interactions." authors = [ "LordOfPolls ",