diff options
| author | acdenisSK <[email protected]> | 2017-11-01 13:55:29 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-11-01 13:55:29 +0100 |
| commit | f4918098fcbb6df6129504428e44ccb363ef4ff8 (patch) | |
| tree | 039d68278b2fb038bb6eaa3f2e258654d0a51305 /src/model/guild/mod.rs | |
| parent | Add a fallback to `RoleId::from_str` as well (diff) | |
| download | serenity-f4918098fcbb6df6129504428e44ccb363ef4ff8.tar.xz serenity-f4918098fcbb6df6129504428e44ccb363ef4ff8.zip | |
Fix audit logs a bit
Diffstat (limited to 'src/model/guild/mod.rs')
| -rw-r--r-- | src/model/guild/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index 7aeb98f..7582180 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -250,7 +250,12 @@ impl Guild { /// /// [`AuditLogs`]: audit_log/struct.AuditLogs.html #[inline] - pub fn audit_logs(&self) -> Result<AuditLogs> { self.id.audit_logs() } + pub fn audit_logs(&self, action_type: Option<u8>, + user_id: Option<UserId>, + before: Option<AuditLogEntryId>, + limit: Option<u8>) -> Result<AuditLogs> { + self.id.audit_logs(action_type, user_id, before, limit) + } /// Gets all of the guild's channels over the REST API. /// |