aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-10 09:06:04 -0400
committerRapptz <[email protected]>2021-06-10 09:06:04 -0400
commit04573c3c06d5766783a882c1973e624614e0bc6e (patch)
tree2dfb8bee0bdaf5c54ed55ea1bb64c01b5b591b84 /discord
parentMake parameters passed to Reaction.user keyword-only (diff)
downloaddiscord.py-04573c3c06d5766783a882c1973e624614e0bc6e.tar.xz
discord.py-04573c3c06d5766783a882c1973e624614e0bc6e.zip
Make View timeout parameter keyword-only
Diffstat (limited to 'discord')
-rw-r--r--discord/ui/view.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ui/view.py b/discord/ui/view.py
index b42c3bce..8de7a959 100644
--- a/discord/ui/view.py
+++ b/discord/ui/view.py
@@ -144,7 +144,7 @@ class View:
cls.__view_children_items__ = children
- def __init__(self, timeout: Optional[float] = 180.0):
+ def __init__(self, *, timeout: Optional[float] = 180.0):
self.timeout = timeout
self.children: List[Item] = []
for func in self.__view_children_items__: