diff --git a/packages/discord.js/src/structures/Poll.js b/packages/discord.js/src/structures/Poll.js index de44fff06..04944eb55 100644 --- a/packages/discord.js/src/structures/Poll.js +++ b/packages/discord.js/src/structures/Poll.js @@ -164,7 +164,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); }