Mention that you can create Permissions via kwargs now

This commit is contained in:
Rapptz 2020-01-23 00:04:45 -05:00
parent 6f9793fe5e
commit 215fed831c
2 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,10 @@ class Permissions(BaseFlags):
bits using the properties as if they were regular bools. This allows bits using the properties as if they were regular bools. This allows
you to edit permissions. you to edit permissions.
.. versionchanged:: 1.3
You can now use keyword arguments to initialize :class:`Permissions`
similar to :meth:`update`.
.. container:: operations .. container:: operations
.. describe:: x == y .. describe:: x == y

View File

@ -61,6 +61,7 @@ New Features
- :attr:`Permissions.view_channel` - :attr:`Permissions.view_channel`
- :attr:`Permissions.use_external_emojis` - :attr:`Permissions.use_external_emojis`
- Add support for passing keyword arguments when creating :class:`Permissions`.
- Add support for custom activities via :class:`CustomActivity`. (:issue:`2400`) - Add support for custom activities via :class:`CustomActivity`. (:issue:`2400`)
- Note that as of now, bots cannot send custom activities yet. - Note that as of now, bots cannot send custom activities yet.