Class: Discorb::AuditLog
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::AuditLog
- Defined in:
- lib/discorb/audit_logs.rb
Overview
Represents a Discord audit log.
Defined Under Namespace
Classes: Entry, Integration
Instance Attribute Summary collapse
-
#entries -> Array<Discorb::AuditLog::Entry>
readonly
The entries in this audit log.
-
#threads -> Array<Discorb::ThreadChannel>
readonly
The threads in this audit log.
-
#users -> Array<Discorb::User>
readonly
The users in this audit log.
-
#webhooks -> Array<Discorb::Webhook>
readonly
The webhooks in this audit log.
Instance Method Summary collapse
-
#[](index) -> Discorb::AuditLog::Entry?
Gets an entry from entries.
Methods inherited from DiscordModel
Instance Attribute Details
#entries -> Array<Discorb::AuditLog::Entry> (readonly)
Returns The entries in this audit log.
15 16 17 |
# File 'lib/discorb/audit_logs.rb', line 15 def entries @entries end |
#threads -> Array<Discorb::ThreadChannel> (readonly)
Returns The threads in this audit log.
13 14 15 |
# File 'lib/discorb/audit_logs.rb', line 13 def threads @threads end |
#users -> Array<Discorb::User> (readonly)
Returns The users in this audit log.
11 12 13 |
# File 'lib/discorb/audit_logs.rb', line 11 def users @users end |
#webhooks -> Array<Discorb::Webhook> (readonly)
Returns The webhooks in this audit log.
9 10 11 |
# File 'lib/discorb/audit_logs.rb', line 9 def webhooks @webhooks end |
Instance Method Details
#[](index) -> Discorb::AuditLog::Entry?
Gets an entry from entries.
35 36 37 |
# File 'lib/discorb/audit_logs.rb', line 35 def [](index) @entries[index] end |