Class: MijDiscord::Events::Exception
- Defined in:
- lib/mij-discord/events/basic.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Generic
Instance Method Summary collapse
-
#initialize(bot, type, exception, payload = nil) ⇒ Exception
constructor
A new instance of Exception.
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
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
25 26 27 |
# File 'lib/mij-discord/events/basic.rb', line 25 def exception @exception end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
23 24 25 |
# File 'lib/mij-discord/events/basic.rb', line 23 def payload @payload end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
21 22 23 |
# File 'lib/mij-discord/events/basic.rb', line 21 def type @type end |