mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Add Widget.presence_count attribute and fix Widget types
This commit is contained in:
@ -927,6 +927,7 @@ The following changes have been made:
|
||||
|
||||
- :attr:`DMChannel.recipient` may now be ``None``.
|
||||
- :meth:`Guild.vanity_invite` may now be ``None``. This has been done to fix an issue with the method returning a broken :class:`Invite` object.
|
||||
- :meth:`Widget.fetch_invite` may now be ``None``.
|
||||
- :attr:`Guild.shard_id` is now ``0`` instead of ``None`` if :class:`AutoShardedClient` is not used.
|
||||
- :attr:`Guild.mfa_level` is now of type :class:`MFALevel`.
|
||||
- :attr:`Guild.member_count` is now of type Optional[:class:`int`].
|
||||
|
Reference in New Issue
Block a user