9 Commits
Author SHA1 Message Date
SnazzahandTTtie 4110a7449b feat: allow channel/thread->guild and guild->shard maps to be disabled (#222)
This should allow for not using the `Client.channelGuildMap`,
`Client.threadGuildMap`, and `Client.guildShardMap` when
`caching.disableMaps` is on.

Some caveats:
- Obviously `getChannel` will do linear searching now, but this can be
skipped with guild hinting. `getChannel` now has a `guildIDHint`
parameter for getting that specific guild rather than searching all of
them. Which has some caveats:
- `editChannelPosition`'s option param has `guildIDHint`, it's channel's
corresponding function will use it.
- Same for `joinVoiceChannel` and `leaveVoiceChannel`, but
`leaveVoiceChannel` has it's hinting in a new parameter.
- `ThreadMember`'s construction to find the guild *will* do linear
searching, sad.
- Many of the shard events that use `getChannel` either now hint at the
guild or just gets the guild directly.

---------

Co-authored-by: TTtie <me@tttie.cz>
2026-05-11 01:04:11 +02:00
Gwee 54f9891793 fix(ThreadMember): Thread Member null condition (PR 1537) 2024-09-06 07:45:43 +02:00
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 500cfd5fb0 refactor: bump the minimum node version to 18.x.x (#46)
Let's hope nothing breaks...
2023-04-01 12:23:03 +00:00
TTtie 558fdc65e0 fix(ThreadMember): missing Member import (#27) 2023-01-14 21:52:25 +00:00
TTtie 0aa9d72cd5 feat(ThreadChannel): thread member pagination (#25)
* feat(ThreadChannel): allow fetching more details about thread members

* feat(ThreadChannel): add singular thread member fetching

* remove redundant parameter

* member data from THREAD_MEMBERS_UPDATE is sent in the member field

* handle the guild not being cached accordingly

* consistently transform options in getThreadMember
2023-01-13 18:07:14 +00:00
Donovan Danielsandbsian03 2d317cf7df Add, update, reorganize Constants (#1271)
Co-authored-by: bsian03 <chharry321@gmail.com>
2021-11-14 11:42:45 -08: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