Class: MijDiscord::Events::Unhandled

Inherits:
Generic show all
Defined in:
lib/mij-discord/events/basic.rb

Instance Attribute Summary collapse

Attributes inherited from Generic

#bot

Instance Method Summary collapse

Methods inherited from EventBase

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

Constructor Details

#initialize(bot, name, data) ⇒ Unhandled

Returns a new instance of Unhandled.



43
44
45
46
47
# File 'lib/mij-discord/events/basic.rb', line 43

def initialize(bot, name, data)
  super(bot)

  @name, @data = name, data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



39
40
41
# File 'lib/mij-discord/events/basic.rb', line 39

def data
  @data
end

#nameObject (readonly)

Returns the value of attribute name.



37
38
39
# File 'lib/mij-discord/events/basic.rb', line 37

def name
  @name
end