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:
@@ -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
2
typings/index.d.ts
vendored
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user