Skip to content

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Aug 22, 2025

@almeidx almeidx requested a review from a team as a code owner August 22, 2025 13:57
@almeidx almeidx requested review from vladfrangu and removed request for a team August 22, 2025 13:57
@almeidx almeidx requested review from SpaceEEC, iCrawl and kyranet August 22, 2025 13:57
Copy link

vercel bot commented Aug 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
discord-js Ignored Ignored Preview Aug 22, 2025 2:03pm
discord-js-guide Ignored Ignored Preview Aug 22, 2025 2:03pm

* feat(Managers): add PollAnswerVoterManager

* feat(Partials): make Polls partial-safe

* types: add typings

* chore: add tests

* fix: use fetch method in manager instead

* chore: add tests for manager

* feat: add partial support to poll actions

* style: formatting

* fix: change all .users references to .voters

* refactor: add additional logic for partials

* fix: actually add the partials

* fix: fixed issue where event does not emit on first event

* fix: align property type with DAPI documentation

* fix: resolve additional bugs with partials

* typings: update typings to reflect property type change

* fix: tests

* fix: adjust tests

* refactor: combine partials logic into one statement

* docs: mark getter as readonly

* refactor: apply suggestions

Co-authored-by: Almeida <[email protected]>

* refactor(Actions): apply suggestions

* refactor(PollAnswerVoterManager): apply suggestions

* refactor(Message): check for existing poll before creating a poll

* refactor(Polls): apply suggestions

* revert(types): remove unused method from Poll class

* refactor(Actions): consolidate poll creation logic into action class

* refactor(PollAnswerVoterManager): set default for fetch parameter

* refactor(Message): apply suggestion

* fix: remove partial setter

* refactor(Polls): apply suggestions

* types: apply suggestions

* refactor: remove clones

* docs: spacing

* refactor: move setters from constructor to _patch

* types: adjust partials for poll classes

* test: add more tests for polls

* refactor: move updates around, more correct partial types

* fix: handle more cases

* refactor: requested changes

* fix: missing imports

* fix: update imports

* fix: require file extensions

---------

Co-authored-by: Almeida <[email protected]>
Co-authored-by: Qjuh <[email protected]>
@almeidx almeidx force-pushed the feat/v14-polls-overhaul branch from 52b3104 to 690b1f6 Compare August 22, 2025 14:02
JMTK and others added 2 commits August 22, 2025 15:02
* Ensure 	his.answers is set sooner if it's null during a patch

* Move data.answers block up as well to ensure the patched answers are set

* Ensure collection is set in constructor instead

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
@almeidx almeidx changed the title feat: polls overhaul (#10328) feat: polls overhaul Aug 22, 2025
@Jiralite Jiralite added this to the discord.js 14.23.0 milestone Aug 22, 2025
@github-project-automation github-project-automation bot moved this from Todo to Review Approved in discord.js Aug 26, 2025
@Jiralite Jiralite merged commit 4a8aeb6 into v14 Aug 29, 2025
12 checks passed
@Jiralite Jiralite deleted the feat/v14-polls-overhaul branch August 29, 2025 09:58
@github-project-automation github-project-automation bot moved this from Review Approved to Done in discord.js Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants