PycordViews 1.2.15__py3-none-any.whl → 1.2.16__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.
@@ -23,7 +23,7 @@ class Confirm:
23
23
 
24
24
  self.__future: Future = get_event_loop().create_future()
25
25
 
26
- async def _confirm(self, button: Button, interaction: Interaction):
26
+ async def _confirm(self, button: Button, interaction: Interaction, data):
27
27
  """
28
28
  Base asynchronous _confirm function called when button is pressed
29
29
  """
pycordViews/kit/poll.py CHANGED
@@ -100,7 +100,7 @@ class Poll:
100
100
  if _callable is not None:
101
101
  self.__view.set_callable(self.__button_no.custom_id, _callable=_callable)
102
102
 
103
- async def yes(self, button, interaction):
103
+ async def yes(self, button, interaction, data):
104
104
  """
105
105
  Base asynchronous function when "yes" button is pressed.
106
106
  Increment “yes_count” attribute when pressed and respond with an ephemeral message.
@@ -113,7 +113,7 @@ class Poll:
113
113
  self.__clicked_members.append(interaction.user.id)
114
114
  await interaction.response.send_message(f"You have selected : {button.label}", ephemeral=True)
115
115
 
116
- async def no(self, button, interaction):
116
+ async def no(self, button, interaction, data):
117
117
  """
118
118
  Base asynchronous function when "no" button is pressed.
119
119
  Increment “yes_count” attribute when pressed and respond with an ephemeral message.
@@ -60,7 +60,7 @@ class Pagination:
60
60
  self.__view.get_ui('counter').label = f"{self.__current_page+1}/{len(self.__pages)}"
61
61
  return self
62
62
 
63
- async def __turn_page(self, button, interaction: Interaction):
63
+ async def __turn_page(self, button, interaction: Interaction, data):
64
64
  """
65
65
  Turn the page when button is pressed
66
66
  """
@@ -133,12 +133,12 @@ class EasyModifiedViews(View):
133
133
 
134
134
  view = EasyModifiedViews(None)
135
135
 
136
- view.add_view(discord.ui.Button(label='coucou', custom_id='test_ID', data={'message': 'Hello !'}))
136
+ view.add_view(discord.ui.Button(label='coucou', custom_id='test_ID'))
137
137
 
138
138
  async def rep(**UI**, **interaction**, data: dict[str, Any]):
139
139
  await interaction.response.send_message(data['message'])
140
140
 
141
- view.set_callable(custom_id='test_ID', callable=rep)
141
+ view.set_callable(custom_id='test_ID', callable=rep, data={'message': 'Hello !'})
142
142
  await ctx.respond('coucou', view=view)
143
143
  """
144
144
  for custom_id in custom_ids:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PycordViews
3
- Version: 1.2.15
3
+ Version: 1.2.16
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,7 +1,7 @@
1
1
  pycordViews/__init__.py,sha256=UHIqRdzmyqyZPByJRpLvS3sjMxCmcve34mgcYEhf_8k,297
2
2
  pycordViews/kit/__init__.py,sha256=N5yCdv-jwHAoGfDlc1By4hCtHK5cJaQFqnlHbHKmq7U,54
3
- pycordViews/kit/confirm.py,sha256=Bw5OSOKlP6KllUXSmRtMLW-hfYHh_a7ESbCjGN6FXx0,2869
4
- pycordViews/kit/poll.py,sha256=lGClTI0HLqTNC4aOuhyZl1hhEklaKmoT5XJc6gT_nok,7080
3
+ pycordViews/kit/confirm.py,sha256=lc0T8HxVtQdkMo42_3CJPYT7Q501348WGG7FUvPFNBM,2875
4
+ pycordViews/kit/poll.py,sha256=9PQfeEUvNZUmO8-NsWbERZwCpw5BudUGBvDG-rVwt2g,7092
5
5
  pycordViews/menu/__init__.py,sha256=QUXA9ezyeTScvS1kxMNFgKEbZMsPq5yUnWWgbXCytCk,97
6
6
  pycordViews/menu/errors.py,sha256=0Um-oH5qMdWSZB_bGlqILsf9WSDtC4n_HwkheekiMV4,480
7
7
  pycordViews/menu/menu.py,sha256=3D13C5Vs69w9SlrnixBfF0riY48jORi8JcYte65YFPs,4306
@@ -17,12 +17,12 @@ pycordViews/multibot/process.py,sha256=wp5jS4Y69pyhm-gM3iq6epobpUHf1Pb-CtZt8I05J
17
17
  pycordViews/pagination/__init__.py,sha256=rvOp-nGXZ6EX_ojK1_1lcOHYUcrB0LG3DL7zwatkRPY,105
18
18
  pycordViews/pagination/errors.py,sha256=CYb5gBcXx0kYDUDkNpfUrqSxQAcJE_qfpomWtUFOsTk,316
19
19
  pycordViews/pagination/page.py,sha256=sKi_gCFt1euY7uJKWgMnxEqP1B4LMhUysxQ8oQbhNVQ,1147
20
- pycordViews/pagination/pagination_view.py,sha256=T9kN_-hj2bD4ia4NI2CIkzJCgdp_6xxCQZPsK_Pyu4Q,5604
20
+ pycordViews/pagination/pagination_view.py,sha256=kkbOhTqkIckAOvKL2Dli2v1ABjv5NzWh8XoV6cPm3mQ,5610
21
21
  pycordViews/views/__init__.py,sha256=yligptZmw-np8tjKLr76SVmi0807Nk6jCyKkKYLhbCY,89
22
- pycordViews/views/easy_modified_view.py,sha256=I-Bae2qO3PVIyeggtBcz1M14Vwhs1TkSupLYJlqHLiM,11807
22
+ pycordViews/views/easy_modified_view.py,sha256=fVfYt3Gt-uYr0eWotMz60NfqS2TbI8GsK9o7S1GvHgk,11807
23
23
  pycordViews/views/errors.py,sha256=AkhGskuBjbFs0ZQdTDlVyfvAJ1WRMMQx2sAXUnYjmog,360
24
- pycordviews-1.2.15.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
- pycordviews-1.2.15.dist-info/METADATA,sha256=dK-C0jy522ruzCAZ8Qy829EmxHR2e7FI5jyZOgTPLwk,11825
26
- pycordviews-1.2.15.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
27
- pycordviews-1.2.15.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
- pycordviews-1.2.15.dist-info/RECORD,,
24
+ pycordviews-1.2.16.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
+ pycordviews-1.2.16.dist-info/METADATA,sha256=TI84vwlXE3B4Us7jTWrPtbSAiiZ0KVBtQGrMD1_2usc,11825
26
+ pycordviews-1.2.16.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
27
+ pycordviews-1.2.16.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
+ pycordviews-1.2.16.dist-info/RECORD,,