Skip to content

Instantly share code, notes, and snippets.

View LautyDev's full-sized avatar

LautyDev LautyDev

View GitHub Profile
// Poll example Discord.js V14.15.1
import { PollData, PollLayoutType } from 'discord.js';
const poll: PollData = {
question: {
text: 'PHP is good?',
},
answers: [
{
@LautyDev
LautyDev / code.ts
Created April 14, 2024 19:26
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 &&