1554 Commits
Author SHA1 Message Date
TTtie b1e27cd71e fix: ensure editChannelPosition works as it should, remove flags (#276)
- Removes `flags` from `editChannelPosition` and `editChannelPositions`
as per [1]
- Adds `reason` to `editChannelPosition{,s}` as an option, and a
parameter respectively per [2].
- Fixes a couple wrongs with `editChannelPosition`:
- Construction of the endpoint still depended on the channel map being
present, which might not be the case when channel maps are disabled
- `options.lockPermissions` and `options.parentID` now correctly affects
only the channel being moved around

Ref:
https://github.com/discord/discord-api-docs/commit/c989436e97b194350ec4712aec77207c2f9f2332
[1]
Ref:
https://github.com/discord/discord-api-docs/commit/ee16658e2304c3b44b2c652f4cae0a4363c4c081
[2]
2026-11-28 22:21:31 +01:00
Snazzah 9ecba6d74d fix(VoiceConnection): fix typo on #278 (#280)
:(
2026-11-22 11:04:24 +00:00
TTtie 2a81abe958 feat: add support for REST computed role/member permissions (#279)
Ref:
https://github.com/discord/discord-api-docs/commit/9d2128bb8301e7d9f239ff259f2ee41cf4d73c70
2026-11-16 14:20:31 +01:00
SnazzahandTTtie 8e46d88f7b feat: update @snazzah/davey to 0.2.0 (#274)
This updates [`@snazzah/davey`](https://github.com/Snazzah/davey) to
0.2.0 ([migration
guide](https://github.com/Snazzah/davey/wiki/Migrating-to-0.2.0)) which
makes the DAVE implementation a lot more secure and a lot more stable.

---------

Co-authored-by: TTtie <me@tttie.cz>
2026-11-11 21:54:21 +01:00
Snazzah 4b710ceded fix(VoiceConnection): remove SSRCs of users that left (#278) 2026-11-11 19:37:27 +01:00
TTtie 2beb505945 feat: add CHANNEL_POSITION_UPDATE/ROLE_POSITION_UPDATE to audit logs (#275)
Ref:
https://github.com/discord/discord-api-docs/commit/ee16658e2304c3b44b2c652f4cae0a4363c4c081
2026-11-05 10:57:33 +01:00
Snazzah ca6be2229c fix(Shard): respect caching.disableMaps in thread events (#277) 2026-11-05 10:20:59 +01:00
TTtie 3a9a402735 feat: add content scan metadata flags (#273)
Ref:
https://github.com/discord/discord-api-docs/commit/2b434c56eca46b61461bf5578499dd7810e2f6af
2026-11-04 23:56:39 +01:00
TTtie 2386cd8c0f fix(Attachment): add missing base object to clipParticipants (#271)
Ref:
https://discord.com/channels/1028639891363475527/1028644491776774225/1558210989999128669
2026-10-09 20:28:14 +00:00
TTtie a76458f9a5 fix(Message): pass the client instead instead of message when constructing attachments (#270)
Ref:
https://discord.com/channels/1028639891363475527/1028644491776774225/1558205844133388349
2026-10-09 20:09:11 +00:00
TTtie 042b11f05b feat: allow adding/removing target users from invites (#269)
Ref:
https://github.com/discord/discord-api-docs/commit/daeab5a8ad1e901c8bc00643c50b0a689d644fa7
2026-09-29 22:36:47 +02:00
Snazzah 5f65b5d79e fix(VoiceConnectionManager): fix pending guild state being mishandled (#268) 2026-09-19 22:59:24 +02:00
ZixeSea 70e64929a5 fix(Constants): Small typo in SKUFlags (#267)
Sorry for the small PRs but found another small problem. There is an
typo in the SKUFlags
2026-09-11 13:22:47 +00:00
SnazzahandTTtie d19510a822 fix(ShardManager): revise shard initial connection flow (#266)
Some issues with the shard manager:
- The client was checking for a `shardConcurrency` option for some
reason under `connect()`
- Shards wait until its ready then wait 5s before connecting another
shard rather than waiting 5s after sending an identify packet
- The default create timeout being 2 seconds is, ehh, slow? There
usually isnt such a large delay between these events
- Waiting for shards to be ready is bound by the client's unavailable
guilds rather than it's own list of guilds to wait for

So this PR changes some things:
- Reworks the connection strategy, it will wait 5s after sending the
identify packet before connecting another shard in it's bucket, the
`connectTimeout` waits until the next best moment to check over shards
again. Also it was just iterating the queue while it could be altered
- Shards now hold their own "awaited guilds" set for those IDs to be
expected to come in before it is considered as ready
- `guildCreateTimeout`: 2 seconds -> 1 second

---------

Co-authored-by: TTtie <me@tttie.cz>
2026-09-10 19:38:17 +00:00
TTtie 5a967bef8d feat: add CHANNEL_OBFUSCATED channel flag (#265)
Ref:
https://github.com/discord/discord-api-docs/commit/84664053942ea28c2d457d5fd52d8a180bc0f208
2026-08-31 21:44:31 +00:00
TTtie 7283fc0ad7 feat: add PRUNE_REQUIRES_ADMIN guild feature (#264)
Ref:
https://github.com/discord/discord-api-docs/commit/488f24d00357b2a76108669ee704e3e06b999b67
2026-08-29 21:10:55 +00:00
ZixeSea 373f7ebbcb fix(Client): pass options in getSKUSubscriptions (#263)
Options weren't passed in getSKUSubscriptions within the request
function.
2026-08-29 20:43:34 +00:00
TTtie 98e20d6698 refactor(Shard): simplify incoming WS message processing (#262)
- Removes duplicate JSON/ETF parse code from the compressed data
pipeline, making the code easier to read.
- Forces ArrayBuffers converesion to Node buffers unconditionally.
2026-08-17 01:29:38 +00:00
TTtie bc1edcf02e chore: adjust a few more linting rules (#259)
Adjusts a bunch more linting rules to resolve inconsistencies and to
ensure the linting rules are enforced as intended.
2026-08-12 13:55:19 +00:00
TTtie a36119ee03 chore: migrate to pnpm + minor housekeeping (#258)
Migrates Dysnomia over to pnpm. Might also do some housekeeping while at
it.

Short list of changes: (entries will be added here as needed)
- Migrated to pnpm. CI has been updated relatively blindly and will need
some testing beforehand.
- A lock file is now included for local development
- Actions are pinned to their commit SHA
- Updated some dependencies
- tsconfig.json now targets ES2025 + modern Node.js module resolution
-
2026-08-12 13:55:18 +00:00
TTtie f529b38156 types: allow filtering file types in file upload modals and attachment command arguments (#251)
Currently in private testing.
2026-08-06 01:47:51 +02:00
TTtie 476fa65b0a chore: default the image format to .webp, add missing dynamic image methods (#257)
- Makes .webp the default image format for both static and animated
images
  - Discord documentation states that assets uploaded as animated
  .webp/.avif aren't converted to other formats. (see ref)
  - Although static .webp is still converted to other formats, using a
  single image format makes matters a bit more consistent
  - This is obviously a breaking change for users that expect to get a
  .jpg/.gif out of the URL getters. Most reasonably modern image
  processing toolkits should be able to take .webp media just fine though.
- .webp links will now contain the `?animated=true` query string
parameter for animated images
  - An additional boolean parameter has been added to `dynamic[...]URL()`
  APIs to exclude the parameter, forcing a static version of the image.
- Added some missing dynamic URL APIs, namely `Role#dynamicIconURL` and
`GuildScheduledEvent#dynamicImageURL`

Ref:
https://github.com/discord/discord-api-docs/commit/ab3ea3c8d7a7c5ddc6b991f409355b4fa86bc9b3
2026-07-29 23:34:49 +00:00
TTtie 21769d4b59 fix(GuildScheduledEvent): correctly grab guild ID on edit and delete (#256) 2026-07-29 04:28:30 +02:00
TTtie 2fdea0c316 feat: automatically populate missing Client#application for methods that need it (#255)
Automatically ensures `Client#application` is present for methods that
need the data from it to function.

This enables more seamless usage in REST-only scripts to set commands
up, for example. However, if desired, `Client#application` can be still
populated with known data to avoid a roundtrip to the API.
2026-07-28 04:04:02 +02:00
TTtie c11ee37b06 chore: add missing guild ID hints to internal getChannel() usages (#254)
Adds guild ID hints to `getChannel()` usages inside the library that
have been left out.
2026-07-21 11:19:53 +02:00
TTtie 1371ed80fc feat: support spoiler channels (#253)
Ref:
https://github.com/discord/discord-api-docs/commit/fa2cdf882c2c7dd5007ab6f77a746179f75d0cdd
2026-07-20 06:53:49 +02:00
TTtie e5c36970d4 docs: add is_spoiler, waveform, and duration_secs to attachment upload structure (#252)
Ref:
https://github.com/discord/discord-api-docs/commit/bea2305a9094163f59ac7cf86c4c1f3bd05f73d2
2026-07-15 02:28:21 +00:00
TTtie add39eec95 chore: rename AuditLogActions#VOICE_CHANNEL_STATUS_UPDATE -> VOICE_CHANNEL_STATUS_CREATE (#250)
Ref:
https://github.com/discord/discord-api-docs/commit/65170436bd8a27692f341b9b060eb5930bb0e905
2026-06-18 01:43:30 +00:00
TTtie b0781a8f2d fix(Constants): swap SubscriptionStatus#{INACTIVE,ENDING} (#249)
Swaps `SubscriptionStatus#{INACTIVE,ENDING}` as those were swapped in
the original docs, and thus have incorrect values here as well.

Ref:
https://github.com/discord/discord-api-docs/commit/7aaa911a4eb2ec34f20ac7302988cfb33efc6e56
2026-06-17 01:12:00 +00:00
TTtie 8d2c4c951e feat: add type for uncached channels in message create/update events (#248)
Ref:
https://github.com/discord/discord-api-docs/commit/c552b8fdb4258b281c2b95be19eb7d4caf285ebb
2026-06-06 23:45:08 +00:00
TTtie 69393fa5b2 feat: support message search (#244)
Ref:
https://github.com/discord/discord-api-docs/commit/62a02765da08cafcedda84063466f684eb58425d
2026-05-30 21:59:56 +00:00
TTtie de437ad5b6 ci: update used workflows (#247)
Updates the workflows to use their latest version, along some
consistency fixes.

Additionally, when releasing, the built tarball won't be rezipped again.
2026-05-12 10:09:35 +02:00
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
Snazzah a596c6b415 fix(GuildAuditLogEntry): fix targets for voice channel statuses (#246) 2026-04-28 16:05:14 +02:00
TTtie f9bdfd061e feat: add new attachment/component fields (#243)
Ref:
https://github.com/discord/discord-api-docs/commit/06c6560196692af7fe808c582bfd34c60a8b4ea1
2026-04-23 18:54:51 +02:00
SnazzahandTTtie 1c25ee85ef feat: support voice channel statuses (#245)
Ref: https://github.com/discord/discord-api-docs/pull/6400
Co-authored-by: TTtie <me@tttie.cz>
2026-04-23 18:37:22 +02:00
TTtie d1179a6fe5 chore(Constants): deprecate UserFlags.{SPAMMER, ACTIVE_DEVELOPER} (#242)
The active developer flag has been removed in referenced commit, the
spammer flag isn't documented.

Ref:
https://github.com/discord/discord-api-docs/commit/10f9a02aed744ca62a98a70f5d06cdcd143d749c
2026-04-19 00:18:24 +02:00
TTtie 314ff7bffc fix(GuildScheduledEvent): correctly pass the client instance when constructing the creator (#240)
Could cause issues with a "missing client" if the creator of the event
isn't cached.
2026-04-07 12:19:08 +02:00
TTtie b22fdc24ad chore: remove v0.2.x deprecations (#239) 2026-04-07 12:15:41 +02:00
TTtie 9be71a16fa chore: set package version to 0.3.0-dev (#238) 2026-04-06 23:18:08 +00:00
TTtie 77942ad475 chore: set package version to 0.2.4 (#227) v0.2.4 2026-03-15 01:02:01 +00:00
TTtie e717583c7f chore: update dependencies (#237) 2026-03-14 23:12:03 +00:00
TTtie bf2cb84372 feat: community invites (#233)
Ref:
https://github.com/discord/discord-api-docs/commit/e6b6aa6df939ddb1636863c62a97f5ca5db1ba25
2026-03-11 13:05:54 +01:00
TTtie b32a5ffb50 feat(voice): handle 4017 (DAVE required) error code (#236)
Handles the 4017 close code by not trying to reconnect when it occurs.

Ref:
https://github.com/discord/discord-api-docs/commit/eebfe6dc09bf1c0228bc0206310cf212a7cff71f
2026-03-02 22:11:55 +01:00
TTtie ca505537a9 feat: radios and checkboxes in modals (#234)
Ref:
https://github.com/discord/discord-api-docs/commit/4ebac268bc477a39d48229422d192231eba7082b
2026-02-17 15:36:36 +01:00
Snazzah cd9fe979fd fix(voice): handle errors from MLS proposals (#235)
Had this crash on a bot due to it getting a wrong epoch in the message.
Don't know if thats a davey bug or not, but the library should try to
recover if it can. I'm asking Discord staff whats the optional way to
mitigate this later.
2026-01-31 23:57:57 +00:00
TTtie ae81d0fe62 feat: add Client#getMemberRoleCounts (#232)
Ref:
https://github.com/discord/discord-api-docs/commit/d7bb120b888474bbcf6f1054c2ca823b4d36ba55
2025-12-15 13:36:35 +01:00
TTtie 152fee15d2 feat(Constants): add bypassSlowmode permission (#231)
Ref:
https://github.com/discord/discord-api-docs/commit/e3a323abc85e33067b7c61c9a0e9cda482a416dc
2025-11-27 23:23:18 +00:00
Snazzah b94c873b93 fix(voice): drop empty all-padding packets (#230)
This is rare, but sometimes some packets are given with *only* padding
inside them, #229 fixed the issue of handling padding properly so that
it's not passed to the `data` event, but empty buffers while in a DAVE
session leads to failed decryptions. This usually occurs in
Cloudflare-ran voice servers.
2025-11-17 22:44:36 +00:00
TTtie 11cf04e932 fix(voice): correct padding amount calculation (#229)
Fixes an incorrect calculation of voice padding introduced with
https://github.com/projectdysnomia/dysnomia/commit/618f3065717cece5f74bb4bf05a79ee697b1fad0,
where the last byte was incorrectly unwrapped into a typed array.

Ref:
https://github.com/abalabahaha/eris/pull/1558#discussion_r2384245527
Ref: https://datatracker.ietf.org/doc/html/rfc3550#section-5.1
2025-11-10 12:32:28 +00:00