Add notes about contexts and installation_types availability

This commit is contained in:
Soheab authored and GitHub committed 2024-05-30 22:51:51 -04:00
1 parent 2c197649c2
commit cc32fb364b
2 files changed
+48

No files matched your search

+6
View File
@@ -2372,6 +2372,12 @@ def guilds(*guild_ids: Union[Snowflake, int]) -> Callable[[T], T]:
with the :meth:`CommandTree.command` or :meth:`CommandTree.context_menu` decorator
then this must go below that decorator.
.. note ::
Due to a Discord limitation, this decorator cannot be used in conjunction with
contexts (e.g. :func:`.app_commands.allowed_contexts`) or installation types
(e.g. :func:`.app_commands.allowed_installs`).
Example:
.. code-block:: python3