Class: Discorb::GatewayHandler::GuildIntegrationsUpdateEvent
- Inherits:
-
GatewayEvent
- Object
- GatewayEvent
- Discorb::GatewayHandler::GuildIntegrationsUpdateEvent
- Defined in:
- lib/discorb/gateway.rb
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.
338 339 340 341 342 |
# File 'lib/discorb/gateway.rb', line 338 def initialize(client, data) @client = client @data = data @guild_id = Snowflake.new(data[:guild_id]) end |
Instance Method Details
#guild -> Object
344 345 346 |
# File 'lib/discorb/gateway.rb', line 344 def guild @client.guilds[@guild_id] end |