Skip to content

Commit

Permalink
Change ui.TextInput.value to not be Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Aug 17, 2022
1 parent f52a023 commit cdce8fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discord/ui/text_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(
self.row = row

def __str__(self) -> str:
return self.value or ''
return self.value

@property
def custom_id(self) -> str:
Expand All @@ -145,9 +145,9 @@ def width(self) -> int:
return 5

@property
def value(self) -> Optional[str]:
"""Optional[:class:`str`]: The value of the text input."""
return self._value
def value(self) -> str:
""":class:`str`: The value of the text input."""
return self._value or ''

@property
def label(self) -> str:
Expand Down

0 comments on commit cdce8fa

Please sign in to comment.