mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix!: Remove guild creation (#11012)
BREAKING CHANGE: Guild creation is no longer possible.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user