Class: Discordrb::Events::ScheduledEventEvent

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

Overview

Generic superclass for scheduled events.

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#scheduled_eventScheduledEvent (readonly)

Returns the scheduled event associated with the event.

Returns:



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

def scheduled_event
  @scheduled_event
end

#serverServer (readonly)

Returns the server associated with the event.

Returns:

  • (Server)

    the server associated with the event.



10
11
12
# File 'lib/discordrb/events/scheduled_events.rb', line 10

def server
  @server
end