mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Mark state refresh methods as private with an underscore
People kept wondering what it is or what it does.
This commit is contained in:
@ -207,10 +207,10 @@ class TextInput(Item[V]):
|
||||
def to_component_dict(self) -> TextInputPayload:
|
||||
return self._underlying.to_dict()
|
||||
|
||||
def refresh_component(self, component: TextInputComponent) -> None:
|
||||
def _refresh_component(self, component: TextInputComponent) -> None:
|
||||
self._underlying = component
|
||||
|
||||
def refresh_state(self, data: ModalSubmitTextInputInteractionDataPayload) -> None:
|
||||
def _refresh_state(self, data: ModalSubmitTextInputInteractionDataPayload) -> None:
|
||||
self._value = data.get('value', None)
|
||||
|
||||
@classmethod
|
||||
|
Reference in New Issue
Block a user