Class: Rubycord::Events::AwaitEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/rubycord/events/await.rb

Overview

See Also:

  • Bot#await

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Method Summary collapse

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

#attributesHash (readonly)

Returns a hash of attributes defined on the await.

Returns:

  • (Hash)

    a hash of attributes defined on the await.

See Also:



24
# File 'lib/rubycord/events/await.rb', line 24

delegate :key, :type, :attributes, to: :await

#awaitAwait (readonly)

The await that was triggered.

Returns:



9
10
11
# File 'lib/rubycord/events/await.rb', line 9

def await
  @await
end

#eventEvent (readonly)

The event that triggered the await.

Returns:



13
14
15
# File 'lib/rubycord/events/await.rb', line 13

def event
  @event
end

#keySymbol (readonly)

Returns the await's key.

Returns:

  • (Symbol)

    the await's key.

See Also:



24
# File 'lib/rubycord/events/await.rb', line 24

delegate :key, :type, :attributes, to: :await

#typeClass (readonly)

Returns the await's event class.

Returns:

  • (Class)

    the await's event class.

See Also:



24
# File 'lib/rubycord/events/await.rb', line 24

delegate :key, :type, :attributes, to: :await