diff options
| author | Rapptz <[email protected]> | 2021-06-10 09:06:04 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-10 09:06:04 -0400 |
| commit | 04573c3c06d5766783a882c1973e624614e0bc6e (patch) | |
| tree | 2dfb8bee0bdaf5c54ed55ea1bb64c01b5b591b84 /discord | |
| parent | Make parameters passed to Reaction.user keyword-only (diff) | |
| download | discord.py-04573c3c06d5766783a882c1973e624614e0bc6e.tar.xz discord.py-04573c3c06d5766783a882c1973e624614e0bc6e.zip | |
Make View timeout parameter keyword-only
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/ui/view.py | 2 |
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__: |