Instance Method

modifyIntegration(_:for:with:then:)

Modifies an integration from a guild

Declaration

func modifyIntegration(_ integrationId: Snowflake, for guildId: Snowflake, with options: [String : Any], then completion: ((RequestError?) -> Void)? = nil)

Parameters

integrationId

Integration to modify

guildId

Guild to modify integration from

options

Preconfigured options to modify this integration with

Option Params

  • expire_behavior: The behavior when an integration subscription lapses (see the integration object documentation)

  • expire_grace_period: Period (in seconds) where the integration will ignore lapsed subscriptions

  • enable_emoticons: Whether emoticons should be synced for this integration (twitch only currently), true or false