Class: DiscordRDA::ThreadUpdateEvent
- Inherits:
-
Event
- Object
- Event
- DiscordRDA::ThreadUpdateEvent
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 ThreadUpdateEvent.
866
867
868
|
# File 'lib/discord_rda/event/base.rb', line 866
def initialize(data, shard_id:)
super('THREAD_UPDATE', data, shard_id: shard_id)
end
|
Instance Method Details
#guild_id ⇒ Object
874
875
876
|
# File 'lib/discord_rda/event/base.rb', line 874
def guild_id
@data['guild_id']
end
|
#parent_id ⇒ Object
878
879
880
|
# File 'lib/discord_rda/event/base.rb', line 878
def parent_id
@data['parent_id']
end
|
#thread ⇒ Object
870
871
872
|
# File 'lib/discord_rda/event/base.rb', line 870
def thread
@thread ||= Channel.new(@data)
end
|