Class: DiscordRDA::WebhooksUpdateEvent
- 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_id ⇒ Object
- #guild_id ⇒ Object
-
#initialize(data, shard_id:) ⇒ WebhooksUpdateEvent
constructor
A new instance of WebhooksUpdateEvent.
Methods inherited from Event
Constructor Details
#initialize(data, shard_id:) ⇒ WebhooksUpdateEvent
Returns a new instance of WebhooksUpdateEvent.
1127 1128 1129 |
# File 'lib/discord_rda/event/base.rb', line 1127 def initialize(data, shard_id:) super('WEBHOOKS_UPDATE', data, shard_id: shard_id) end |
Instance Method Details
#channel_id ⇒ Object
1135 1136 1137 |
# File 'lib/discord_rda/event/base.rb', line 1135 def channel_id @data['channel_id'] ? Snowflake.new(@data['channel_id']) : nil end |
#guild_id ⇒ Object
1131 1132 1133 |
# File 'lib/discord_rda/event/base.rb', line 1131 def guild_id @data['guild_id'] ? Snowflake.new(@data['guild_id']) : nil end |