discord.js 15.0.0-dev.1759838503-af923fee8 → 15.0.0-dev.1759968109-7f2935695
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 +7 -7
- package/src/structures/Poll.js +1 -1
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.1759968109-7f2935695",
|
|
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.16.0",
|
|
64
|
-
"@discordjs/builders": "^2.0.0-dev.
|
|
65
|
-
"@discordjs/
|
|
66
|
-
"@discordjs/
|
|
67
|
-
"@discordjs/
|
|
68
|
-
"@discordjs/
|
|
69
|
-
"@discordjs/ws": "^3.0.0-dev.
|
|
64
|
+
"@discordjs/builders": "^2.0.0-dev.1759968109-7f2935695",
|
|
65
|
+
"@discordjs/formatters": "^1.0.0-dev.1759968109-7f2935695",
|
|
66
|
+
"@discordjs/collection": "^3.0.0-dev.1759968109-7f2935695",
|
|
67
|
+
"@discordjs/util": "^2.0.0-dev.1759968109-7f2935695",
|
|
68
|
+
"@discordjs/rest": "^3.0.0-dev.1759968109-7f2935695",
|
|
69
|
+
"@discordjs/ws": "^3.0.0-dev.1759968109-7f2935695"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@favware/cliff-jumper": "^4.1.0",
|
package/src/structures/Poll.js
CHANGED
|
@@ -179,7 +179,7 @@ class Poll extends Base {
|
|
|
179
179
|
* @returns {Promise<Message>}
|
|
180
180
|
*/
|
|
181
181
|
async end() {
|
|
182
|
-
if (Date.now() > this.expiresTimestamp) {
|
|
182
|
+
if (this.expiresTimestamp !== null && Date.now() > this.expiresTimestamp) {
|
|
183
183
|
throw new DiscordjsError(ErrorCodes.PollAlreadyExpired);
|
|
184
184
|
}
|
|
185
185
|
|