Class: DiscordRDA::ChannelPinsUpdateEvent
- Inherits:
-
Event
- Object
- Event
- DiscordRDA::ChannelPinsUpdateEvent
show all
- Defined in:
- lib/discord_rda/event/base.rb
Instance Attribute Summary
Attributes inherited from Event
#data, #shard_id, #timestamp, #type
Instance Method Summary
collapse
Methods inherited from Event
#created_at, #inspect, #to_h
Constructor Details
Returns a new instance of ChannelPinsUpdateEvent.
318
319
320
|
# File 'lib/discord_rda/event/base.rb', line 318
def initialize(data, shard_id:)
super('CHANNEL_PINS_UPDATE', data, shard_id: shard_id)
end
|
Instance Method Details
#channel_id ⇒ Object
322
323
324
|
# File 'lib/discord_rda/event/base.rb', line 322
def channel_id
@data['channel_id']
end
|
#guild_id ⇒ Object
326
327
328
|
# File 'lib/discord_rda/event/base.rb', line 326
def guild_id
@data['guild_id']
end
|
#last_pin_timestamp ⇒ Object
330
331
332
|
# File 'lib/discord_rda/event/base.rb', line 330
def last_pin_timestamp
@data['last_pin_timestamp']
end
|