From 04573c3c06d5766783a882c1973e624614e0bc6e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 10 Jun 2021 09:06:04 -0400 Subject: [PATCH] Make View timeout parameter keyword-only --- discord/ui/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/view.py b/discord/ui/view.py index b42c3bce5..8de7a9595 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__: