Class: DiscordRDA::ThreadDeleteEvent
- Inherits:
-
Event
- Object
- Event
- DiscordRDA::ThreadDeleteEvent
show all
- Defined in:
- lib/discord_rda/event/base.rb
Instance Attribute Summary
Attributes inherited from Event
#data, #shard_id, #timestamp
Instance Method Summary
collapse
Methods inherited from Event
#created_at, #inspect, #to_h
Constructor Details
Returns a new instance of ThreadDeleteEvent.
884
885
886
|
# File 'lib/discord_rda/event/base.rb', line 884
def initialize(data, shard_id:)
super('THREAD_DELETE', data, shard_id: shard_id)
end
|
Instance Method Details
#channel_id ⇒ Object
892
893
894
|
# File 'lib/discord_rda/event/base.rb', line 892
def channel_id
@data['parent_id']
end
|
#guild_id ⇒ Object
896
897
898
|
# File 'lib/discord_rda/event/base.rb', line 896
def guild_id
@data['guild_id']
end
|
#thread_id ⇒ Object
888
889
890
|
# File 'lib/discord_rda/event/base.rb', line 888
def thread_id
@data['id']
end
|
#type ⇒ Object
900
901
902
|
# File 'lib/discord_rda/event/base.rb', line 900
def type
@data['type']
end
|