Class: Discorb::Gateway::GuildIntegrationsUpdateEvent
- Inherits:
-
GatewayEvent
- Object
- GatewayEvent
- Discorb::Gateway::GuildIntegrationsUpdateEvent
- Defined in:
- lib/discorb/gateway.rb
Overview
Represents a GUILD_INTEGRATIONS_UPDATE
event.
Instance Method Summary collapse
- #guild -> Object
-
#initialize(client, data) -> GuildIntegrationsUpdateEvent
constructor
A new instance of GuildIntegrationsUpdateEvent.
Constructor Details
#initialize(client, data) -> GuildIntegrationsUpdateEvent
Returns a new instance of GuildIntegrationsUpdateEvent.
399 400 401 402 403 |
# File 'lib/discorb/gateway.rb', line 399 def initialize(client, data) @client = client @data = data @guild_id = Snowflake.new(data[:guild_id]) end |
Instance Method Details
#guild -> Object
405 406 407 |
# File 'lib/discorb/gateway.rb', line 405 def guild @client.guilds[@guild_id] end |