mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 08:49:48 +00:00
Change ui.TextInput.value to not be Optional
This commit is contained in:
parent
f52a02359d
commit
cdce8fae5b
@ -126,7 +126,7 @@ class TextInput(Item[V]):
|
|||||||
self.row = row
|
self.row = row
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return self.value or ''
|
return self.value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def custom_id(self) -> str:
|
def custom_id(self) -> str:
|
||||||
@ -145,9 +145,9 @@ class TextInput(Item[V]):
|
|||||||
return 5
|
return 5
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def value(self) -> Optional[str]:
|
def value(self) -> str:
|
||||||
"""Optional[:class:`str`]: The value of the text input."""
|
""":class:`str`: The value of the text input."""
|
||||||
return self._value
|
return self._value or ''
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def label(self) -> str:
|
def label(self) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user