PycordViews 1.2.13__py3-none-any.whl → 1.2.14__py3-none-any.whl

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.
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PycordViews
3
- Version: 1.2.13
3
+ Version: 1.2.14
4
4
  Summary: Views and multibot for py-cord library
5
5
  Home-page: https://github.com/BOXERRMD/Py-cord_Views
6
6
  Author: Chronos (alias BOXERRMD)
@@ -19,10 +19,10 @@ pycordViews/pagination/errors.py,sha256=CYb5gBcXx0kYDUDkNpfUrqSxQAcJE_qfpomWtUFO
19
19
  pycordViews/pagination/page.py,sha256=sKi_gCFt1euY7uJKWgMnxEqP1B4LMhUysxQ8oQbhNVQ,1147
20
20
  pycordViews/pagination/pagination_view.py,sha256=T9kN_-hj2bD4ia4NI2CIkzJCgdp_6xxCQZPsK_Pyu4Q,5604
21
21
  pycordViews/views/__init__.py,sha256=yligptZmw-np8tjKLr76SVmi0807Nk6jCyKkKYLhbCY,89
22
- pycordViews/views/easy_modified_view.py,sha256=Li2M9mZglguoJ_o0OemehK2J2_P13Ux9uXbm-Zm-k48,11411
22
+ pycordViews/views/easy_modified_view.py,sha256=_OVMS4h05BI4JhZkVKly38U0Nn0_S4cARHtCracudtM,11773
23
23
  pycordViews/views/errors.py,sha256=AkhGskuBjbFs0ZQdTDlVyfvAJ1WRMMQx2sAXUnYjmog,360
24
- pycordviews-1.2.13.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
- pycordviews-1.2.13.dist-info/METADATA,sha256=95g2vfHmh1WMiHbS7ggFsqHv8tQC9VVKat3SRq0Pv10,11825
26
- pycordviews-1.2.13.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
27
- pycordviews-1.2.13.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
- pycordviews-1.2.13.dist-info/RECORD,,
24
+ pycordviews-1.2.14.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
+ pycordviews-1.2.14.dist-info/METADATA,sha256=lSU8HPSY6MoUUqFZ6Lgr0AHDMqYdo2JJ2_HcxQAmhJI,11825
26
+ pycordviews-1.2.14.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
27
+ pycordviews-1.2.14.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
+ pycordviews-1.2.14.dist-info/RECORD,,