Skip to content

Commit

Permalink
Remove the create, modify and sync guild integration endpoints which …
Browse files Browse the repository at this point in the history
…bots have been blocked from. (#2087)
  • Loading branch information
FasterSpeeding committed Apr 2, 2021
1 parent c20dd79 commit efe4e58
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions docs/resources/Guild.md
Original file line number Diff line number Diff line change
Expand Up @@ -838,40 +838,10 @@ Returns a list of [invite](#DOCS_RESOURCES_INVITE/invite-object) objects (with [

Returns a list of [integration](#DOCS_RESOURCES_GUILD/integration-object) objects for the guild. Requires the `MANAGE_GUILD` permission.

## Create Guild Integration % POST /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/integrations

Attach an [integration](#DOCS_RESOURCES_GUILD/integration-object) object from the current user to the guild. Requires the `MANAGE_GUILD` permission. Returns a 204 empty response on success. Fires a [Guild Integrations Update](#DOCS_TOPICS_GATEWAY/guild-integrations-update) Gateway event.

###### JSON Params

| Field | Type | Description |
| ----- | --------- | -------------------- |
| type | string | the integration type |
| id | snowflake | the integration id |

## Modify Guild Integration % PATCH /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/integrations/{integration.id#DOCS_RESOURCES_GUILD/integration-object}

Modify the behavior and settings of an [integration](#DOCS_RESOURCES_GUILD/integration-object) object for the guild. Requires the `MANAGE_GUILD` permission. Returns a 204 empty response on success. Fires a [Guild Integrations Update](#DOCS_TOPICS_GATEWAY/guild-integrations-update) Gateway event.

> info
> All parameters to this endpoint are optional and nullable.
###### JSON Params

| Field | Type | Description |
| ------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| expire_behavior | integer | the behavior when an integration subscription lapses (see the [integration expire behaviors](#DOCS_RESOURCES_GUILD/integration-object-integration-expire-behaviors) documentation) |
| expire_grace_period | integer | period (in days) where the integration will ignore lapsed subscriptions |
| enable_emoticons | boolean | whether emoticons should be synced for this integration (twitch only currently) |

## Delete Guild Integration % DELETE /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/integrations/{integration.id#DOCS_RESOURCES_GUILD/integration-object}

Delete the attached [integration](#DOCS_RESOURCES_GUILD/integration-object) object for the guild. Deletes any associated webhooks and kicks the associated bot if there is one. Requires the `MANAGE_GUILD` permission. Returns a 204 empty response on success. Fires a [Guild Integrations Update](#DOCS_TOPICS_GATEWAY/guild-integrations-update) Gateway event.

## Sync Guild Integration % POST /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/integrations/{integration.id#DOCS_RESOURCES_GUILD/integration-object}/sync

Sync an integration. Requires the `MANAGE_GUILD` permission. Returns a 204 empty response on success.

## Get Guild Widget Settings % GET /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/widget

Returns a [guild widget](#DOCS_RESOURCES_GUILD/guild-widget-object) object. Requires the `MANAGE_GUILD` permission.
Expand Down

0 comments on commit efe4e58

Please sign in to comment.