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.
871
872
873
|
# File 'lib/discord_rda/event/base.rb', line 871
def initialize(data, shard_id:)
super('THREAD_UPDATE', data, shard_id: shard_id)
end
|
Instance Method Details
#guild_id ⇒ Object
879
880
881
|
# File 'lib/discord_rda/event/base.rb', line 879
def guild_id
@data['guild_id']
end
|
#parent_id ⇒ Object
883
884
885
|
# File 'lib/discord_rda/event/base.rb', line 883
def parent_id
@data['parent_id']
end
|
#thread ⇒ Object
875
876
877
|
# File 'lib/discord_rda/event/base.rb', line 875
def thread
@thread ||= Channel.new(@data)
end
|