PycordViews 1.3.3__tar.gz → 1.3.5__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.
Files changed (34) hide show
  1. {pycordviews-1.3.3 → pycordviews-1.3.5}/PKG-INFO +1 -1
  2. {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/PKG-INFO +1 -1
  3. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/views/easy_modified_view.py +3 -3
  4. {pycordviews-1.3.3 → pycordviews-1.3.5}/setup.py +1 -1
  5. {pycordviews-1.3.3 → pycordviews-1.3.5}/LICENSE +0 -0
  6. {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/SOURCES.txt +0 -0
  7. {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/dependency_links.txt +0 -0
  8. {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/requires.txt +0 -0
  9. {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/top_level.txt +0 -0
  10. {pycordviews-1.3.3 → pycordviews-1.3.5}/README.md +0 -0
  11. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/__init__.py +0 -0
  12. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/kit/__init__.py +0 -0
  13. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/kit/confirm.py +0 -0
  14. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/kit/poll.py +0 -0
  15. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/__init__.py +0 -0
  16. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/errors.py +0 -0
  17. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/menu.py +0 -0
  18. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/selectMenu.py +0 -0
  19. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/modal/__init__.py +0 -0
  20. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/modal/easy_modal_view.py +0 -0
  21. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/modal/errors.py +0 -0
  22. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/__init__.py +0 -0
  23. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/bot.py +0 -0
  24. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/errors.py +0 -0
  25. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/multibot.py +0 -0
  26. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/process.py +0 -0
  27. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/__init__.py +0 -0
  28. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/errors.py +0 -0
  29. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/page.py +0 -0
  30. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/pagination_view.py +0 -0
  31. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/views/__init__.py +0 -0
  32. {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/views/errors.py +0 -0
  33. {pycordviews-1.3.3 → pycordviews-1.3.5}/pyproject.toml +0 -0
  34. {pycordviews-1.3.3 → pycordviews-1.3.5}/setup.cfg +0 -0
@@ -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)
@@ -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)
@@ -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)
@@ -5,7 +5,7 @@ with open("README.md", encoding='utf-8') as file:
5
5
 
6
6
  setup(
7
7
  name="PycordViews",
8
- version="1.3.3",
8
+ version="1.3.5",
9
9
  url="https://github.com/BOXERRMD/Py-cord_Views",
10
10
  author="Chronos (alias BOXERRMD)",
11
11
  author_email="vagabonwalybi@gmail.com",
File without changes
File without changes
File without changes
File without changes