Class: Rubycord::Events::AwaitEvent
- Defined in:
- lib/rubycord/events/await.rb
Overview
Instance Attribute Summary collapse
-
#attributes ⇒ Hash
readonly
A hash of attributes defined on the await.
-
#await ⇒ Await
readonly
The await that was triggered.
-
#event ⇒ Event
readonly
The event that triggered the await.
-
#key ⇒ Symbol
readonly
The await's key.
-
#type ⇒ Class
readonly
The await's event class.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(await, event, bot) ⇒ AwaitEvent
constructor
For internal use only.
Constructor Details
#initialize(await, event, bot) ⇒ AwaitEvent
For internal use only
27 28 29 30 31 |
# File 'lib/rubycord/events/await.rb', line 27 def initialize(await, event, bot) @await = await @event = event @bot = bot end |
Instance Attribute Details
#attributes ⇒ Hash (readonly)
Returns a hash of attributes defined on the await.
24 |
# File 'lib/rubycord/events/await.rb', line 24 delegate :key, :type, :attributes, to: :await |
#await ⇒ Await (readonly)
The await that was triggered.
9 10 11 |
# File 'lib/rubycord/events/await.rb', line 9 def await @await end |
#event ⇒ Event (readonly)
The event that triggered the await.
13 14 15 |
# File 'lib/rubycord/events/await.rb', line 13 def event @event end |
#key ⇒ Symbol (readonly)
Returns the await's key.
24 |
# File 'lib/rubycord/events/await.rb', line 24 delegate :key, :type, :attributes, to: :await |
#type ⇒ Class (readonly)
Returns the await's event class.
24 |
# File 'lib/rubycord/events/await.rb', line 24 delegate :key, :type, :attributes, to: :await |