discord.js 15.0.0-dev.1737072718-21096884b → 15.0.0-dev.1737201865-c6e16c367
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 +4 -4
- package/typings/index.d.mts +1 -0
- package/typings/index.d.ts +1 -0
- package/typings/index.test-d.ts +11 -0
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.1737201865-c6e16c367",
|
|
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",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"tslib": "^2.8.1",
|
|
61
61
|
"undici": "6.21.0",
|
|
62
62
|
"@discordjs/collection": "^2.1.1",
|
|
63
|
-
"@discordjs/rest": "^2.4.0",
|
|
64
63
|
"@discordjs/formatters": "^0.5.0",
|
|
64
|
+
"@discordjs/rest": "^2.4.0",
|
|
65
65
|
"@discordjs/util": "^1.1.1",
|
|
66
66
|
"@discordjs/ws": "^2.0.0"
|
|
67
67
|
},
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"turbo": "^2.3.3",
|
|
82
82
|
"typescript": "~5.5.4",
|
|
83
83
|
"@discordjs/api-extractor": "^7.38.1",
|
|
84
|
-
"@discordjs/
|
|
85
|
-
"@discordjs/
|
|
84
|
+
"@discordjs/docgen": "^0.12.1",
|
|
85
|
+
"@discordjs/scripts": "^0.1.0"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=20"
|
package/typings/index.d.mts
CHANGED
|
@@ -2653,6 +2653,7 @@ export interface ThreadOnlyChannel
|
|
|
2653
2653
|
| 'awaitMessages'
|
|
2654
2654
|
| 'createMessageComponentCollector'
|
|
2655
2655
|
| 'awaitMessageComponent'
|
|
2656
|
+
| 'messages'
|
|
2656
2657
|
> {}
|
|
2657
2658
|
export abstract class ThreadOnlyChannel extends GuildChannel {
|
|
2658
2659
|
public type: ChannelType.GuildForum | ChannelType.GuildMedia;
|
package/typings/index.d.ts
CHANGED
|
@@ -2653,6 +2653,7 @@ export interface ThreadOnlyChannel
|
|
|
2653
2653
|
| 'awaitMessages'
|
|
2654
2654
|
| 'createMessageComponentCollector'
|
|
2655
2655
|
| 'awaitMessageComponent'
|
|
2656
|
+
| 'messages'
|
|
2656
2657
|
> {}
|
|
2657
2658
|
export abstract class ThreadOnlyChannel extends GuildChannel {
|
|
2658
2659
|
public type: ChannelType.GuildForum | ChannelType.GuildMedia;
|
package/typings/index.test-d.ts
CHANGED
|
@@ -213,6 +213,7 @@ import {
|
|
|
213
213
|
PollData,
|
|
214
214
|
InteractionCallbackResponse,
|
|
215
215
|
GuildScheduledEventRecurrenceRuleOptions,
|
|
216
|
+
ThreadOnlyChannel,
|
|
216
217
|
} from '.';
|
|
217
218
|
import { expectAssignable, expectNotAssignable, expectNotType, expectType } from 'tsd';
|
|
218
219
|
import type { ContextMenuCommandBuilder, SlashCommandBuilder } from '@discordjs/builders';
|
|
@@ -2453,6 +2454,16 @@ declare const partialGroupDMChannel: PartialGroupDMChannel;
|
|
|
2453
2454
|
declare const categoryChannel: CategoryChannel;
|
|
2454
2455
|
declare const stageChannel: StageChannel;
|
|
2455
2456
|
declare const forumChannel: ForumChannel;
|
|
2457
|
+
declare const mediaChannel: MediaChannel;
|
|
2458
|
+
declare const threadOnlyChannel: ThreadOnlyChannel;
|
|
2459
|
+
|
|
2460
|
+
// Threads have messages.
|
|
2461
|
+
expectType<GuildMessageManager>(threadChannel.messages);
|
|
2462
|
+
|
|
2463
|
+
// Thread-only channels have threads—not messages.
|
|
2464
|
+
notPropertyOf(threadOnlyChannel, 'messages');
|
|
2465
|
+
notPropertyOf(forumChannel, 'messages');
|
|
2466
|
+
notPropertyOf(mediaChannel, 'messages');
|
|
2456
2467
|
|
|
2457
2468
|
await forumChannel.edit({
|
|
2458
2469
|
availableTags: [...forumChannel.availableTags, { name: 'tag' }],
|