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)
|
||||
|
||||
@property
|
||||
def view_audit_logs(self):
|
||||
def view_audit_log(self):
|
||||
"""Returns True if a user can view the guild's audit log."""
|
||||
return self._bit(7)
|
||||
|
||||
@view_audit_logs.setter
|
||||
def view_audit_logs(self, value):
|
||||
@view_audit_log.setter
|
||||
def view_audit_log(self, value):
|
||||
self._set(7, value)
|
||||
|
||||
# 2 unused
|
||||
|
@ -349,6 +349,10 @@ They will be enumerated here.
|
||||
|
||||
- Use :meth:`Colour.to_rgb` instead.
|
||||
|
||||
- ``Permissions.view_audit_logs``
|
||||
|
||||
- Use :attr:`Permissions.view_audit_log` instead.
|
||||
|
||||
**Changed**
|
||||
|
||||
- :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