fix!: Remove guild creation (#11012)

BREAKING CHANGE: Guild creation is no longer possible.
This commit is contained in:
Jiralite
2025-07-26 12:25:36 +01:00
committed by GitHub
parent 6cdfa3864b
commit 2e9bfba5f4
3 changed files with 0 additions and 208 deletions

View File

@@ -89,9 +89,7 @@ import {
type RESTPostAPIGuildStickerResult,
type RESTPostAPIGuildTemplatesJSONBody,
type RESTPostAPIGuildTemplatesResult,
type RESTPostAPIGuildsJSONBody,
type RESTPostAPIGuildsMFAResult,
type RESTPostAPIGuildsResult,
type RESTPutAPIGuildBanJSONBody,
type RESTPutAPIGuildMemberJSONBody,
type RESTPutAPIGuildMemberResult,
@@ -148,17 +146,6 @@ export class GuildsAPI {
}) as Promise<RESTGetAPIGuildPreviewResult>;
}
/**
* Creates a guild
*
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
* @param body - The guild to create
* @param options - The options for creating the guild
*/
public async create(body: RESTPostAPIGuildsJSONBody, { auth, signal }: Pick<RequestData, 'auth' | 'signal'> = {}) {
return this.rest.post(Routes.guilds(), { auth, body, signal }) as Promise<RESTPostAPIGuildsResult>;
}
/**
* Edits a guild
*