Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
[audit-log] add Guild.audit_log_iter for constructing iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
b1naryth1ef committed Aug 10, 2017
1 parent 8ec5141 commit 070cb68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions disco/types/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,14 @@ def splash_url(self):

@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):
Expand Down

0 comments on commit 070cb68

Please sign in to comment.