mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-31 13:32:57 +00:00 
			
		
		
		
	Change Select.type to use a Literal
This commit is contained in:
		| @@ -415,7 +415,7 @@ class TextInput(Component): | ||||
|     __repr_info__: ClassVar[Tuple[str, ...]] = __slots__ | ||||
|  | ||||
|     def __init__(self, data: TextInputPayload) -> None: | ||||
|         self.type: ComponentType = ComponentType.text_input | ||||
|         self.type: Literal[ComponentType.text_input] = ComponentType.text_input | ||||
|         self.style: TextStyle = try_enum(TextStyle, data['style']) | ||||
|         self.label: str = data['label'] | ||||
|         self.custom_id: str = data['custom_id'] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user