Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: minor InputText formatting issues #2507

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading