mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Copy Select options when creating View class
This commit is contained in:
1 parent
8d8d5e180a
commit
7f16a06479
2 files changed
+6
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user