@discordjs/builders 1.3.0-dev.1662293019-8b3d006.0 → 1.3.0-dev.1662509411-55c3ee2.0

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/dist/index.d.ts CHANGED
@@ -1367,14 +1367,16 @@ declare class SlashCommandBuilder {
1367
1367
  /**
1368
1368
  * Returns the final data that should be sent to Discord.
1369
1369
  *
1370
- * **Note:** Calling this function will validate required properties based on their conditions.
1370
+ * @remarks
1371
+ * This method runs validations on the data before serializing it.
1372
+ * As such, it may throw an error if the data is invalid.
1371
1373
  */
1372
1374
  toJSON(): RESTPostAPIChatInputApplicationCommandsJSONBody;
1373
1375
  /**
1374
1376
  * Sets whether the command is enabled by default when the application is added to a guild.
1375
1377
  *
1376
- * **Note**: If set to `false`, you will have to later `PUT` the permissions for this command.
1377
- *
1378
+ * @remarks
1379
+ * If set to `false`, you will have to later `PUT` the permissions for this command.
1378
1380
  * @param value - Whether or not to enable this command by default
1379
1381
  * @see https://discord.com/developers/docs/interactions/application-commands#permissions
1380
1382
  * @deprecated Use {@link (SlashCommandBuilder:class).setDefaultMemberPermissions} or {@link (SlashCommandBuilder:class).setDMPermission} instead.
@@ -1383,8 +1385,8 @@ declare class SlashCommandBuilder {
1383
1385
  /**
1384
1386
  * Sets the default permissions a member should have in order to run the command.
1385
1387
  *
1386
- * **Note:** You can set this to `'0'` to disable the command by default.
1387
- *
1388
+ * @remarks
1389
+ * You can set this to `'0'` to disable the command by default.
1388
1390
  * @param permissions - The permissions bit field to set
1389
1391
  * @see https://discord.com/developers/docs/interactions/application-commands#permissions
1390
1392
  */
@@ -1504,8 +1506,8 @@ declare class ContextMenuCommandBuilder {
1504
1506
  /**
1505
1507
  * Sets whether the command is enabled by default when the application is added to a guild.
1506
1508
  *
1507
- * **Note**: If set to `false`, you will have to later `PUT` the permissions for this command.
1508
- *
1509
+ * @remarks
1510
+ * If set to `false`, you will have to later `PUT` the permissions for this command.
1509
1511
  * @param value - Whether or not to enable this command by default
1510
1512
  * @see https://discord.com/developers/docs/interactions/application-commands#permissions
1511
1513
  * @deprecated Use {@link ContextMenuCommandBuilder.setDefaultMemberPermissions} or {@link ContextMenuCommandBuilder.setDMPermission} instead.
@@ -1514,8 +1516,8 @@ declare class ContextMenuCommandBuilder {
1514
1516
  /**
1515
1517
  * Sets the default permissions a member should have in order to run the command.
1516
1518
  *
1517
- * **Note:** You can set this to `'0'` to disable the command by default.
1518
- *
1519
+ * @remarks
1520
+ * You can set this to `'0'` to disable the command by default.
1519
1521
  * @param permissions - The permissions bit field to set
1520
1522
  * @see https://discord.com/developers/docs/interactions/application-commands#permissions
1521
1523
  */
@@ -1544,7 +1546,9 @@ declare class ContextMenuCommandBuilder {
1544
1546
  /**
1545
1547
  * Returns the final data that should be sent to Discord.
1546
1548
  *
1547
- * **Note:** Calling this function will validate required properties based on their conditions.
1549
+ * @remarks
1550
+ * This method runs validations on the data before serializing it.
1551
+ * As such, it may throw an error if the data is invalid.
1548
1552
  */
1549
1553
  toJSON(): RESTPostAPIContextMenuApplicationCommandsJSONBody;
1550
1554
  }