diff --git a/docs/features/plugin/functions/tab-shared/Common.md b/docs/features/plugin/functions/tab-shared/Common.md index d7916db..ac21f1c 100644 --- a/docs/features/plugin/functions/tab-shared/Common.md +++ b/docs/features/plugin/functions/tab-shared/Common.md @@ -50,7 +50,7 @@ class Filter: pass # The inlet method is only used for Filter but the __user__ handling is the same - def inlet(body: dict, __user__: dict): + def inlet(self, body: dict, __user__: dict): # Because UserValves are defined per user they are only available # on use. # Note that although __user__ is a dict, __user__["valves"] is a diff --git a/docs/features/plugin/tools/index.mdx b/docs/features/plugin/tools/index.mdx index a032be0..d89fbf2 100644 --- a/docs/features/plugin/tools/index.mdx +++ b/docs/features/plugin/tools/index.mdx @@ -137,7 +137,7 @@ class Tools: pass # The __user__ handling is the same for Filters, Tools and Functions. - def test_the_tool(message: str, __user__: dict): + def test_the_tool(self, message: str, __user__: dict): """ This is a test tool. If the user asks you to test the tools, put any string you want in the message argument.