Add TextInput.__str__ special method

Closes #7504
This commit is contained in:
Rapptz 2022-03-05 21:03:45 -05:00
parent a317ceb44a
commit 37d55c8ec4

View File

@ -117,6 +117,9 @@ class TextInput(Item[V]):
)
self.row: Optional[int] = row
def __str__(self) -> str:
return self.value or ''
@property
def custom_id(self) -> str:
""":class:`str`: The ID of the select menu that gets received during an interaction."""