mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Improve component typing
This commit is contained in:
committed by
GitHub
parent
b7e25645dc
commit
7267d18d9e
@ -114,7 +114,6 @@ class TextInput(Item[V]):
|
||||
raise TypeError(f'expected custom_id to be str not {custom_id.__class__!r}')
|
||||
|
||||
self._underlying = TextInputComponent._raw_construct(
|
||||
type=ComponentType.text_input,
|
||||
label=label,
|
||||
style=style,
|
||||
custom_id=custom_id,
|
||||
@ -238,7 +237,7 @@ class TextInput(Item[V]):
|
||||
|
||||
@property
|
||||
def type(self) -> Literal[ComponentType.text_input]:
|
||||
return ComponentType.text_input
|
||||
return self._underlying.type
|
||||
|
||||
def is_dispatchable(self) -> bool:
|
||||
return False
|
||||
|
Reference in New Issue
Block a user