Class: Discorb::Gateway::GuildIntegrationsUpdateEvent

Inherits:
GatewayEvent
  • Object
show all
Defined in:
lib/discorb/gateway.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, data) -> GuildIntegrationsUpdateEvent

Returns a new instance of GuildIntegrationsUpdateEvent.



349
350
351
352
353
# File 'lib/discorb/gateway.rb', line 349

def initialize(client, data)
  @client = client
  @data = data
  @guild_id = Snowflake.new(data[:guild_id])
end

Instance Method Details

#guild -> Object



355
356
357
# File 'lib/discorb/gateway.rb', line 355

def guild
  @client.guilds[@guild_id]
end