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.
- {pycordviews-1.3.3 → pycordviews-1.3.5}/PKG-INFO +1 -1
- {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/PKG-INFO +1 -1
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/views/easy_modified_view.py +3 -3
- {pycordviews-1.3.3 → pycordviews-1.3.5}/setup.py +1 -1
- {pycordviews-1.3.3 → pycordviews-1.3.5}/LICENSE +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/SOURCES.txt +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/dependency_links.txt +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/requires.txt +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/PycordViews.egg-info/top_level.txt +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/README.md +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/__init__.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/kit/__init__.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/kit/confirm.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/kit/poll.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/__init__.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/errors.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/menu.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/menu/selectMenu.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/modal/__init__.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/modal/easy_modal_view.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/modal/errors.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/__init__.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/bot.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/errors.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/multibot.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/multibot/process.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/__init__.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/errors.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/page.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/pagination/pagination_view.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/views/__init__.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pycordViews/views/errors.py +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/pyproject.toml +0 -0
- {pycordviews-1.3.3 → pycordviews-1.3.5}/setup.cfg +0 -0
@@ -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)
|
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
|