Soheab 5 months ago
parent
commit
7e9eef1ad8
  1. 2
      discord/abc.py
  2. 12
      discord/invite.py

2
discord/abc.py

@ -1337,8 +1337,6 @@ class GuildChannel:
target_users: Optional[Sequence[:class:`~discord.abc.Snowflake`]] target_users: Optional[Sequence[:class:`~discord.abc.Snowflake`]]
A list of users that are allowed to join via this invite. A list of users that are allowed to join via this invite.
Requires the :attr:`~discord.Permissions.manage_guild` permission.
.. versionadded:: 2.7 .. versionadded:: 2.7
Raises Raises

12
discord/invite.py

@ -660,7 +660,9 @@ class Invite(Hashable):
Fetches the users that are allowed to join via this invite. Fetches the users that are allowed to join via this invite.
Requires the :attr:`~Permissions.manage_guild` permission. Requires the bot to have created the invite or one of
the following permissions: :attr:`~Permissions.manage_guild`,
:attr:`~Permissions.view_audit_log`.
Returns Returns
-------- --------
@ -685,7 +687,10 @@ class Invite(Hashable):
Fetches the status of the target users job for this invite. Fetches the status of the target users job for this invite.
Requires the :attr:`~Permissions.manage_guild` permission. Requires the bot to have created the invite or one of
the following permissions: :attr:`~Permissions.manage_guild`,
:attr:`~Permissions.view_audit_log`.
Returns Returns
-------- --------
@ -719,7 +724,8 @@ class Invite(Hashable):
users: List[:class:`~discord.abc.Snowflake`] users: List[:class:`~discord.abc.Snowflake`]
A list of users that should be able to use this invite. A list of users that should be able to use this invite.
Requires the :attr:`~Permissions.manage_guild` permission. Requires the bot to have created the invite or the
:attr:`~Permissions.manage_guild` permission.
.. note:: .. note::
You cannot clear the list of target users once set. You cannot clear the list of target users once set.

Loading…
Cancel
Save