This commit switches Dysnomia over to ESLint flat config for
futureproofing and better maintainability. For the most part, the
codebase will pass the test suite, apart from a few exceptions
introduced by the stylistic plugin which I believe are reasonable to
include.
Additionally, JSDoc linting was added to maintain proper
alignment of various features.
For the time being, poll results are only cached when the poll tally is finalized. If there's a need for caching interim results, please, send a PR.
* feat: support polls
Ref: https://github.com/discord/discord-api-docs/commit/df7d3652
* feat(Shard): add basic poll WS event processing
* types: add basic poll typings
* lint: sort methods correctly
* fix!: PollTypes -> PollLayoutTypes
* types: add typings for poll objects
* lint
* fix(types): poll create object doesn't have an answer_id in answers
* fix(types): remove invalid `after` option from `GetPollAnswerVotersOptions`
* fix(types): wait, this is actually here twice, for whatever reason
* fix(types): fix-up merge
* fix(types/docs): answerID is not a string
* fix(docs/types): also use Number for answerID in getPollAnswerVoters
* refactor!: put answerID before user in poll vote events
this should introduce proper jsdoc inheritance and make it slightly more convertible
also unifies the cases when the docs would be written directly on the class field
* stage 0.5: move all props (almost) everywhere to their own blocks
* convert a couple more structures
* remove stray Guild import
* convert SharedStream, VoiceConnection
* convert Message structure
* refactor(interactions): clean up properties
Removes segments of code from derived interaction classes that execute the same code as the base Interaction class, effectively making the fields being set twice (once in the Interaction class and then in the derived class
* lint: remove Permission imports