We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230e746 commit 7f29356Copy full SHA for 7f29356
packages/discord.js/src/structures/Poll.js
@@ -179,7 +179,7 @@ class Poll extends Base {
179
* @returns {Promise<Message>}
180
*/
181
async end() {
182
- if (Date.now() > this.expiresTimestamp) {
+ if (this.expiresTimestamp !== null && Date.now() > this.expiresTimestamp) {
183
throw new DiscordjsError(ErrorCodes.PollAlreadyExpired);
184
}
185
0 commit comments