Class: Discordrb::Events::RawEvent
- Defined in:
- lib/discordrb/events/raw.rb
Overview
Event raised when any dispatch is received
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Hash
(also: #d)
readonly
The data of this dispatch.
-
#type ⇒ Symbol
(also: #t)
readonly
The type of this dispatch.
Attributes inherited from Event
Instance Attribute Details
#data ⇒ Hash (readonly) Also known as: d
Returns the data of this dispatch.
14 15 16 |
# File 'lib/discordrb/events/raw.rb', line 14 def data @data end |
#type ⇒ Symbol (readonly) Also known as: t
Returns the type of this dispatch.
10 11 12 |
# File 'lib/discordrb/events/raw.rb', line 10 def type @type end |