7 Commits
Author SHA1 Message Date
TTtie dc3129e2a4 refactor: switch to ESLint flat config, add JSDoc linting (#147)
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.
2024-08-02 18:56:44 +00:00
TTtie 528695abf6 docs: convert inline @prop to actual class members (#113)
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
2023-09-28 20:43:18 +00:00
TTtie f417daf94b refactor(Channel): make the client private (#58)
Makes Channel#client a private property. Brace for impact, this might introduce regressions.
2023-09-23 21:06:04 +00:00
TTtie 1dab74a363 feat: support GUILD_MEDIA channels (#96)
* feat: support GUILD_MEDIA channels

Ref: https://github.com/discord/discord-api-docs/commit/107de2df26c3030e2b3f06c547a56ac96934f4e7

* correct the word order

* add MediaChannel to package exports

* consistency - extract ForumChannel type into a type alias

* add missing intellisense hints to createChannel
2023-08-08 18:36:27 +00:00
TTtie aed90232e4 refactor: don't call update() multiple times in the prototype chain (#91)
The update() method is already called in the base class - according to JS class semantics, when calling a constructor via `super`, `this` still points to the object at the top of the prototype chain, resulting in the update() method being called twice or more down the prototype chain as the super-classes initialize.
2023-07-27 22:56:27 +00:00
TTtie b3fda218d0 feat: forum support (#1)
I believe this should be enough to ensure full forum support. Although, some things might've been missed out by accident.
2022-11-28 06:25:54 +00:00
3fe4d216ca Support Discord API v9 (#1279)
Co-authored-by: Donovan Daniels <hewwo@yiff.rocks>
Co-authored-by: iiFDCT <35053522+iiFDCT@users.noreply.github.com>
Co-authored-by: Lava <service.github@lava.moe>
Co-authored-by: abalabahaha <hi@abal.moe>
2021-11-13 23:06:57 -08:00