discord.js 15.0.0-dev.1751371557-02fbb706a → 15.0.0-dev.1751544353-e6d59eaf9
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.
|
|
4
|
+
"version": "15.0.0-dev.1751544353-e6d59eaf9",
|
|
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",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"undici": "7.8.0",
|
|
64
64
|
"@discordjs/builders": "^1.11.1",
|
|
65
65
|
"@discordjs/formatters": "^0.6.1",
|
|
66
|
+
"@discordjs/collection": "^2.1.1",
|
|
66
67
|
"@discordjs/rest": "^2.5.0",
|
|
67
68
|
"@discordjs/util": "^1.1.1",
|
|
68
|
-
"@discordjs/collection": "^2.1.1",
|
|
69
69
|
"@discordjs/ws": "^2.0.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"turbo": "^2.5.2",
|
|
85
85
|
"typescript": "~5.8.3",
|
|
86
86
|
"@discordjs/api-extractor": "^7.52.7",
|
|
87
|
-
"@discordjs/
|
|
88
|
-
"@discordjs/
|
|
87
|
+
"@discordjs/scripts": "^0.1.0",
|
|
88
|
+
"@discordjs/docgen": "^0.12.1"
|
|
89
89
|
},
|
|
90
90
|
"engines": {
|
|
91
91
|
"node": ">=22.12.0"
|
|
@@ -579,7 +579,7 @@ class ApplicationCommand extends Base {
|
|
|
579
579
|
* {@link ApplicationCommandOptionType.Number} option
|
|
580
580
|
* @property {ApplicationCommandOptionChoice[]} [choices] The choices of the option for the user to pick from
|
|
581
581
|
* @property {ApplicationCommandOption[]} [options] Additional options if this option is a subcommand (group)
|
|
582
|
-
* @property {
|
|
582
|
+
* @property {ApplicationCommandOptionAllowedChannelType[]} [channelTypes] When the option type is channel,
|
|
583
583
|
* the allowed types of channels that can be selected
|
|
584
584
|
* @property {number} [minValue] The minimum value for an {@link ApplicationCommandOptionType.Integer} or
|
|
585
585
|
* {@link ApplicationCommandOptionType.Number} option
|
|
@@ -653,6 +653,6 @@ class ApplicationCommand extends Base {
|
|
|
653
653
|
exports.ApplicationCommand = ApplicationCommand;
|
|
654
654
|
|
|
655
655
|
/**
|
|
656
|
-
* @external
|
|
657
|
-
* @see {@link https://discord.js.org/docs/packages/builders/stable/
|
|
656
|
+
* @external ApplicationCommandOptionAllowedChannelType
|
|
657
|
+
* @see {@link https://discord.js.org/docs/packages/builders/stable/ApplicationCommandOptionAllowedChannelType:TypeAlias}
|
|
658
658
|
*/
|
package/typings/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { Buffer } from 'node:buffer';
|
|
|
2
2
|
import { ChildProcess } from 'node:child_process';
|
|
3
3
|
import { Stream } from 'node:stream';
|
|
4
4
|
import { MessagePort, Worker } from 'node:worker_threads';
|
|
5
|
-
import {
|
|
5
|
+
import { ApplicationCommandOptionAllowedChannelType, MessageActionRowComponentBuilder } from '@discordjs/builders';
|
|
6
6
|
import { Collection, ReadonlyCollection } from '@discordjs/collection';
|
|
7
7
|
import { BaseImageURLOptions, ImageURLOptions, RawFile, REST, RESTOptions, EmojiURLOptions } from '@discordjs/rest';
|
|
8
8
|
import { Awaitable, JSONEncodable } from '@discordjs/util';
|
|
@@ -4823,13 +4823,13 @@ export type ApplicationCommandData =
|
|
|
4823
4823
|
| UserApplicationCommandData;
|
|
4824
4824
|
|
|
4825
4825
|
export interface ApplicationCommandChannelOptionData extends BaseApplicationCommandOptionsData {
|
|
4826
|
-
channelTypes?: readonly
|
|
4827
|
-
channel_types?: readonly
|
|
4826
|
+
channelTypes?: readonly ApplicationCommandOptionAllowedChannelType[];
|
|
4827
|
+
channel_types?: readonly ApplicationCommandOptionAllowedChannelType[];
|
|
4828
4828
|
type: CommandOptionChannelResolvableType;
|
|
4829
4829
|
}
|
|
4830
4830
|
|
|
4831
4831
|
export interface ApplicationCommandChannelOption extends BaseApplicationCommandOptionsData {
|
|
4832
|
-
channelTypes?: readonly
|
|
4832
|
+
channelTypes?: readonly ApplicationCommandOptionAllowedChannelType[];
|
|
4833
4833
|
type: ApplicationCommandOptionType.Channel;
|
|
4834
4834
|
}
|
|
4835
4835
|
|
package/typings/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Buffer } from 'node:buffer';
|
|
|
2
2
|
import { ChildProcess } from 'node:child_process';
|
|
3
3
|
import { Stream } from 'node:stream';
|
|
4
4
|
import { MessagePort, Worker } from 'node:worker_threads';
|
|
5
|
-
import {
|
|
5
|
+
import { ApplicationCommandOptionAllowedChannelType, MessageActionRowComponentBuilder } from '@discordjs/builders';
|
|
6
6
|
import { Collection, ReadonlyCollection } from '@discordjs/collection';
|
|
7
7
|
import { BaseImageURLOptions, ImageURLOptions, RawFile, REST, RESTOptions, EmojiURLOptions } from '@discordjs/rest';
|
|
8
8
|
import { Awaitable, JSONEncodable } from '@discordjs/util';
|
|
@@ -4823,13 +4823,13 @@ export type ApplicationCommandData =
|
|
|
4823
4823
|
| UserApplicationCommandData;
|
|
4824
4824
|
|
|
4825
4825
|
export interface ApplicationCommandChannelOptionData extends BaseApplicationCommandOptionsData {
|
|
4826
|
-
channelTypes?: readonly
|
|
4827
|
-
channel_types?: readonly
|
|
4826
|
+
channelTypes?: readonly ApplicationCommandOptionAllowedChannelType[];
|
|
4827
|
+
channel_types?: readonly ApplicationCommandOptionAllowedChannelType[];
|
|
4828
4828
|
type: CommandOptionChannelResolvableType;
|
|
4829
4829
|
}
|
|
4830
4830
|
|
|
4831
4831
|
export interface ApplicationCommandChannelOption extends BaseApplicationCommandOptionsData {
|
|
4832
|
-
channelTypes?: readonly
|
|
4832
|
+
channelTypes?: readonly ApplicationCommandOptionAllowedChannelType[];
|
|
4833
4833
|
type: ApplicationCommandOptionType.Channel;
|
|
4834
4834
|
}
|
|
4835
4835
|
|