522 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
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
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
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
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 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 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 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
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 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 bf2cb84372 feat: community invites (#233)
Ref:
https://github.com/discord/discord-api-docs/commit/e6b6aa6df939ddb1636863c62a97f5ca5db1ba25
2026-03-11 13:05:54 +01: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
Snazzah 0114e587df feat(voice): add DAVE decryption failure tolerance (#228)
Adds a DAVE decryption failure tolerance option if there is too many
consecutive decryptions, similar to how its done here:
https://github.com/discordjs/discord.js/pull/10921

```js
/**
 * The amount of packets to allow decryption failure for until we deem the transition bad and re-initialize.
 * Usually 4 packets on a good connection may slip past when entering a new session.
 * After re-initializing, 5-24 packets may fail to decrypt after.
 */
export const DEFAULT_DECRYPTION_FAILURE_TOLERANCE = 36;
```

I've also made `recoverFromInvalidTransition` public so people could
manually remake the session if they want. There's also a new
`lastTransitionID` and `reinitializing` property to connections.
2025-11-08 21:46:58 +00:00
Snazzah 252263388a feat: allow file uploads in modals (#224)
Ref: https://github.com/discord/discord-api-docs/commit/c20b256919547f3bc5cbdd6fabcba6422007e8cb
2025-10-16 23:04:53 +00:00
TTtie 49d00d75cd chore(Member): don't use nick format in mentions (#225)
The nickname mention format has been unused and considered deprecated
since 2022 (see refs).

Ref:
https://github.com/discord/discord-api-docs/commit/e3921e168aa167503ae193439abe70106b58d914
Ref:
https://github.com/discord/discord-api-docs/issues/4734#issuecomment-1086156692
2025-09-27 16:34:11 +00:00
TTtie 3b354c30b2 feat: allow editing current user avatar/banner/bio (#223)
Ref:
https://github.com/discord/discord-api-docs/commit/03c4ebce52b3f13264aa8a78acd52631ef180c89
2025-09-13 23:00:58 +00:00
TTtie 14fedd2c2b feat: allow passing more things in modals (#221)
Ref:
https://github.com/discord/discord-api-docs/commit/6058b2e2d09c4eece2a0c4c9d988f7a44d799394
2025-09-13 22:46:34 +00:00
SnazzahandTTtie fc8b56165a feat: DAVE end-to-end encryption (#196)
Ref https://github.com/discord/discord-api-docs/pull/7150 &
https://daveprotocol.com

This PR adds [Discord Audio & Video End-to-End Encryption (DAVE)
Protocol](https://daveprotocol.com/) using
[`@snazzah/davey`](https://github.com/Snazzah/davey), a DAVE
implementation. `@snazzah/davey` supports WASM enviroments as well. The
package is new so I need to ensure edge cases are properly handled, but
most of its functions are complete.

## TODO
- [x] Finish documentation and implementation
- [x] Add a option to enable/disable DAVE
- [x] Ensure packets during upgrade are handled properly ([see Upgrade
From Transport-Only
Encryption](https://daveprotocol.com/#upgrade-from-transport-only-encryption))
- [x] Ensure packets during downgrade are decrypted properly ([see
Downgrade to Transport-Only
Encryption](https://daveprotocol.com/#downgrade-to-transport-only-encryption))

---------

Co-authored-by: TTtie <me@tttie.cz>
2025-09-12 22:04:20 +00:00
SnazzahandTTtie 8c8685dd45 feat(voice): add UDP timeout option (#220)
An addition to https://github.com/projectdysnomia/dysnomia/pull/205
since voice options exist now

---------

Co-authored-by: TTtie <me@tttie.cz>
2025-08-20 17:37:44 +00:00
TTtie bfa445cd9e feat(voice): support custom WS options (#218)
Adds support for custom voice websocket options under the
ClientOptions#voice.ws object (and other relevant places), 
allowing an agent to be passed if needed.

Fixes https://github.com/projectdysnomia/dysnomia/issues/217
2025-08-19 01:05:59 +00:00
TTtie 3c1b97c91c chore: deprecate code paths involving bot user guild ownership (#214)
Will be removed in 0.3.x line. 🫡

Ref:
https://github.com/discord/discord-api-docs/commit/74244a1d91786450cb4b05fdce2c353e788d91d1
Ref:
https://github.com/discord/discord-api-docs/commit/1d2b9c2b8db8cbb60616097433aeb797a80c98a4
Ref:
https://github.com/discord/discord-api-docs/commit/a5cb8e55fbf1193eba62e1fd60b68055ccf7da06
2025-08-13 23:46:05 +00:00
TTtie 0ccdca901a feat: add automod quarantine constants (#213)
Ref:
https://github.com/discord/discord-api-docs/commit/610f9bcdda8c463bc8a62a33fec29d47165458d6
Ref:
https://github.com/discord/discord-api-docs/commit/2798b232a1f355fcb4c8a350c897c8deff84c859
2025-07-31 00:12:01 +00:00
TTtie 1334550db1 feat: support user guild tags (#212)
Ref:
https://github.com/discord/discord-api-docs/commit/a1bac5f61574df372c44d73624e725c2c9ef8bc1
2025-07-18 02:34:13 +00:00
TTtie bd7da84008 feat: support paginated pins (#207)
To not break compatibility with existing 0.2.x releases, this is exposed only if an options object is passed. In 0.3.x, the options object will become optional and the "new" form will be returned.

Ref:
https://github.com/discord/discord-api-docs/commit/404b074d08cd36ec21ab3c0d7ba7673a4a7e874a
Ref:
https://github.com/discord/discord-api-docs/commit/8ef03803f28fd93ce5970225266abab9e7b2aa6c
2025-07-01 00:05:45 +00:00
TTtie 7b0686eb22 feat: support invite flags (#210)
Ref:
https://github.com/discord/discord-api-docs/commit/3bd60ee6d04c1a767e2be1fed94e9d3a7c0d7e5f
2025-06-30 23:35:42 +00:00
TTtie 92a886997e feat: user collectibles (#204)
Ref:
https://github.com/discord/discord-api-docs/commit/8e9bd1c71fc14f006a9fda120270c7a51a63b696
2025-06-30 23:07:09 +00:00
TTtie 8744c08955 feat: support multi-colored roles (#209)
Ref:
https://github.com/discord/discord-api-docs/commit/be4846c29365451b3dbc7c5e0138c9ab01a201c5
2025-06-28 19:38:50 +00:00
SnazzahandTTtie 487248df32 feat: support components v2 (#194)
Adds types for components V2.

Ref: https://github.com/discord/discord-api-docs/commit/af1843d15bca8fffb76e1421fbb060761361d469
Ref: https://github.com/discord/discord-api-docs/commit/6030e33ad1a1108b482410f8ea34e96e97916e3b

---------

Co-authored-by: TTtie <me@tttie.cz>
2025-04-23 21:46:15 +00:00
Snazzah 450795bb5b feat: add attachmentSizeLimit to Interaction (#197)
Ref: https://github.com/discord/discord-api-docs/commit/2c09c19557750d42bcc6dc699139178b7a49b363
2025-04-05 00:44:43 +00:00
TTtie cfb9dff454 feat: support incident actions (#193)
Ref:
https://github.com/discord/discord-api-docs/commit/2e3cf2fe43f88a4336a4e83d1047f9db0331bd64
2025-02-05 15:55:46 +00:00
TTtie ddb7dd19bc docs(ApplicationCommand, Attachment): fix id type in jsdoc (#191)
Somehow, this managed to flow under the radar…
2025-01-12 11:47:04 +00:00
TTtie 69c2ec22f8 feat: support multiple subscription tiers (#189)
Ref: https://github.com/discord/discord-api-docs/commit/5af3428f579f0a0f48f585d14882f8492e3b5236
2024-12-20 00:01:36 +00:00
Snazzah ac892d9c8c fix(Message): fix message with snapshot construction in known guild (#188)
Got this error a bunch during deployment... Seems to be because during
the message.channel.guild check it doesn't account for null authors.
2024-11-25 23:03:56 +00:00
TTtie 23aff37eb1 fix(GuildScheduledEvent): recurrence rules may be nullable (#187)
This was apparently forgotten when I decided to transform the event
object and fell under the radar due to the guilds intent being disabled
on my testing bot.
2024-11-19 20:41:47 +00:00
TTtie 36da7668a2 fix(Message): construct interaction metadata construction (#185)
This unfortunately broke Message construction entirely, so this is
released as a hotfix
2024-11-19 20:13:00 +00:00
TTtie e8cfee894b feat: add last missing toJSONs 2024-11-18 21:50:01 +01:00
TTtie 2bdcef1603 chore(Entitlement, GroupChannel): clean up toJSON() 2024-11-18 21:50:01 +01:00
TTtie b975a463c5 fix(Interaction): set the member ID even if the guild is not cached (#181)
Ref: https://github.com/abalabahaha/eris/issues/1512
2024-11-06 13:33:55 +00:00
TTtie 6b291e0576 feat(InteractionMetadata): add command target properties (#178)
Ref:
https://github.com/discord/discord-api-docs/commit/462cddc4253f1d46bc05fb7d6809b94a9d2f118d
2024-11-02 13:23:02 +00:00