Skip to content

Commit

Permalink
docs: minor InputText formatting issues (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustaSqu1d authored Jul 24, 2024
1 parent c793310 commit c2c982d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/ui/input_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class InputText:
The maximum number of characters that can be entered.
Must be between 1 and 4000.
required: Optional[:class:`bool`]
Whether the input text field is required or not. Defaults to `True`.
Whether the input text field is required or not. Defaults to ``True``.
value: Optional[:class:`str`]
Pre-fills the input text field with this value.
Must be 4000 characters or fewer.
Expand Down Expand Up @@ -151,7 +151,7 @@ def placeholder(self, value: str | None):

@property
def min_length(self) -> int | None:
"""The minimum number of characters that must be entered. Defaults to `0`."""
"""The minimum number of characters that must be entered. Defaults to 0."""
return self._underlying.min_length

@min_length.setter
Expand All @@ -177,7 +177,7 @@ def max_length(self, value: int | None):

@property
def required(self) -> bool | None:
"""Whether the input text field is required or not. Defaults to `True`."""
"""Whether the input text field is required or not. Defaults to ``True``."""
return self._underlying.required

@required.setter
Expand Down

0 comments on commit c2c982d

Please sign in to comment.