discord.js 15.0.0-dev.1755864089-55ab46dbc → 15.0.0-dev.1756468896-cde757b7c

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "discord.js",
4
- "version": "15.0.0-dev.1755864089-55ab46dbc",
4
+ "version": "15.0.0-dev.1756468896-cde757b7c",
5
5
  "description": "A powerful library for interacting with the Discord API",
6
6
  "main": "./src/index.js",
7
7
  "types": "./typings/index.d.ts",
@@ -61,12 +61,12 @@
61
61
  "magic-bytes.js": "^1.12.1",
62
62
  "tslib": "^2.8.1",
63
63
  "undici": "7.11.0",
64
- "@discordjs/builders": "^2.0.0-dev.1755864085-55ab46dbc",
65
- "@discordjs/collection": "^3.0.0-dev.1755864086-55ab46dbc",
66
- "@discordjs/formatters": "^1.0.0-dev.1755864090-55ab46dbc",
67
- "@discordjs/rest": "^3.0.0-dev.1755864093-55ab46dbc",
68
- "@discordjs/util": "^2.0.0-dev.1755864095-55ab46dbc",
69
- "@discordjs/ws": "^3.0.0-dev.1755864097-55ab46dbc"
64
+ "@discordjs/builders": "^2.0.0-dev.1756468893-cde757b7c",
65
+ "@discordjs/collection": "^3.0.0-dev.1756468893-cde757b7c",
66
+ "@discordjs/rest": "^3.0.0-dev.1756468900-cde757b7c",
67
+ "@discordjs/formatters": "^1.0.0-dev.1756468897-cde757b7c",
68
+ "@discordjs/ws": "^3.0.0-dev.1756468904-cde757b7c",
69
+ "@discordjs/util": "^2.0.0-dev.1756468902-cde757b7c"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
@@ -895,7 +895,6 @@ class Guild extends AnonymousGuild {
895
895
  * @property {?VoiceChannelResolvable} [afkChannel] The AFK channel of the guild
896
896
  * @property {number} [afkTimeout] The AFK timeout of the guild
897
897
  * @property {?(BufferResolvable|Base64Resolvable)} [icon] The icon of the guild
898
- * @property {UserResolvable} [owner] The owner of the guild
899
898
  * @property {?(BufferResolvable|Base64Resolvable)} [splash] The invite splash image of the guild
900
899
  * @property {?(BufferResolvable|Base64Resolvable)} [discoverySplash] The discovery splash image of the guild
901
900
  * @property {?(BufferResolvable|Base64Resolvable)} [banner] The banner of the guild
@@ -947,7 +946,6 @@ class Guild extends AnonymousGuild {
947
946
  afkChannel,
948
947
  afkTimeout,
949
948
  icon,
950
- owner,
951
949
  splash,
952
950
  discoverySplash,
953
951
  banner,
@@ -969,7 +967,6 @@ class Guild extends AnonymousGuild {
969
967
  afk_channel_id: afkChannel && this.client.channels.resolveId(afkChannel),
970
968
  afk_timeout: afkTimeout,
971
969
  icon: icon && (await resolveImage(icon)),
972
- owner_id: owner && this.client.users.resolveId(owner),
973
970
  splash: splash && (await resolveImage(splash)),
974
971
  discovery_splash: discoverySplash && (await resolveImage(discoverySplash)),
975
972
  banner: banner && (await resolveImage(banner)),
@@ -1277,23 +1274,6 @@ class Guild extends AnonymousGuild {
1277
1274
  return this.edit({ icon, reason });
1278
1275
  }
1279
1276
 
1280
- /**
1281
- * Sets a new owner of the guild.
1282
- *
1283
- * @param {UserResolvable} owner The new owner of the guild
1284
- * @param {string} [reason] Reason for setting the new owner
1285
- * @returns {Promise<Guild>}
1286
- * @example
1287
- * // Edit the guild owner
1288
- * guild.setOwner(guild.members.cache.first())
1289
- * .then(guild => guild.fetchOwner())
1290
- * .then(owner => console.log(`Updated the guild owner to ${owner.displayName}`))
1291
- * .catch(console.error);
1292
- */
1293
- async setOwner(owner, reason) {
1294
- return this.edit({ owner, reason });
1295
- }
1296
-
1297
1277
  /**
1298
1278
  * Sets a new guild invite splash image.
1299
1279
  *
@@ -1477,7 +1477,6 @@ export class Guild extends AnonymousGuild {
1477
1477
  ): Promise<Guild>;
1478
1478
  public setIcon(icon: Base64Resolvable | BufferResolvable | null, reason?: string): Promise<Guild>;
1479
1479
  public setName(name: string, reason?: string): Promise<Guild>;
1480
- public setOwner(owner: UserResolvable, reason?: string): Promise<Guild>;
1481
1480
  public setPreferredLocale(preferredLocale: Locale | null, reason?: string): Promise<Guild>;
1482
1481
  public setPublicUpdatesChannel(publicUpdatesChannel: TextChannelResolvable | null, reason?: string): Promise<Guild>;
1483
1482
  public setRulesChannel(rulesChannel: TextChannelResolvable | null, reason?: string): Promise<Guild>;
@@ -6123,7 +6122,6 @@ export interface GuildEditOptions {
6123
6122
  features?: readonly `${GuildFeature}`[];
6124
6123
  icon?: Base64Resolvable | BufferResolvable | null;
6125
6124
  name?: string;
6126
- owner?: UserResolvable;
6127
6125
  preferredLocale?: Locale | null;
6128
6126
  premiumProgressBarEnabled?: boolean;
6129
6127
  publicUpdatesChannel?: TextChannelResolvable | null;
@@ -1477,7 +1477,6 @@ export class Guild extends AnonymousGuild {
1477
1477
  ): Promise<Guild>;
1478
1478
  public setIcon(icon: Base64Resolvable | BufferResolvable | null, reason?: string): Promise<Guild>;
1479
1479
  public setName(name: string, reason?: string): Promise<Guild>;
1480
- public setOwner(owner: UserResolvable, reason?: string): Promise<Guild>;
1481
1480
  public setPreferredLocale(preferredLocale: Locale | null, reason?: string): Promise<Guild>;
1482
1481
  public setPublicUpdatesChannel(publicUpdatesChannel: TextChannelResolvable | null, reason?: string): Promise<Guild>;
1483
1482
  public setRulesChannel(rulesChannel: TextChannelResolvable | null, reason?: string): Promise<Guild>;
@@ -6123,7 +6122,6 @@ export interface GuildEditOptions {
6123
6122
  features?: readonly `${GuildFeature}`[];
6124
6123
  icon?: Base64Resolvable | BufferResolvable | null;
6125
6124
  name?: string;
6126
- owner?: UserResolvable;
6127
6125
  preferredLocale?: Locale | null;
6128
6126
  premiumProgressBarEnabled?: boolean;
6129
6127
  publicUpdatesChannel?: TextChannelResolvable | null;