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:
@ -266,10 +266,10 @@ class Select(Item[V]):
|
||||
def to_component_dict(self) -> SelectMenuPayload:
|
||||
return self._underlying.to_dict()
|
||||
|
||||
def refresh_component(self, component: SelectMenu) -> None:
|
||||
def _refresh_component(self, component: SelectMenu) -> None:
|
||||
self._underlying = component
|
||||
|
||||
def refresh_state(self, data: MessageComponentInteractionData) -> None:
|
||||
def _refresh_state(self, data: MessageComponentInteractionData) -> None:
|
||||
self._selected_values = data.get('values', [])
|
||||
|
||||
@classmethod
|
||||
|
Reference in New Issue
Block a user