Browse Source

Make View timeout parameter keyword-only

pull/7048/head
Rapptz 4 years ago
parent
commit
04573c3c06
  1. 2
      discord/ui/view.py

2
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__:

Loading…
Cancel
Save