Skip to content

Instantly share code, notes, and snippets.

@LautyDev
Created April 14, 2024 19:26
Show Gist options
  • Save LautyDev/16efc89882a8bd09acfa75095d7e9930 to your computer and use it in GitHub Desktop.
Save LautyDev/16efc89882a8bd09acfa75095d7e9930 to your computer and use it in GitHub Desktop.
How to know if a message is a poll (Discord)
message.activity === null &&
message.cleanContent === '' &&
message.roleSubscriptionData === null &&
message.components.length === 0 &&
message.system === false &&
message.webhookId === null &&
message.type === 0 &&
message.attachments.size === 0 &&
message.embeds.length === 0 &&
message.applicationId === null &&
message.resolved === null &&
message.position === 0 &&
message.stickers.size === 0 &&
message.content === ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment