PycordViews 1.2.22__py3-none-any.whl → 1.2.23__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.
@@ -4,7 +4,7 @@ from .menu import Menu
4
4
 
5
5
  from typing import Union, Callable, Any
6
6
  from discord.components import ComponentType
7
- from discord import ChannelType, Member, ApplicationContext
7
+ from discord import ChannelType, Member, ApplicationContext, Interaction
8
8
  from discord.abc import GuildChannel
9
9
 
10
10
  class SelectMenu:
@@ -108,7 +108,7 @@ class SelectMenu:
108
108
  self.__select_menu.set_callable(*custom_ids, _callable=_callable)
109
109
  return self
110
110
 
111
- async def respond(self, ctx: ApplicationContext, *args, **kwargs) -> Any:
111
+ async def respond(self, ctx: Union[ApplicationContext, Interaction], *args, **kwargs) -> Any:
112
112
  """
113
113
  Respond at the ApplicationContext
114
114
  """
@@ -110,7 +110,7 @@ class Pagination:
110
110
  first_page = self.__pages[0]
111
111
  return await self.__view.send(target=target, content=first_page.content, embeds=first_page.embeds, files=first_page.files, view=self.__view.copy() + first_page.get_page_view)
112
112
 
113
- async def respond(self, ctx: ApplicationContext) -> Any:
113
+ async def respond(self, ctx: Union[ApplicationContext, Interaction]) -> Any:
114
114
  """
115
115
  Respond to the command call
116
116
  :param ctx: ApplicationContext to respond
@@ -43,9 +43,9 @@ class EasyModifiedViews(View):
43
43
  if custom_id not in self.__callback.keys():
44
44
  raise CustomIDNotFound()
45
45
 
46
- async def respond(self, ctx: ApplicationContext, *args, **kwargs) -> None:
46
+ async def respond(self, ctx: Union[ApplicationContext, Interaction], *args, **kwargs) -> None:
47
47
  """
48
- Respond at the ApplicationContext
48
+ Respond at the ApplicationContext or Interaction
49
49
  """
50
50
  self.__ctx = await ctx.respond(*args, **kwargs)
51
51
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PycordViews
3
- Version: 1.2.22
3
+ Version: 1.2.23
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)
@@ -5,7 +5,7 @@ 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
8
- pycordViews/menu/selectMenu.py,sha256=oYydLtoQm7YRjnFII2af5cUfIZ8ci_86lk0Il5TGYTw,10459
8
+ pycordViews/menu/selectMenu.py,sha256=GbRp9WdIUYspaoD0RR8RuQxvFTTF6dPX72Pk-aYDp-k,10492
9
9
  pycordViews/modal/__init__.py,sha256=TFUX3z25oInBhBzoOQhnLbKmwArXo4IVVqBfN6y11Bo,61
10
10
  pycordViews/modal/easy_modal_view.py,sha256=sNxfSg6sgoiKa3vc6eKa4RV7vNVNaSrI1XUJ9RMSD80,4281
11
11
  pycordViews/modal/errors.py,sha256=nIGYyOS_oWH49Dj8ZGW53nnzaPmbvFbAo7ydikD5xWE,307
@@ -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=NLRqrnYEJP5tvEmZjJKWa_IIRyUGTq917d79sHbaRyU,5682
20
+ pycordViews/pagination/pagination_view.py,sha256=g-cTCx3D3qMddOqMmFPKVuxplB_EpN7D2eJqc90ReIk,5702
21
21
  pycordViews/views/__init__.py,sha256=yligptZmw-np8tjKLr76SVmi0807Nk6jCyKkKYLhbCY,89
22
- pycordViews/views/easy_modified_view.py,sha256=RRaSqstc1oLrAOUOBvKYkRQyU-_C2kOKV7CDlttLHM8,13965
22
+ pycordViews/views/easy_modified_view.py,sha256=HJfq_zSZaxzt84DLmFd-T2I7G79x4lgakI_dzX7jHh4,14000
23
23
  pycordViews/views/errors.py,sha256=AkhGskuBjbFs0ZQdTDlVyfvAJ1WRMMQx2sAXUnYjmog,360
24
- pycordviews-1.2.22.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
- pycordviews-1.2.22.dist-info/METADATA,sha256=GPZ9sdMftBr4vTZmBtlLuXuXjNXjEGTNAyEDeVBAYx8,11947
26
- pycordviews-1.2.22.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
27
- pycordviews-1.2.22.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
- pycordviews-1.2.22.dist-info/RECORD,,
24
+ pycordviews-1.2.23.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
+ pycordviews-1.2.23.dist-info/METADATA,sha256=qyqebgXrMqP-uNh-a42Zn_Nk_yxibixU1GE6R-HHv6w,11947
26
+ pycordviews-1.2.23.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
27
+ pycordviews-1.2.23.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
+ pycordviews-1.2.23.dist-info/RECORD,,