mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Document the change in behaviour of bool(flag_obj)
This commit is contained in:
@ -119,6 +119,12 @@ class Permissions(BaseFlags):
|
||||
to be, for example, constructed as a dict or a list of pairs.
|
||||
Note that aliases are not shown.
|
||||
|
||||
.. describe:: bool(b)
|
||||
|
||||
Returns whether the permissions object has any permissions set to ``True``.
|
||||
|
||||
.. versionadded:: 2.0
|
||||
|
||||
Attributes
|
||||
-----------
|
||||
value: :class:`int`
|
||||
|
Reference in New Issue
Block a user