feat: polls

Added support for polls similar to discord.js v14 (including class, event).
Breaking change: Do not use and remove MessagePoll.
This commit is contained in:
Elysia
2024-10-27 10:45:29 +07:00
parent 4c39f68353
commit 966f25bb8d
21 changed files with 8898 additions and 395 deletions

View File

@@ -1768,10 +1768,10 @@ exports.ForumLayoutTypes = createEnum(['NOT_SET', 'LIST_VIEW', 'GALLERY_VIEW']);
* Different layouts for {@link MessagePoll} will come in the future. For now though, this value will always be `DEFAULT`.
* * DEFAULT
* * IMAGE_ONLY_ANSWERS
* @typedef {string} MessagePollLayoutType
* @typedef {string} PollLayoutType
* @see {@link https://docs.discord.sex/resources/message#poll-layout-type}
*/
exports.MessagePollLayoutTypes = createEnum([null, 'DEFAULT', 'IMAGE_ONLY_ANSWERS']);
exports.PollLayoutTypes = createEnum([null, 'DEFAULT', 'IMAGE_ONLY_ANSWERS']);
/**
* Relationship Enums: