Implement Application Command Permissions models

This commit is contained in:
Soheab authored and GitHub committed 2022-06-07 01:35:33 -04:00
1 parent 4e7529138c
commit 3aa55ba1ed
6 files changed
+217 -87

No files matched your search

+2 -6
View File
@@ -3528,13 +3528,9 @@ AuditLogDiff
.. attribute:: app_command_permissions
A list of application command permission tuples that represents a
target and a :class:`bool` for said target.
The permissions of the app command.
The first element is the object being targeted, which can either
be a :class:`Member`, :class:`abc.GuildChannel`,
:class:`~discord.app_commands.AllChannels`, or :class:`Role`.
:type: List[Tuple[target, :class:`bool`]]
:type: :class:`~discord.app_commands.AppCommandPermissions`
.. this is currently missing the following keys: reason and application_id
I'm not sure how to about porting these