diff options
| author | Rapptz <[email protected]> | 2021-06-30 03:12:44 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-30 03:15:45 -0400 |
| commit | c1f1c67eed8fdc18c90564f0ed1d6c1b45662c1d (patch) | |
| tree | f95344db2e295c4be2eea0599662624fb7fefd7e /discord | |
| parent | Change NamedTuple in __init__.py (diff) | |
| download | discord.py-c1f1c67eed8fdc18c90564f0ed1d6c1b45662c1d.tar.xz discord.py-c1f1c67eed8fdc18c90564f0ed1d6c1b45662c1d.zip | |
Change timeout parameter in View.from_message to 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 78ae552b..7f96a4af 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -191,7 +191,7 @@ class View: return components @classmethod - def from_message(cls, message: Message, /, timeout: Optional[float] = 180.0) -> View: + def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> View: """Converts a message's components into a :class:`View`. The :attr:`Message.components` of a message are read-only |