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.
323
324
325
|
# File 'lib/discord_rda/event/base.rb', line 323
def initialize(data, shard_id:)
super('CHANNEL_PINS_UPDATE', data, shard_id: shard_id)
end
|
Instance Method Details
#channel_id ⇒ Object
327
328
329
|
# File 'lib/discord_rda/event/base.rb', line 327
def channel_id
@data['channel_id']
end
|
#guild_id ⇒ Object
331
332
333
|
# File 'lib/discord_rda/event/base.rb', line 331
def guild_id
@data['guild_id']
end
|
#last_pin_timestamp ⇒ Object
335
336
337
|
# File 'lib/discord_rda/event/base.rb', line 335
def last_pin_timestamp
@data['last_pin_timestamp']
end
|