mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 10:19:59 +00:00
Permissions.view_audit_logs -> Permissions.view_audit_log
This commit is contained in:
parent
83f86f902a
commit
34815a43f4
@ -284,12 +284,12 @@ class Permissions:
|
|||||||
self._set(6, value)
|
self._set(6, value)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def view_audit_logs(self):
|
def view_audit_log(self):
|
||||||
"""Returns True if a user can view the guild's audit log."""
|
"""Returns True if a user can view the guild's audit log."""
|
||||||
return self._bit(7)
|
return self._bit(7)
|
||||||
|
|
||||||
@view_audit_logs.setter
|
@view_audit_log.setter
|
||||||
def view_audit_logs(self, value):
|
def view_audit_log(self, value):
|
||||||
self._set(7, value)
|
self._set(7, value)
|
||||||
|
|
||||||
# 2 unused
|
# 2 unused
|
||||||
|
@ -349,6 +349,10 @@ They will be enumerated here.
|
|||||||
|
|
||||||
- Use :meth:`Colour.to_rgb` instead.
|
- Use :meth:`Colour.to_rgb` instead.
|
||||||
|
|
||||||
|
- ``Permissions.view_audit_logs``
|
||||||
|
|
||||||
|
- Use :attr:`Permissions.view_audit_log` instead.
|
||||||
|
|
||||||
**Changed**
|
**Changed**
|
||||||
|
|
||||||
- :attr:`Member.avatar_url` and :attr:`User.avatar_url` now return the default avatar if a custom one is not set.
|
- :attr:`Member.avatar_url` and :attr:`User.avatar_url` now return the default avatar if a custom one is not set.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user