From 215fed831c0093569640ea24ff21594938908ecc Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 23 Jan 2020 00:04:45 -0500 Subject: [PATCH] Mention that you can create Permissions via kwargs now --- discord/permissions.py | 4 ++++ docs/whats_new.rst | 1 + 2 files changed, 5 insertions(+) diff --git a/discord/permissions.py b/discord/permissions.py index 69644fab8..f3a9caeda 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -51,6 +51,10 @@ class Permissions(BaseFlags): bits using the properties as if they were regular bools. This allows you to edit permissions. + .. versionchanged:: 1.3 + You can now use keyword arguments to initialize :class:`Permissions` + similar to :meth:`update`. + .. container:: operations .. describe:: x == y diff --git a/docs/whats_new.rst b/docs/whats_new.rst index 86d9d06bb..95104b777 100644 --- a/docs/whats_new.rst +++ b/docs/whats_new.rst @@ -61,6 +61,7 @@ New Features - :attr:`Permissions.view_channel` - :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`) - Note that as of now, bots cannot send custom activities yet.