PycordViews 1.3.3__py3-none-any.whl → 1.3.5__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.
@@ -118,7 +118,7 @@ class EasyModifiedViews(View):
118
118
  :param custom_id: item ID of the view
119
119
  :param data: Add any data to pass in called function.
120
120
  :param autorised_roles: Any role ID allowed to interact with the view
121
- :param autorised_key: Callable function to check anything. The function get the current interaction passed in parameter
121
+ :param autorised_key: Callable function to check anything. The function get the current interaction and data passed in parameter
122
122
  """
123
123
 
124
124
  def decorator(_callable: Callable):
@@ -142,7 +142,7 @@ class EasyModifiedViews(View):
142
142
  :param _callable: The asynchronous callable linked. Take UI (Button, Select...) and Interaction parameters.
143
143
  :param data: Add any data to pass in called function.
144
144
  :param autorised_roles: Any role ID allowed to interact with the view
145
- :param autorised_key: Callable function to check anything. The function get the current interaction passed in parameter
145
+ :param autorised_key: Callable function to check anything. The function get the current interaction and data passed in parameter
146
146
 
147
147
  **UI, Interaction and data parameter is required in callable function !**
148
148
 
@@ -191,7 +191,7 @@ class EasyModifiedViews(View):
191
191
  return False
192
192
 
193
193
  if autorised_key is not None: # si une fonction est config pour la vérification
194
- if not autorised_key(interaction): # Si la fonction renvoie False
194
+ if not autorised_key(interaction, data): # Si la fonction renvoie False
195
195
  return False
196
196
 
197
197
  return await func(self.__callback[interaction.custom_id]['ui'], interaction, data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PycordViews
3
- Version: 1.3.3
3
+ Version: 1.3.5
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=t6wvTLNTYg-w4eJQiyiX-LmEeR385SChifUzhiVSZBs,5793
21
21
  pycordViews/views/__init__.py,sha256=yligptZmw-np8tjKLr76SVmi0807Nk6jCyKkKYLhbCY,89
22
- pycordViews/views/easy_modified_view.py,sha256=zWMrmtcIE7VJxkMrFlzEdLCuhdvBUzNybl_8bQBzq-s,14018
22
+ pycordViews/views/easy_modified_view.py,sha256=3WM3dFflPjIK6_8cXrSsLK27dAqnEZ0kKDq4-wQ8HMo,14042
23
23
  pycordViews/views/errors.py,sha256=AkhGskuBjbFs0ZQdTDlVyfvAJ1WRMMQx2sAXUnYjmog,360
24
- pycordviews-1.3.3.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
- pycordviews-1.3.3.dist-info/METADATA,sha256=lQcNdibilr45yYH3X_AWg4GKu-HMbFdVJHUfgCkqePI,12417
26
- pycordviews-1.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- pycordviews-1.3.3.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
- pycordviews-1.3.3.dist-info/RECORD,,
24
+ pycordviews-1.3.5.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
+ pycordviews-1.3.5.dist-info/METADATA,sha256=bNDCn3xltw0Tyn0fniPLEhtxwpyKpB6HldPO9y6hef0,12417
26
+ pycordviews-1.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ pycordviews-1.3.5.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
+ pycordviews-1.3.5.dist-info/RECORD,,