Skip to content

Commit

Permalink
Add type property to InputText
Browse files Browse the repository at this point in the history
  • Loading branch information
plun1331 authored Feb 9, 2022
1 parent 5806985 commit 6c0d721
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/ui/input_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def __init__(
self._input_value = None
self.row = row

@property
def type(self) -> ComponentType:
return self._underlying.type

@property
def style(self) -> InputTextStyle:
""":class:`discord.InputTextStyle`: The style of the input text field."""
Expand Down

0 comments on commit 6c0d721

Please sign in to comment.