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 8065b80 commit 1d5b983Copy full SHA for 1d5b983
packages/discord.js/src/structures/Poll.js
@@ -164,7 +164,7 @@ class Poll extends Base {
164
* @returns {Promise<Message>}
165
*/
166
async end() {
167
- if (Date.now() > this.expiresTimestamp) {
+ if (this.expiresTimestamp !== null && Date.now() > this.expiresTimestamp) {
168
throw new DiscordjsError(ErrorCodes.PollAlreadyExpired);
169
}
170
0 commit comments