Class: Discorb::Gateway::ScheduledEventUserEvent

Inherits:
GatewayEvent
  • Object
show all
Defined in:
lib/discorb/gateway_events.rb

Overview

Represents a GUILD_SCHEDULED_EVENT_USER_ADD and GUILD_SCHEDULED_EVENT_USER_REMOVE event.

Instance Attribute Summary collapse

Method Summary

Methods inherited from GatewayEvent

#inspect

Instance Attribute Details

#guild -> Discorb::Guild (readonly)

Returns The guild the event was triggered in.

Returns:



268
269
270
# File 'lib/discorb/gateway_events.rb', line 268

def guild
  @guild
end

#scheduled_event -> Discorb::ScheduledEvent (readonly)

Returns The scheduled event.

Returns:



270
271
272
# File 'lib/discorb/gateway_events.rb', line 270

def scheduled_event
  @scheduled_event
end

#user -> Discorb::User (readonly)

Returns The user that triggered the event.

Returns:



266
267
268
# File 'lib/discorb/gateway_events.rb', line 266

def user
  @user
end