Class: Discordrb::Events::AwaitEvent

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

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(await, event, bot) ⇒ AwaitEvent

For internal use only



17
18
19
20
21
# File 'lib/discordrb/events/await.rb', line 17

def initialize(await, event, bot)
  @await = await
  @event = event
  @bot = bot
end

Instance Attribute Details

#awaitAwait (readonly)

The await that was triggered.

Returns:



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

def await
  @await
end

#eventEvent (readonly)

The event that triggered the await.

Returns:

  • (Event)

    The event



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

def event
  @event
end