PycordViews 1.3.2__py3-none-any.whl → 1.3.4__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.
@@ -103,14 +103,14 @@ class EasyModifiedViews(View):
103
103
  """
104
104
  Decorator to set up a callable for the item
105
105
 
106
- **Interaction parameter is required in coroutine function !**
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 Interaction parameter is required in callable function !**
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PycordViews
3
- Version: 1.3.2
3
+ Version: 1.3.4
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=dOiSZ59zthRUV6s-mzdnql0o-z6hQM2ppKShJjmipu0,13992
22
+ pycordViews/views/easy_modified_view.py,sha256=BbEnIfv4mVm4Glj45sAuYLbXIA1KRN699XdVVtmiaUo,14024
23
23
  pycordViews/views/errors.py,sha256=AkhGskuBjbFs0ZQdTDlVyfvAJ1WRMMQx2sAXUnYjmog,360
24
- pycordviews-1.3.2.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
- pycordviews-1.3.2.dist-info/METADATA,sha256=CPNqQ9wvXSnbUA7CBeZ0nqT_zZ2wMRxFygoNS9upTwY,12417
26
- pycordviews-1.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- pycordviews-1.3.2.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
- pycordviews-1.3.2.dist-info/RECORD,,
24
+ pycordviews-1.3.4.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
+ pycordviews-1.3.4.dist-info/METADATA,sha256=WOeLWZAkCLc57fIOBHhy-U_w_ALSrHvXTJpJPXhI5jk,12417
26
+ pycordviews-1.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ pycordviews-1.3.4.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
+ pycordviews-1.3.4.dist-info/RECORD,,