discord.js 15.0.0-dev.1733703214-af4018c25 → 15.0.0-dev.1733745923-310563ba0

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.1733703214-af4018c25",
4
+ "version": "15.0.0-dev.1733745923-310563ba0",
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,9 +61,9 @@
61
61
  "tslib": "^2.8.1",
62
62
  "undici": "6.21.0",
63
63
  "@discordjs/formatters": "^0.5.0",
64
- "@discordjs/rest": "^2.4.0",
65
64
  "@discordjs/util": "^1.1.1",
66
- "@discordjs/ws": "^2.0.0"
65
+ "@discordjs/ws": "^2.0.0",
66
+ "@discordjs/rest": "^2.4.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@favware/cliff-jumper": "^4.1.0",
@@ -316,7 +316,7 @@ class GuildChannel extends BaseChannel {
316
316
  /**
317
317
  * Options used to set the parent of a channel.
318
318
  * @typedef {Object} SetParentOptions
319
- * @property {boolean} [lockPermissions=true] Whether to lock the permissions to what the parent's permissions are
319
+ * @property {boolean} [lockPermissions=false] Whether to lock the permissions to what the parent's permissions are
320
320
  * @property {string} [reason] The reason for modifying the parent of the channel
321
321
  */
322
322
 
@@ -327,11 +327,16 @@ class GuildChannel extends BaseChannel {
327
327
  * @returns {Promise<GuildChannel>}
328
328
  * @example
329
329
  * // Add a parent to a channel
330
- * message.channel.setParent('355908108431917066', { lockPermissions: false })
331
- * .then(channel => console.log(`New parent of ${message.channel.name}: ${channel.name}`))
330
+ * message.channel.setParent('355908108431917066')
331
+ * .then(channel => console.log(`New parent of ${channel.name}: ${channel.parent.name}`))
332
+ * .catch(console.error);
333
+ * @example
334
+ * // Move a channel and sync its permissions with the parent
335
+ * message.channel.setParent('355908108431917066', { lockPermissions: true })
336
+ * .then(channel => console.log(`Moved ${message.channel.name} to ${channel.parent.name}`))
332
337
  * .catch(console.error);
333
338
  */
334
- setParent(channel, { lockPermissions = true, reason } = {}) {
339
+ setParent(channel, { lockPermissions = false, reason } = {}) {
335
340
  return this.edit({
336
341
  parent: channel ?? null,
337
342
  lockPermissions,
@@ -6214,6 +6214,7 @@ export interface InteractionDeferUpdateOptions {
6214
6214
 
6215
6215
  export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
6216
6216
  tts?: boolean;
6217
+ withResponse?: boolean;
6217
6218
  flags?: BitFieldResolvable<
6218
6219
  Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
6219
6220
  MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
@@ -6214,6 +6214,7 @@ export interface InteractionDeferUpdateOptions {
6214
6214
 
6215
6215
  export interface InteractionReplyOptions extends BaseMessageOptionsWithPoll {
6216
6216
  tts?: boolean;
6217
+ withResponse?: boolean;
6217
6218
  flags?: BitFieldResolvable<
6218
6219
  Extract<MessageFlagsString, 'Ephemeral' | 'SuppressEmbeds' | 'SuppressNotifications'>,
6219
6220
  MessageFlags.Ephemeral | MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications
@@ -2041,6 +2041,7 @@ client.on('interactionCreate', async interaction => {
2041
2041
  if (interaction.isRepliable()) {
2042
2042
  expectAssignable<RepliableInteraction>(interaction);
2043
2043
  interaction.reply('test');
2044
+ interaction.reply({ withResponse: false });
2044
2045
  }
2045
2046
 
2046
2047
  if (