Class: Discorb::Gateway::ScheduledEventUserEvent
- Inherits:
-
GatewayEvent
- Object
- GatewayEvent
- Discorb::Gateway::ScheduledEventUserEvent
- 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
-
#guild ⇒ Discorb::Guild
readonly
The guild the event was triggered in.
-
#scheduled_event ⇒ Discorb::ScheduledEvent
readonly
The scheduled event.
-
#user ⇒ Discorb::User
readonly
The user that triggered the event.
Method Summary
Methods inherited from GatewayEvent
Instance Attribute Details
#guild ⇒ Discorb::Guild (readonly)
Returns The guild the event was triggered in.
283 284 285 |
# File 'lib/discorb/gateway_events.rb', line 283 def guild @guild end |
#scheduled_event ⇒ Discorb::ScheduledEvent (readonly)
Returns The scheduled event.
285 286 287 |
# File 'lib/discorb/gateway_events.rb', line 285 def scheduled_event @scheduled_event end |
#user ⇒ Discorb::User (readonly)
Returns The user that triggered the event.
281 282 283 |
# File 'lib/discorb/gateway_events.rb', line 281 def user @user end |