Browse Source

Merge branch 'master' of https://github.com/Soheab/discord.py into guide/embeds

pull/9708/head
Soheab_ 1 year ago
parent
commit
d34bf4e11f
  1. 6
      discord/ui/dynamic.py
  2. 11
      setup.py

6
discord/ui/dynamic.py

@ -208,3 +208,9 @@ class DynamicItem(Generic[BaseT], Item['View']):
from the ``match`` object.
"""
raise NotImplementedError
async def callback(self, interaction: Interaction[ClientT]) -> Any:
return await self.item.callback(interaction)
async def interaction_check(self, interaction: Interaction[ClientT], /) -> bool:
return await self.item.interaction_check(interaction)

11
setup.py

@ -37,9 +37,16 @@ extras_require = {
'docs': [
'sphinx==4.4.0',
'sphinxcontrib_trio==1.1.2',
'sphinxcontrib-websupport',
# TODO: bump these when migrating to a newer Sphinx version
'sphinxcontrib-websupport==1.2.4',
'sphinxcontrib-applehelp==1.0.4',
'sphinxcontrib-devhelp==1.0.2',
'sphinxcontrib-htmlhelp==2.0.1',
'sphinxcontrib-jsmath==1.0.1',
'sphinxcontrib-qthelp==1.0.3',
'sphinxcontrib-serializinghtml==1.1.5',
'typing-extensions>=4.3,<5',
'sphinx-inline-tabs',
'sphinx-inline-tabs==2023.4.21',
],
'speed': [
'orjson>=3.5.4',

Loading…
Cancel
Save