Class: DiscordRDA::ChannelCreateEvent
- Defined in:
- lib/discord_rda/event/base.rb
Overview
Channel events
Instance Attribute Summary
Attributes inherited from Event
#data, #shard_id, #timestamp, #type
Instance Method Summary collapse
- #channel ⇒ Object
-
#initialize(data, shard_id:) ⇒ ChannelCreateEvent
constructor
A new instance of ChannelCreateEvent.
Methods inherited from Event
Constructor Details
#initialize(data, shard_id:) ⇒ ChannelCreateEvent
Returns a new instance of ChannelCreateEvent.
285 286 287 |
# File 'lib/discord_rda/event/base.rb', line 285 def initialize(data, shard_id:) super('CHANNEL_CREATE', data, shard_id: shard_id) end |
Instance Method Details
#channel ⇒ Object
289 290 291 |
# File 'lib/discord_rda/event/base.rb', line 289 def channel @channel ||= Channel.new(@data) end |