diff options
| author | acdenisSK <[email protected]> | 2017-07-20 03:47:13 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-20 03:48:28 +0200 |
| commit | 6a101c4a409ae3abe4038f96dcd51f0788d4c0e4 (patch) | |
| tree | 505c7dc6e4735c82dc9d01c0b83146b30c75da50 /src/model/guild/guild_id.rs | |
| parent | Fix tests (diff) | |
| download | serenity-6a101c4a409ae3abe4038f96dcd51f0788d4c0e4.tar.xz serenity-6a101c4a409ae3abe4038f96dcd51f0788d4c0e4.zip | |
Add an actual way to fetch audit log entries from a guild
Diffstat (limited to 'src/model/guild/guild_id.rs')
| -rw-r--r-- | src/model/guild/guild_id.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/model/guild/guild_id.rs b/src/model/guild/guild_id.rs index 5d318a5..6fbaddf 100644 --- a/src/model/guild/guild_id.rs +++ b/src/model/guild/guild_id.rs @@ -72,6 +72,12 @@ impl GuildId { http::get_bans(self.0) } + /// Gets a list of the guild's audit log entries + #[inline] + pub fn audit_logs(&self) -> Result<AuditLogs> { + http::get_audit_logs(self.0) + } + /// Gets all of the guild's channels over the REST API. /// /// [`Guild`]: struct.Guild.html |