From c590d036c1a67a5dffadebff44507d977d195d41 Mon Sep 17 00:00:00 2001 From: i0bs <41456914+i0bs@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:45:12 -0400 Subject: [PATCH] docs: add new logic notation --- interactions/models/internal/application_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interactions/models/internal/application_commands.py b/interactions/models/internal/application_commands.py index 38e745b5c..07b9e9501 100644 --- a/interactions/models/internal/application_commands.py +++ b/interactions/models/internal/application_commands.py @@ -1190,7 +1190,9 @@ def modal_callback(*custom_id: str | re.Pattern) -> Callable[[AsyncCallable], Mo Your callback will be given a single argument, `ModalContext` Note: - This can optionally take a regex pattern, which will be used to match against the custom ID of the modal + This can optionally take a regex pattern, which will be used to match against the custom ID of the modal. + + If you do not supply a `custom_id`, the name of the coroutine will be used instead. Args: