Class: RubyCord::Guild::AuditLog
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- RubyCord::Guild::AuditLog
- Defined in:
- lib/rubycord/guild/audit_logs.rb,
lib/rubycord/guild/audit_log/entry.rb,
lib/rubycord/guild/audit_log/integration.rb
Defined Under Namespace
Classes: Entry, Integration
Instance Attribute Summary collapse
-
#entries ⇒ Array<RubyCord::Guild::AuditLog::Entry>
readonly
The entries in this audit log.
-
#threads ⇒ Array<RubyCord::Guild::ThreadChannel>
readonly
The threads in this audit log.
-
#users ⇒ Array<RubyCord::User>
readonly
The users in this audit log.
-
#webhooks ⇒ Array<RubyCord::Guild::Webhook>
readonly
The webhooks in this audit log.
Instance Method Summary collapse
-
#[](index) ⇒ RubyCord::Guild::AuditLog::Entry?
Gets an entry from entries.
- #inspect ⇒ Object
Methods inherited from DiscordModel
Instance Attribute Details
#entries ⇒ Array<RubyCord::Guild::AuditLog::Entry> (readonly)
Returns The entries in this audit log.
17 18 19 |
# File 'lib/rubycord/guild/audit_logs.rb', line 17 def entries @entries end |
#threads ⇒ Array<RubyCord::Guild::ThreadChannel> (readonly)
Returns The threads in this audit log.
15 16 17 |
# File 'lib/rubycord/guild/audit_logs.rb', line 15 def threads @threads end |
#users ⇒ Array<RubyCord::User> (readonly)
Returns The users in this audit log.
13 14 15 |
# File 'lib/rubycord/guild/audit_logs.rb', line 13 def users @users end |
#webhooks ⇒ Array<RubyCord::Guild::Webhook> (readonly)
Returns The webhooks in this audit log.
11 12 13 |
# File 'lib/rubycord/guild/audit_logs.rb', line 11 def webhooks @webhooks end |
Instance Method Details
#[](index) ⇒ RubyCord::Guild::AuditLog::Entry?
Gets an entry from entries.
55 56 57 |
# File 'lib/rubycord/guild/audit_logs.rb', line 55 def [](index) @entries[index] end |
#inspect ⇒ Object
43 44 45 |
# File 'lib/rubycord/guild/audit_logs.rb', line 43 def inspect "<#{self.class} #{@entries.length} entries>" end |