Skip to content

Commit f505218

Browse files
authored
Merge pull request #969 from plun1331/patch-13
Add `type` property to `InputText`
2 parents 5806985 + 6c0d721 commit f505218

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

discord/ui/input_text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ def __init__(
7171
self._input_value = None
7272
self.row = row
7373

74+
@property
75+
def type(self) -> ComponentType:
76+
return self._underlying.type
77+
7478
@property
7579
def style(self) -> InputTextStyle:
7680
""":class:`discord.InputTextStyle`: The style of the input text field."""

0 commit comments

Comments
 (0)