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/guild_id.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/guild_id.rs')
| -rw-r--r-- | src/model/guild/guild_id.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/model/guild/guild_id.rs b/src/model/guild/guild_id.rs index 7a851bb..37b3886 100644 --- a/src/model/guild/guild_id.rs +++ b/src/model/guild/guild_id.rs @@ -73,7 +73,12 @@ impl GuildId { /// Gets a list of the guild's audit log entries #[inline] - pub fn audit_logs(&self) -> Result<AuditLogs> { http::get_audit_logs(self.0) } + pub fn audit_logs(&self, action_type: Option<u8>, + user_id: Option<UserId>, + before: Option<AuditLogEntryId>, + limit: Option<u8>) -> Result<AuditLogs> { + http::get_audit_logs(self.0, action_type, user_id.map(|u| u.0), before.map(|a| a.0), limit) + } /// Gets all of the guild's channels over the REST API. /// |