diff --git a/docs/resources/guild-template.mdx b/docs/resources/guild-template.mdx index e0c37319c3..063b218bdd 100644 --- a/docs/resources/guild-template.mdx +++ b/docs/resources/guild-template.mdx @@ -104,22 +104,6 @@ Represents a code that when used, creates a guild based on a snapshot of an exis Returns a [guild template](/docs/resources/guild-template#guild-template-object) object for the given code. -## Create Guild from Guild Template -/guilds/templates/[\{template.code\}](/docs/resources/guild-template#guild-template-object) - -Create a new guild based on a template. Returns a [guild](/docs/resources/guild#guild-object) object on success. Fires a [Guild Create](/docs/events/gateway-events#guild-create) Gateway event. - -:::warn -This endpoint can be used only by bots in less than 10 guilds. -::: - -###### JSON Params - -| Field | Type | Description | -|-------|------------------------------------------|-----------------------------------------| -| name | string | name of the guild (2-100 characters) | -| icon? | [image data](/docs/reference#image-data) | base64 128x128 image for the guild icon | - ## Get Guild Templates /guilds/[\{guild.id\}](/docs/resources/guild#guild-object)/templates diff --git a/docs/resources/guild.mdx b/docs/resources/guild.mdx index 761a1551fd..a739d3ed25 100644 --- a/docs/resources/guild.mdx +++ b/docs/resources/guild.mdx @@ -699,77 +699,6 @@ We are making significant changes to the Membership Screening API specifically r } ``` -## Create Guild -/guilds - -Create a new guild. Returns a [guild](/docs/resources/guild#guild-object) object on success. Fires a [Guild Create](/docs/events/gateway-events#guild-create) Gateway event. - -:::warn -This endpoint can be used only by bots in less than 10 guilds. -::: - -###### JSON Params - -| Field | Type | Description | -|--------------------------------|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------| -| name | string | name of the guild (2-100 characters) | -| region? | ?string | [voice region](/docs/resources/voice#voice-region-object) id (deprecated) | -| icon? | [image data](/docs/reference#image-data) | base64 128x128 image for the guild icon | -| verification_level? | integer | [verification level](/docs/resources/guild#guild-object-verification-level) | -| default_message_notifications? | integer | default [message notification level](/docs/resources/guild#guild-object-default-message-notification-level) | -| explicit_content_filter? | integer | [explicit content filter level](/docs/resources/guild#guild-object-explicit-content-filter-level) | -| roles? | array of [role](/docs/topics/permissions#role-object) objects | new guild roles | -| channels? | array of partial [channel](/docs/resources/channel#channel-object) objects | new guild's channels | -| afk_channel_id? | snowflake | id for afk channel | -| afk_timeout? | integer | afk timeout in seconds, can be set to: 60, 300, 900, 1800, 3600 | -| system_channel_id? | snowflake | the id of the channel where guild notices such as welcome messages and boost events are posted | -| system_channel_flags? | integer | [system channel flags](/docs/resources/guild#guild-object-system-channel-flags) | - -:::warn -When using the `roles` parameter, the first member of the array is used to change properties of the guild's `@everyone` role. If you are trying to bootstrap a guild with additional roles, keep this in mind. -::: - -:::info -When using the `roles` parameter, the required `id` field within each role object is an integer placeholder, and will be replaced by the API upon consumption. Its purpose is to allow you to [overwrite](/docs/resources/channel#overwrite-object) a role's permissions in a channel when also passing in channels with the channels array. -::: - -:::warn -When using the `channels` parameter, the `position` field is ignored, and none of the default channels are created. -::: - -:::info -When using the `channels` parameter, the `id` field within each channel object may be set to an integer placeholder, and will be replaced by the API upon consumption. Its purpose is to allow you to create `GUILD_CATEGORY` channels by setting the `parent_id` field on any children to the category's `id` field. Category channels must be listed before any children. -::: - -:::warn -The `region` field is deprecated and is replaced by [channel.rtc_region](/docs/resources/channel#channel-object-channel-structure). -::: - -###### Example Partial Channel Object - -```json -{ - "name": "naming-things-is-hard", - "type": 0 -} -``` - -###### Example Category Channel - -```json -{ - "name": "my-category", - "type": 4, - "id": 1 -} -{ - "name": "naming-things-is-hard", - "type": 0, - "id": 2, - "parent_id": 1 -} -``` - ## Get Guild /guilds/[\{guild.id\}](/docs/resources/guild#guild-object)