Skip to content

Commit 74244a1

Browse files
authored
Remove create guild endpoints (#7715)
1 parent bb03bc2 commit 74244a1

File tree

2 files changed

+0
-87
lines changed

2 files changed

+0
-87
lines changed

docs/resources/guild-template.mdx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,6 @@ Represents a code that when used, creates a guild based on a snapshot of an exis
104104

105105
Returns a [guild template](/docs/resources/guild-template#guild-template-object) object for the given code.
106106

107-
## Create Guild from Guild Template
108-
<Route method="POST">/guilds/templates/[\{template.code\}](/docs/resources/guild-template#guild-template-object)</Route>
109-
110-
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.
111-
112-
:::warn
113-
This endpoint can be used only by bots in less than 10 guilds.
114-
:::
115-
116-
###### JSON Params
117-
118-
| Field | Type | Description |
119-
|-------|------------------------------------------|-----------------------------------------|
120-
| name | string | name of the guild (2-100 characters) |
121-
| icon? | [image data](/docs/reference#image-data) | base64 128x128 image for the guild icon |
122-
123107
## Get Guild Templates
124108
<Route method="GET">/guilds/[\{guild.id\}](/docs/resources/guild#guild-object)/templates</Route>
125109

docs/resources/guild.mdx

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -699,77 +699,6 @@ We are making significant changes to the Membership Screening API specifically r
699699
}
700700
```
701701

702-
## Create Guild
703-
<Route method="POST">/guilds</Route>
704-
705-
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.
706-
707-
:::warn
708-
This endpoint can be used only by bots in less than 10 guilds.
709-
:::
710-
711-
###### JSON Params
712-
713-
| Field | Type | Description |
714-
|--------------------------------|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
715-
| name | string | name of the guild (2-100 characters) |
716-
| region? | ?string | [voice region](/docs/resources/voice#voice-region-object) id (deprecated) |
717-
| icon? | [image data](/docs/reference#image-data) | base64 128x128 image for the guild icon |
718-
| verification_level? | integer | [verification level](/docs/resources/guild#guild-object-verification-level) |
719-
| default_message_notifications? | integer | default [message notification level](/docs/resources/guild#guild-object-default-message-notification-level) |
720-
| explicit_content_filter? | integer | [explicit content filter level](/docs/resources/guild#guild-object-explicit-content-filter-level) |
721-
| roles? | array of [role](/docs/topics/permissions#role-object) objects | new guild roles |
722-
| channels? | array of partial [channel](/docs/resources/channel#channel-object) objects | new guild's channels |
723-
| afk_channel_id? | snowflake | id for afk channel |
724-
| afk_timeout? | integer | afk timeout in seconds, can be set to: 60, 300, 900, 1800, 3600 |
725-
| system_channel_id? | snowflake | the id of the channel where guild notices such as welcome messages and boost events are posted |
726-
| system_channel_flags? | integer | [system channel flags](/docs/resources/guild#guild-object-system-channel-flags) |
727-
728-
:::warn
729-
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.
730-
:::
731-
732-
:::info
733-
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.
734-
:::
735-
736-
:::warn
737-
When using the `channels` parameter, the `position` field is ignored, and none of the default channels are created.
738-
:::
739-
740-
:::info
741-
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.
742-
:::
743-
744-
:::warn
745-
The `region` field is deprecated and is replaced by [channel.rtc_region](/docs/resources/channel#channel-object-channel-structure).
746-
:::
747-
748-
###### Example Partial Channel Object
749-
750-
```json
751-
{
752-
"name": "naming-things-is-hard",
753-
"type": 0
754-
}
755-
```
756-
757-
###### Example Category Channel
758-
759-
```json
760-
{
761-
"name": "my-category",
762-
"type": 4,
763-
"id": 1
764-
}
765-
{
766-
"name": "naming-things-is-hard",
767-
"type": 0,
768-
"id": 2,
769-
"parent_id": 1
770-
}
771-
```
772-
773702
## Get Guild
774703
<Route method="GET">/guilds/[\{guild.id\}](/docs/resources/guild#guild-object)</Route>
775704

0 commit comments

Comments
 (0)