Class: MijDiscord::Events::Role

Inherits:
Server show all
Defined in:
lib/mij-discord/events/member.rb

Direct Known Subclasses

CreateRole, DeleteRole, UpdateRole

Instance Attribute Summary collapse

Attributes inherited from Server

#server

Attributes inherited from Generic

#bot

Instance Method Summary collapse

Methods inherited from EventBase

delegate_method, filter_match, inherited, #inspect, #trigger?

Constructor Details

#initialize(bot, server, role) ⇒ Role

Returns a new instance of Role.



10
11
12
13
14
# File 'lib/mij-discord/events/member.rb', line 10

def initialize(bot, server, role)
  super(bot, server)

  @role = role
end

Instance Attribute Details

#roleObject (readonly)

Returns the value of attribute role.



5
6
7
# File 'lib/mij-discord/events/member.rb', line 5

def role
  @role
end