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.
889
890
891
|
# File 'lib/discord_rda/event/base.rb', line 889
def initialize(data, shard_id:)
super('THREAD_DELETE', data, shard_id: shard_id)
end
|
Instance Method Details
#channel_id ⇒ Object
897
898
899
|
# File 'lib/discord_rda/event/base.rb', line 897
def channel_id
@data['parent_id']
end
|
#guild_id ⇒ Object
901
902
903
|
# File 'lib/discord_rda/event/base.rb', line 901
def guild_id
@data['guild_id']
end
|
#thread_id ⇒ Object
893
894
895
|
# File 'lib/discord_rda/event/base.rb', line 893
def thread_id
@data['id']
end
|
#type ⇒ Object
905
906
907
|
# File 'lib/discord_rda/event/base.rb', line 905
def type
@data['type']
end
|