mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Mark public callbacks as positional-only
This commit is contained in:
1 parent
01bb7ecb79
commit
b12b4b18fd
6 files changed
+23
-24
No files matched your search
+2
-2
@@ -134,7 +134,7 @@ class Modal(View):
|
||||
|
||||
super().__init__(timeout=timeout)
|
||||
|
||||
async def on_submit(self, interaction: Interaction) -> None:
|
||||
async def on_submit(self, interaction: Interaction, /) -> None:
|
||||
"""|coro|
|
||||
|
||||
Called when the modal is submitted.
|
||||
@@ -146,7 +146,7 @@ class Modal(View):
|
||||
"""
|
||||
pass
|
||||
|
||||
async def on_error(self, interaction: Interaction, error: Exception) -> None:
|
||||
async def on_error(self, interaction: Interaction, error: Exception, /) -> None:
|
||||
"""|coro|
|
||||
|
||||
A callback that is called when :meth:`on_submit`
|
||||
|
||||
Reference in new issue
Block a user