Almeida
01f31f374a
chore: bump dependencies ( #11356 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-10 17:53:48 +00:00
Denis-Adrian Cristea
9bf1f739e0
chore: remove usage of the prefer-global rules ( #11279 )
2025-12-10 14:05:29 +00:00
Almeida
87b359e44d
fix: replace usages of Buffer#slice() with Buffer#subarray() ( #11326 )
...
fix: replace usages of Buffer.slice() with Buffer.subarray()
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-02 23:13:10 +00:00
Almeida
612c49b546
fix: adjust types for typescript upgrade ( #11132 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-05 12:43:49 +00:00
Jiralite
059d274aff
chore: Fix typos ( #11043 )
...
chore: fix typos
2025-08-17 19:45:38 +00:00
Snazzah
8bdea6232b
feat: implement DAVE end-to-end encryption ( #10921 )
...
* feat(voice): implement DAVE E2EE encryption
* chore(voice): update dependencies
* chore(voice): update debug logs and dependency report
* feat(voice): emit and propogate DAVESession errors
* chore(voice): export dave session things
* chore(voice): move expiry numbers to consts
* feat(voice): keep track of and pass connected client IDs
* fix(voice): dont set initial transitions as pending
* feat(voice): dave encryption
* chore(voice): directly reference package name in import
* feat(voice): dave decryption
* chore(deps): update @snazzah/davey
* fix(voice): handle decryption failure tolerance
* fix(voice): move and update decryption failure logic to DAVESession
* feat(voice): propogate voice privacy code
* fix(voice): actually send a transition ready when ready
* feat(voice): propogate transitions and verification code function
* feat(voice): add dave options
* chore: resolve format change requests
* chore: emit debug messages on bad transitions
* chore: downgrade commit/welcome errors as debug messages
* chore: resolve formatting change requests
* chore: update davey dependency
* chore: add types for underlying dave session
* fix: fix rebase
* chore: change "ID" to "id" in typedocs
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-07-13 17:02:56 +00:00
Snazzah
d40ceedad4
feat(voice): use voice gateway v8 ( #10918 )
...
* feat(voice): use voice gateway v8
* docs: small typo
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-06-02 17:38:50 +00:00
Almeida
e094faf225
docs: add missing, fix existing ( #10842 )
...
* docs: add missing, fix existing
* refactor: new stuff
* fix: requested changes
* fix: use `@link` for `@mixes`
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* chore: disable bad eslint rule
---------
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-06-02 17:35:43 +00:00
Almeida
78d512c347
docs: export all visible symbols ( #10760 )
...
* docs: export all visible symbols
* fix: discord.js except raw
* refactor: remove raw data types
* docs: add back discord.js tsdoc file
* refactor: remove underscores
* fix: merge
* docs(RPCRedis): make `promises` as internal
---------
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-26 17:41:08 +00:00
Noel
f580de8025
chore: upgrade deps ( #10824 )
2025-04-05 13:18:56 +02:00
Vlad Frangu
19d48f6d6c
feat: print out support for aes-256-gcm in native node:crypto ( #10764 )
2025-02-19 20:59:17 +00:00
pat
bc3a0c8389
fix(voice): mark stream as ended ( #10455 )
...
* fix: mark stream as ended
refactor: prefer destroying the stream
* refactor: callback for nextTick
test: wait duration ms to check end
chore: eslint
test: end before timeout
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-12-31 20:45:24 +00:00
pat
9f8b9b1d66
feat(voice)!: add new encryption methods, remove old methods ( #10451 )
...
BREAKING CHANGE: This library no longer supports using `tweetnacl` as an encryption library due to Discord deprecating the algorithms that `tweetnacl` helped us support (read more [here](https://discord.com/developers/docs/change-log#voice-encryption-modes )). Please migrate to one of: `sodium-native`, `sodium`, `@stablelib/xchacha20poly1305`, `@noble/ciphers` or `libsodium-wrappers` unless your system supports `aes-256-gcm` (verify by running `require('node:crypto').getCiphers().includes('aes-256-gcm')`).
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
2024-11-18 00:08:51 +02:00
Almeida
e2e71b4d09
build: bump dependencies ( #10457 )
...
* build: bump `@vladfrangu/async_event_emitter`
* chore: bump again + fixes
* build: bump types/node and some dev deps
* build: bump discord-api-types again
* style: remove unused eslint-ignore comment
* build: sync dependencies and update templates
* build: bump turbo
* build: vercel + vitest
* build: bump undici
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
2024-08-22 17:33:35 +02:00
iCrawl
8f432400d8
build: multi-config build and dep update
2023-11-14 01:26:22 +01:00
Almeida
975d5f18ae
chore: use descriptive type parameter names ( #9937 )
...
* chore: use descriptive type parameter names
* refactor: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-12 17:21:51 +00:00
Jacob Morrison
637e1a4ddb
refactor: Move getNode/canEnableFFmpegOptimizations into a lazy loaded call ( #9918 )
...
* Move the getNode/canEnableFFMPEGOptimizations into a lazy loaded call the first time it's actually ever referenced
* PR feedback: Make initializeNodes return a map then nullably assign NODES, this removes an extra variable and cleans up the code
* chore: lint suggestion
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* Use local map instead of recursive
* Run prettier
* Fix lint
---------
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-06 09:17:19 +00:00
White Wolf
788888ab9a
fix(TransformerGraph): Explicitly include input args for readable input cases instead of just for string input cases ( #9793 )
...
Explicitly add input args for readable input cases instead of just for string input cases.
Change also ensures that constant arrays are passed by value instead of by reference, preventing them from accidentally being modified.
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-08-23 16:10:22 +00:00
iCrawl
d37632da05
build: refactor linting
2023-08-22 09:40:11 +02:00
iCrawl
afa98793cd
chore: deps
2023-07-17 09:45:07 +02:00
iCrawl
7e875f6919
chore: refactor workspace
2023-05-03 02:14:22 +02:00
RanAS
36216c0e1a
docs: include StreamType enum description in new docs ( #9457 )
2023-04-27 20:29:27 +02:00
Almeida
869153c3fd
refactor: compare with undefined directly ( #9191 )
...
* refactor: compare with `undefined` directly
* fix: lint
2023-03-12 20:24:22 +00:00
Vlad Frangu
c6d98fa0c5
fix(Voice): send keep alives without awaiting a response ( #9202 )
2023-03-09 12:12:02 +01:00
Synbulat Biishev
8b70f497a1
docs: fix version export ( #9049 )
...
* docs: fix version export
* types: assert `[VI]{{inject}}[/VI]` as string
* types: typo
* Revert "types: typo"
This reverts commit ba983f02be .
* types: typo
I hate my local repo. It can't install deps with `--immutable` and a have weird error on `yarn test`, but the CI passes
2023-01-19 15:56:57 +00:00
Almeida
d587467a38
chore: use @link instead of markdown link in tsdocs ( #8732 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-10 20:03:35 +00:00
Almeida
02ffce8173
chore: make 'Note to developers' on version constant a regular comment ( #8730 )
...
chore: make 'Note to developers' a regular comment
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-10 14:42:03 +00:00
Jeroen Claassens
d923d0ab96
build: switch to esbuild-plugin-version-injector for injecting version strings ( #8723 )
2022-10-08 02:54:45 +02:00
Parbez
dbca93098c
chore: remove unused eslint disable comments ( #8595 )
2022-09-08 15:08:04 +02:00
iCrawl
4ffdada4f7
chore: deps
2022-09-04 19:33:57 +02:00
iCrawl
3b7ba4062e
chore: fix leftover eslint exceptions
2022-09-01 21:26:09 +02:00
Suneet Tipirneni
edadb9fe5d
refactor: use eslint-config-neon for packages. ( #8579 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2022-09-01 20:50:16 +02:00
Suneet Tipirneni
e42fd16369
feat(website): Show constructor information ( #8540 )
2022-08-22 09:45:53 +02:00
iCrawl
c052f56f3e
ci: fix typechecking in ci
2022-08-15 00:42:33 +02:00
Noel
3b0197bd8e
build: refactor build system ( #8324 )
2022-07-20 16:36:42 +02:00
CallMe AsYouFeel
1a6ddbbe7b
fix(VoiceReceiver): parsePacket correctly ( #8277 )
2022-07-17 18:52:35 +02:00
Jiralite
c271e05223
fix(SpeakingMap): Allow docgen to detect event name ( #8236 )
2022-07-05 16:10:23 +02:00
iCrawl
b2776c22d4
ci: api-extractor support for docs
2022-06-30 15:46:14 +02:00
Skick
70b42bb64a
types(voice): bring back typed events ( #8109 )
2022-06-23 12:39:36 +02:00
iCrawl
d4b41dd081
feat(docgen): proper event parsing for typescript
2022-06-10 16:22:11 +02:00
iCrawl
b3346f4b9b
feat(docgen): update typedoc
2022-06-10 12:59:46 +02:00
DD
e2f5a4a494
chore: enable noUncheckedIndexAccess ( #7931 )
2022-05-18 19:56:42 +02:00
iCrawl
bcf7f1cfad
chore: deps
2022-04-17 11:27:36 +02:00
Josh Wee
f0d0242c76
feat: support sodium-native lib for voice ( #7698 )
...
* chore: add sodium-native
* feat: wrap sodium-native methods
* chore: update dep listings
* chore: update dep report
* revert: "chore: add sodium-native"
This reverts commit 6a64db85d0 .
* chore: consolidate buffer alloc
Co-authored-by: Vitor <milagre.vitor@gmail.com >
* chore: conslidate sodium.random
* chore: explicit param typing
* refactor: truthy style maintenance
Co-authored-by: Vitor <milagre.vitor@gmail.com >
2022-04-12 17:20:30 +02:00
Suneet Tipirneni
72577c4bfd
feat: add API v10 support ( #7477 )
...
* feat: add API v10 support
* refactor: update deps
* chore: rebase fixes
2022-03-15 21:37:07 +01:00
CallMe AsYouFeel
fa97a31504
voice: pass joinConfig.group to getVoiceConnection ( #7442 )
2022-02-12 10:22:25 +01:00
D Trombett
92a04f4d98
fix: fix some typos ( #7393 )
2022-02-02 22:10:47 +01:00
Voxelli
1745973024
refactor: PresenceUpdate and demuxProbe ( #7248 )
2022-01-11 22:02:54 +01:00
iCrawl
62c74b8333
test(voice): fix tests
2022-01-11 21:53:08 +01:00
Noel
16938da355
chore: improve linting ( #7244 )
2022-01-11 12:30:08 +01:00