discord.js 15.0.0-dev.1756771304-bb67f3c15 → 15.0.0-dev.1757030507-8ca279e0c
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.1757030507-8ca279e0c",
|
|
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/
|
|
65
|
-
"@discordjs/
|
|
66
|
-
"@discordjs/
|
|
67
|
-
"@discordjs/util": "^2.0.0-dev.
|
|
68
|
-
"@discordjs/
|
|
69
|
-
"@discordjs/
|
|
64
|
+
"@discordjs/collection": "^3.0.0-dev.1757030507-8ca279e0c",
|
|
65
|
+
"@discordjs/builders": "^2.0.0-dev.1757030507-8ca279e0c",
|
|
66
|
+
"@discordjs/rest": "^3.0.0-dev.1757030507-8ca279e0c",
|
|
67
|
+
"@discordjs/util": "^2.0.0-dev.1757030507-8ca279e0c",
|
|
68
|
+
"@discordjs/formatters": "^1.0.0-dev.1757030507-8ca279e0c",
|
|
69
|
+
"@discordjs/ws": "^3.0.0-dev.1757030507-8ca279e0c"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"tsd": "^0.33.0",
|
|
83
83
|
"turbo": "^2.5.6",
|
|
84
84
|
"typescript": "~5.9.2",
|
|
85
|
-
"@discordjs/api-extractor": "^7.52.7",
|
|
86
85
|
"@discordjs/docgen": "^0.12.1",
|
|
87
|
-
"@discordjs/scripts": "^0.1.0"
|
|
86
|
+
"@discordjs/scripts": "^0.1.0",
|
|
87
|
+
"@discordjs/api-extractor": "^7.52.7"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=22.12.0"
|
|
@@ -30,6 +30,14 @@ class PollAnswerVoterManager extends CachedManager {
|
|
|
30
30
|
* @name PollAnswerVoterManager#cache
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Options used for fetching voters of a poll answer.
|
|
35
|
+
*
|
|
36
|
+
* @typedef {Object} BaseFetchPollAnswerVotersOptions
|
|
37
|
+
* @property {number} [limit] The maximum number of voters to fetch
|
|
38
|
+
* @property {Snowflake} [after] The user id to fetch voters after
|
|
39
|
+
*/
|
|
40
|
+
|
|
33
41
|
/**
|
|
34
42
|
* Fetches the users that voted on this poll answer. Resolves with a collection of users, mapped by their ids.
|
|
35
43
|
*
|
|
@@ -93,25 +93,6 @@ class PollAnswer extends Base {
|
|
|
93
93
|
get partial() {
|
|
94
94
|
return this.poll.partial || (this.text === null && this.emoji === null);
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Options used for fetching voters of a poll answer.
|
|
99
|
-
*
|
|
100
|
-
* @typedef {Object} BaseFetchPollAnswerVotersOptions
|
|
101
|
-
* @property {number} [limit] The maximum number of voters to fetch
|
|
102
|
-
* @property {Snowflake} [after] The user id to fetch voters after
|
|
103
|
-
*/
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Fetches the users that voted for this answer.
|
|
107
|
-
*
|
|
108
|
-
* @param {BaseFetchPollAnswerVotersOptions} [options={}] The options for fetching voters
|
|
109
|
-
* @returns {Promise<Collection<Snowflake, User>>}
|
|
110
|
-
* @deprecated Use {@link PollAnswerVoterManager#fetch} instead
|
|
111
|
-
*/
|
|
112
|
-
async fetchVoters({ after, limit } = {}) {
|
|
113
|
-
return this.voters.fetch({ after, limit });
|
|
114
|
-
}
|
|
115
96
|
}
|
|
116
97
|
|
|
117
98
|
exports.PollAnswer = PollAnswer;
|
package/typings/index.d.mts
CHANGED
|
@@ -2753,6 +2753,11 @@ export interface PollQuestionMedia {
|
|
|
2753
2753
|
text: string | null;
|
|
2754
2754
|
}
|
|
2755
2755
|
|
|
2756
|
+
export interface BaseFetchPollAnswerVotersOptions {
|
|
2757
|
+
after?: Snowflake;
|
|
2758
|
+
limit?: number;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2756
2761
|
export class PollAnswerVoterManager extends CachedManager<Snowflake, User, UserResolvable> {
|
|
2757
2762
|
private constructor(answer: PollAnswer);
|
|
2758
2763
|
public answer: PollAnswer;
|
|
@@ -2777,11 +2782,6 @@ export class Poll extends Base {
|
|
|
2777
2782
|
public end(): Promise<Message>;
|
|
2778
2783
|
}
|
|
2779
2784
|
|
|
2780
|
-
export interface BaseFetchPollAnswerVotersOptions {
|
|
2781
|
-
after?: Snowflake;
|
|
2782
|
-
limit?: number;
|
|
2783
|
-
}
|
|
2784
|
-
|
|
2785
2785
|
export class PollAnswer extends Base {
|
|
2786
2786
|
private constructor(client: Client<true>, data: APIPollAnswer & { count?: number }, poll: Poll);
|
|
2787
2787
|
private readonly _emoji: APIPartialEmoji | null;
|
|
@@ -2792,10 +2792,6 @@ export class PollAnswer extends Base {
|
|
|
2792
2792
|
public voters: PollAnswerVoterManager;
|
|
2793
2793
|
public get emoji(): Emoji | GuildEmoji | null;
|
|
2794
2794
|
public get partial(): false;
|
|
2795
|
-
/**
|
|
2796
|
-
* @deprecated Use {@link PollAnswerVoterManager.fetch} instead
|
|
2797
|
-
*/
|
|
2798
|
-
public fetchVoters(options?: BaseFetchPollAnswerVotersOptions): Promise<Collection<Snowflake, User>>;
|
|
2799
2795
|
}
|
|
2800
2796
|
|
|
2801
2797
|
export interface ReactionCollectorEventTypes extends CollectorEventTypes<Snowflake | string, MessageReaction, [User]> {
|
package/typings/index.d.ts
CHANGED
|
@@ -2753,6 +2753,11 @@ export interface PollQuestionMedia {
|
|
|
2753
2753
|
text: string | null;
|
|
2754
2754
|
}
|
|
2755
2755
|
|
|
2756
|
+
export interface BaseFetchPollAnswerVotersOptions {
|
|
2757
|
+
after?: Snowflake;
|
|
2758
|
+
limit?: number;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2756
2761
|
export class PollAnswerVoterManager extends CachedManager<Snowflake, User, UserResolvable> {
|
|
2757
2762
|
private constructor(answer: PollAnswer);
|
|
2758
2763
|
public answer: PollAnswer;
|
|
@@ -2777,11 +2782,6 @@ export class Poll extends Base {
|
|
|
2777
2782
|
public end(): Promise<Message>;
|
|
2778
2783
|
}
|
|
2779
2784
|
|
|
2780
|
-
export interface BaseFetchPollAnswerVotersOptions {
|
|
2781
|
-
after?: Snowflake;
|
|
2782
|
-
limit?: number;
|
|
2783
|
-
}
|
|
2784
|
-
|
|
2785
2785
|
export class PollAnswer extends Base {
|
|
2786
2786
|
private constructor(client: Client<true>, data: APIPollAnswer & { count?: number }, poll: Poll);
|
|
2787
2787
|
private readonly _emoji: APIPartialEmoji | null;
|
|
@@ -2792,10 +2792,6 @@ export class PollAnswer extends Base {
|
|
|
2792
2792
|
public voters: PollAnswerVoterManager;
|
|
2793
2793
|
public get emoji(): Emoji | GuildEmoji | null;
|
|
2794
2794
|
public get partial(): false;
|
|
2795
|
-
/**
|
|
2796
|
-
* @deprecated Use {@link PollAnswerVoterManager.fetch} instead
|
|
2797
|
-
*/
|
|
2798
|
-
public fetchVoters(options?: BaseFetchPollAnswerVotersOptions): Promise<Collection<Snowflake, User>>;
|
|
2799
2795
|
}
|
|
2800
2796
|
|
|
2801
2797
|
export interface ReactionCollectorEventTypes extends CollectorEventTypes<Snowflake | string, MessageReaction, [User]> {
|