Class: Discordrb::AuditLogs::RoleChange

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/audit_logs.rb

Overview

A change that includes roles.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeSymbol (readonly)

Returns what type of change this is: (:add, :remove).

Returns:

  • (Symbol)

    what type of change this is: (:add, :remove)



260
261
262
# File 'lib/discordrb/data/audit_logs.rb', line 260

def type
  @type
end

Instance Method Details

#roleRole

Returns the role being used.

Returns:

  • (Role)

    the role being used.



270
271
272
# File 'lib/discordrb/data/audit_logs.rb', line 270

def role
  @role ||= @server.role(@role_id)
end