mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Make View timeout parameter keyword-only
This commit is contained in:
parent
f6ea03230e
commit
04573c3c06
@ -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…
x
Reference in New Issue
Block a user