Class: DiscordRDA::ChannelUpdateEvent
- Inherits:
-
Event
- Object
- Event
- DiscordRDA::ChannelUpdateEvent
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 ChannelUpdateEvent.
290
291
292
|
# File 'lib/discord_rda/event/base.rb', line 290
def initialize(data, shard_id:)
super('CHANNEL_UPDATE', data, shard_id: shard_id)
end
|
Instance Method Details
#after ⇒ Object
302
303
304
|
# File 'lib/discord_rda/event/base.rb', line 302
def after
channel
end
|
#before ⇒ Object
298
299
300
|
# File 'lib/discord_rda/event/base.rb', line 298
def before
@data['before']
end
|
#channel ⇒ Object
294
295
296
|
# File 'lib/discord_rda/event/base.rb', line 294
def channel
@channel ||= Channel.new(@data)
end
|