Class: DiscordRDA::ChannelDeleteEvent
- Defined in:
- lib/discord_rda/event/base.rb
Instance Attribute Summary
Attributes inherited from Event
#data, #shard_id, #timestamp, #type
Instance Method Summary collapse
- #channel ⇒ Object
-
#initialize(data, shard_id:) ⇒ ChannelDeleteEvent
constructor
A new instance of ChannelDeleteEvent.
Methods inherited from Event
Constructor Details
#initialize(data, shard_id:) ⇒ ChannelDeleteEvent
Returns a new instance of ChannelDeleteEvent.
313 314 315 |
# File 'lib/discord_rda/event/base.rb', line 313 def initialize(data, shard_id:) super('CHANNEL_DELETE', data, shard_id: shard_id) end |
Instance Method Details
#channel ⇒ Object
317 318 319 |
# File 'lib/discord_rda/event/base.rb', line 317 def channel @channel ||= Channel.new(@data) end |