Class: MijDiscord::Events::Exception

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, type, exception, payload = nil) ⇒ Exception

Returns a new instance of Exception.



29
30
31
32
33
# File 'lib/mij-discord/events/basic.rb', line 29

def initialize(bot, type, exception, payload = nil)
  super(bot)

  @type, @exception, @payload = type, exception, payload
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



25
26
27
# File 'lib/mij-discord/events/basic.rb', line 25

def exception
  @exception
end

#payloadObject (readonly)

Returns the value of attribute payload.



23
24
25
# File 'lib/mij-discord/events/basic.rb', line 23

def payload
  @payload
end

#typeObject (readonly)

Returns the value of attribute type.



21
22
23
# File 'lib/mij-discord/events/basic.rb', line 21

def type
  @type
end