Copy Select options when creating View class

This commit is contained in:
Leonardo
2025-06-20 14:24:06 -04:00
committed by GitHub
parent 8d8d5e180a
commit 7f16a06479
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -442,6 +442,9 @@ class SelectOption:
return payload
def copy(self) -> SelectOption:
return self.__class__.from_dict(self.to_dict())
class TextInput(Component):
"""Represents a text input from the Discord Bot UI Kit.