chore: polls

backport #10185

**Note:** The `MessagePoll` class implemented here is completely different from the `Poll` class in Discord.js v14. Be sure to check the documentation before using it.
This commit is contained in:
Elysia
2024-09-17 20:18:30 +07:00
parent 8dddbe1352
commit aed4d149b3
2 changed files with 2 additions and 2 deletions

View File

@@ -252,7 +252,7 @@ class Message extends Base {
} }
/** /**
* A poll! * The poll that was sent with the message
* @type {?MessagePoll} * @type {?MessagePoll}
*/ */
if ('poll' in data) { if ('poll' in data) {

2
typings/index.d.ts vendored
View File

@@ -54,7 +54,7 @@ import {
LocaleString, LocaleString,
APIGuildMember, APIGuildMember,
APIChannel, APIChannel,
TeamMemberRole TeamMemberRole,
} from 'discord-api-types/v9'; } from 'discord-api-types/v9';
import { ChildProcess } from 'node:child_process'; import { ChildProcess } from 'node:child_process';
import { EventEmitter } from 'node:events'; import { EventEmitter } from 'node:events';