Browse Source

[audit-log] add Guild.audit_log_iter for constructing iterator

pull/54/head
Andrei 8 years ago
parent
commit
070cb689d3
  1. 4
      disco/types/guild.py

4
disco/types/guild.py

@ -474,10 +474,14 @@ class Guild(SlottedModel, Permissible):
@property
def audit_log(self):
return self.audit_log_iter()
def audit_log_iter(self, **kwargs):
return Paginator(
self.client.api.guilds_auditlogs_list,
'before',
self.id,
**kwargs
)
def get_audit_log_entries(self, *args, **kwargs):

Loading…
Cancel
Save