Discore
Show / Hide Table of Contents

Method CreateGuildIntegration

| Improve this Doc View Source

CreateGuildIntegration(Snowflake, Snowflake, string)

Attaches an integration from the current bot to the specified guild.

Requires ManageGuild.

Declaration
public Task CreateGuildIntegration(Snowflake guildId, Snowflake integrationId, string type)
Parameters
Type Name Description
Snowflake guildId
Snowflake integrationId
string type
Returns
Type Description
Task
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

CreateGuildIntegration(DiscordGuild, DiscordIntegration)

Attaches an integration from the current bot to the specified guild.

Requires ManageGuild.

Declaration
public Task CreateGuildIntegration(DiscordGuild guild, DiscordIntegration integration)
Parameters
Type Name Description
DiscordGuild guild
DiscordIntegration integration
Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX