PycordViews 1.3.2__tar.gz → 1.3.4__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.2 → pycordviews-1.3.4}/PKG-INFO +1 -1
- {pycordviews-1.3.2 → pycordviews-1.3.4}/PycordViews.egg-info/PKG-INFO +1 -1
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/views/easy_modified_view.py +4 -4
- {pycordviews-1.3.2 → pycordviews-1.3.4}/setup.py +1 -1
- {pycordviews-1.3.2 → pycordviews-1.3.4}/LICENSE +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/PycordViews.egg-info/SOURCES.txt +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/PycordViews.egg-info/dependency_links.txt +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/PycordViews.egg-info/requires.txt +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/PycordViews.egg-info/top_level.txt +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/README.md +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/__init__.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/kit/__init__.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/kit/confirm.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/kit/poll.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/menu/__init__.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/menu/errors.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/menu/menu.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/menu/selectMenu.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/modal/__init__.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/modal/easy_modal_view.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/modal/errors.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/multibot/__init__.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/multibot/bot.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/multibot/errors.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/multibot/multibot.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/multibot/process.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/pagination/__init__.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/pagination/errors.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/pagination/page.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/pagination/pagination_view.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/views/__init__.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pycordViews/views/errors.py +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/pyproject.toml +0 -0
- {pycordviews-1.3.2 → pycordviews-1.3.4}/setup.cfg +0 -0
@@ -103,14 +103,14 @@ class EasyModifiedViews(View):
|
|
103
103
|
"""
|
104
104
|
Decorator to set up a callable for the item
|
105
105
|
|
106
|
-
**Interaction
|
106
|
+
**Ui, Interaction and data parameters is required in coroutine function !**
|
107
107
|
|
108
108
|
view = EasyModifiedViews(None)
|
109
109
|
view.add_view(discord.ui.Button(label='coucou', custom_id='test_ID'))
|
110
110
|
|
111
111
|
@view.set_callable_decorator(custom_id='test_ID')
|
112
112
|
|
113
|
-
async def rep(**UI**, **interaction
|
113
|
+
async def rep(**UI**, **interaction**, data):
|
114
114
|
await interaction.response.send_message('coucou !!!')
|
115
115
|
|
116
116
|
await ctx.respond('coucou', view=view)
|
@@ -144,7 +144,7 @@ class EasyModifiedViews(View):
|
|
144
144
|
:param autorised_roles: Any role ID allowed to interact with the view
|
145
145
|
:param autorised_key: Callable function to check anything. The function get the current interaction passed in parameter
|
146
146
|
|
147
|
-
**UI and
|
147
|
+
**UI, Interaction and data parameter is required in callable function !**
|
148
148
|
|
149
149
|
view = EasyModifiedViews(None)
|
150
150
|
|
@@ -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
|