Change timeout parameter in View.from_message to keyword only
This commit is contained in:
parent
cd4b0904db
commit
c1f1c67eed
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user