Class: Discordrb::AuditLogs::RoleChange
- Inherits:
-
Object
- Object
- Discordrb::AuditLogs::RoleChange
- Defined in:
- lib/discordrb/data.rb
Overview
A change that includes roles.
Instance Attribute Summary collapse
-
#type ⇒ Symbol
readonly
What type of change this is: (:add, :remove).
Instance Method Summary collapse
-
#role ⇒ Role
The role being used.
Instance Attribute Details
#type ⇒ Symbol (readonly)
Returns what type of change this is: (:add, :remove).
4106 4107 4108 |
# File 'lib/discordrb/data.rb', line 4106 def type @type end |
Instance Method Details
#role ⇒ Role
Returns the role being used.
4116 4117 4118 |
# File 'lib/discordrb/data.rb', line 4116 def role @role ||= @server.role(@role_id) end |