mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-01-30 21:11:44 +00:00
Copy Select options when creating View class
This commit is contained in:
@@ -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