Change timeout parameter in View.from_message to keyword only

This commit is contained in:
Rapptz 2021-06-30 03:12:44 -04:00
parent cd4b0904db
commit c1f1c67eed

View File

@ -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