PycordViews 1.2.13__tar.gz → 1.2.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pycordviews-1.2.13 → pycordviews-1.2.14}/PKG-INFO +1 -1
- {pycordviews-1.2.13 → pycordviews-1.2.14}/PycordViews.egg-info/PKG-INFO +1 -1
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/views/easy_modified_view.py +10 -1
- {pycordviews-1.2.13 → pycordviews-1.2.14}/setup.py +1 -1
- {pycordviews-1.2.13 → pycordviews-1.2.14}/LICENSE +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/PycordViews.egg-info/SOURCES.txt +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/PycordViews.egg-info/dependency_links.txt +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/PycordViews.egg-info/requires.txt +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/PycordViews.egg-info/top_level.txt +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/README.md +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/__init__.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/kit/__init__.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/kit/confirm.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/kit/poll.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/menu/__init__.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/menu/errors.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/menu/menu.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/menu/selectMenu.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/modal/__init__.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/modal/easy_modal_view.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/modal/errors.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/multibot/__init__.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/multibot/bot.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/multibot/errors.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/multibot/multibot.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/multibot/process.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/pagination/__init__.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/pagination/errors.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/pagination/page.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/pagination/pagination_view.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/views/__init__.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pycordViews/views/errors.py +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/pyproject.toml +0 -0
- {pycordviews-1.2.13 → pycordviews-1.2.14}/setup.cfg +0 -0
@@ -294,18 +294,27 @@ class EasyModifiedViews(View):
|
|
294
294
|
def get_ui(self, custom_id: str) -> Item:
|
295
295
|
"""
|
296
296
|
Get an ui in the view
|
297
|
+
:param custom_id: UI ID
|
297
298
|
:raise: CustomIDNotFound
|
298
299
|
"""
|
299
300
|
self.__check_custom_id(custom_id)
|
300
301
|
return self.__callback[custom_id]['ui']
|
301
302
|
|
303
|
+
def get_callable_data(self, custom_id: str) -> dict[str, Any]:
|
304
|
+
"""
|
305
|
+
Get datas passed in the callable asynchronous function
|
306
|
+
:param custom_id: UI ID
|
307
|
+
"""
|
308
|
+
self.__check_custom_id(custom_id)
|
309
|
+
return self.__callback[custom_id]['data']
|
310
|
+
|
302
311
|
def copy(self) -> EasyModifiedViews:
|
303
312
|
"""
|
304
313
|
Return an exact copy of the view. All mutable object in the view is a new object
|
305
314
|
"""
|
306
315
|
e = EasyModifiedViews(timeout=self.__timeout, disabled_on_timeout=self.__disabled_on_timeout).add_items(*self.items)
|
307
316
|
for i in self.items:
|
308
|
-
e.set_callable(i.custom_id, _callable=self.get_callable(i.custom_id))
|
317
|
+
e.set_callable(i.custom_id, _callable=self.get_callable(i.custom_id), data=self.get_callable_data(i.custom_id))
|
309
318
|
|
310
319
|
return e
|
311
320
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|