diff --git a/packages/discord.js/src/structures/Poll.js b/packages/discord.js/src/structures/Poll.js index 337883201..1f67ed546 100644 --- a/packages/discord.js/src/structures/Poll.js +++ b/packages/discord.js/src/structures/Poll.js @@ -179,7 +179,7 @@ class Poll extends Base { * @returns {Promise} */ async end() { - if (Date.now() > this.expiresTimestamp) { + if (this.expiresTimestamp !== null && Date.now() > this.expiresTimestamp) { throw new DiscordjsError(ErrorCodes.PollAlreadyExpired); }