mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Deprecate with_expiration param in fetch_invite
This commit is contained in:
@ -290,8 +290,6 @@ class Invite(Hashable):
|
||||
+------------------------------------+--------------------------------------------------------------+
|
||||
| :attr:`approximate_presence_count` | :meth:`Client.fetch_invite` with ``with_counts`` enabled |
|
||||
+------------------------------------+--------------------------------------------------------------+
|
||||
| :attr:`expires_at` | :meth:`Client.fetch_invite` with ``with_expiration`` enabled |
|
||||
+------------------------------------+--------------------------------------------------------------+
|
||||
|
||||
If it's not in the table above then it is available by all methods.
|
||||
|
||||
@ -332,6 +330,9 @@ class Invite(Hashable):
|
||||
:meth:`Client.fetch_invite` with ``with_expiration`` enabled, the invite will never expire.
|
||||
|
||||
.. versionadded:: 2.0
|
||||
.. versionchanged:: 2.6
|
||||
This will always be returned from all methods. ``None`` if the invite will
|
||||
never expire.
|
||||
|
||||
channel: Optional[Union[:class:`abc.GuildChannel`, :class:`Object`, :class:`PartialInviteChannel`]]
|
||||
The channel the invite is for.
|
||||
|
Reference in New Issue
Block a user