@discordjs/core 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -870,6 +870,7 @@ var GuildsAPI = class {
870
870
  * @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
871
871
  * @param body - The guild to create
872
872
  * @param options - The options for creating the guild
873
+ * @deprecated API related to guild ownership may no longer be used.
873
874
  */
874
875
  async create(body, { signal } = {}) {
875
876
  return this.rest.post(Routes5.guilds(), { body, signal });
@@ -895,6 +896,7 @@ var GuildsAPI = class {
895
896
  * @see {@link https://discord.com/developers/docs/resources/guild#delete-guild}
896
897
  * @param guildId - The id of the guild to delete
897
898
  * @param options - The options for deleting this guild
899
+ * @deprecated API related to guild ownership may no longer be used.
898
900
  */
899
901
  async delete(guildId, { signal } = {}) {
900
902
  await this.rest.delete(Routes5.guild(guildId), { signal });
@@ -1120,6 +1122,7 @@ var GuildsAPI = class {
1120
1122
  * @param guildId - The id of the guild to edit the MFA level for
1121
1123
  * @param level - The new MFA level
1122
1124
  * @param options - The options for editing the MFA level
1125
+ * @deprecated API related to guild ownership may no longer be used.
1123
1126
  */
1124
1127
  async editMFALevel(guildId, level, { reason, signal } = {}) {
1125
1128
  return this.rest.post(Routes5.guildMFA(guildId), {
@@ -1732,12 +1735,12 @@ var GuildsAPI = class {
1732
1735
  * Creates a new template
1733
1736
  *
1734
1737
  * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
1735
- * @param templateCode - The code of the template
1738
+ * @param guildId - The id of the guild
1736
1739
  * @param body - The data for creating the template
1737
1740
  * @param options - The options for creating the template
1738
1741
  */
1739
- async createTemplate(templateCode, body, { signal } = {}) {
1740
- return this.rest.post(Routes5.template(templateCode), { body, signal });
1742
+ async createTemplate(guildId, body, { signal } = {}) {
1743
+ return this.rest.post(Routes5.guildTemplates(guildId), { body, signal });
1741
1744
  }
1742
1745
  /**
1743
1746
  * Fetches webhooks for a guild
@@ -2877,7 +2880,7 @@ __name(withFiles, "withFiles");
2877
2880
 
2878
2881
  // src/http-only/index.ts
2879
2882
  export * from "discord-api-types/v10";
2880
- var version = "2.2.1";
2883
+ var version = "2.2.2";
2881
2884
  export {
2882
2885
  API,
2883
2886
  ApplicationCommandsAPI,