Jeroen Claassens
229ad077ff
fix(rest): remove const enums in favour of regular enums ( #9243 )
...
* fix(rest): remove `const enum`s in favour of regular enums
The motivation is that `const enum` produces ambient const enums when
compiling which in turn causes issues with TypeScript 5.x when `verbatimModuleSyntax`
is enabled.
Furthermore, the generally accepted best practice is to avoid `const enum`s
when writing libraries. Can back this up with statements from TS maintainers
if needed, I know they made them, I just can't be bothered to find the GitHub
links lmao. @vladfrangu will probably be able to find those links much easier
than me as it was also the motivation to remove `const enum`'s from discord-api-types
* refactor(rest): restore `const enum` for internal enum
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-19 14:35:27 +00:00
Jeroen Claassens
2e8e95031c
build: resolve issue with esbuild-plugin-version-injector not working ( #9246 )
...
The issue was two-fold.
First of all, tsup starts using swc when `emitDecoratorMetadata` and `@swc/core` is installed.
`@swc/core` is installed transiently, which still causes the problem.
Okay, sure, so we move the `emitDecoratorMetadata` option to just
`packages/builders/tsconfig.json` seeing as the other packages don't use decorators anyway.
But that still leaves solving the issue for builders. @vladfrangu ended
up finding out that there was a bug in how esbuild handles plugins causing
the esbuild-plugin-version-injector plugin to not get loaded. This is solved
in v1.1.0 where the content is also replaced using the `onEnd` hook, if it
wasn't replaced by `onLoad` yet.
2023-03-19 14:28:06 +00:00
Jiralite
41077c96b5
chore: release all packages ( #9230 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2023-03-12 20:54:27 +00:00
DraftMan
955e8fe312
fix(snowflake): snowflakes length ( #9144 )
...
* fix(snowflake): fix snowflakes length
* fix(snowflake): fix length
2023-03-12 20:07:51 +00:00
iCrawl
1f86d8578a
chore: deps
2023-02-27 21:55:46 +01:00
Lioness100
1ba1f238f0
docs: fix typos ( #9127 )
...
* docs: fix typos
* indicies -> indices
* rename file
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 20:07:38 +00:00
Jiralite
d44a6f035c
chore: bump discord-api-types and undici ( #9140 )
...
* chore: update discord-api-types to 0.37.35
* fix: exclude stage channels for now
* chore: update undici
* chore: dedupe undici
2023-02-17 19:17:08 +00: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
Suneet Tipirneni
56ef3ad8a0
ci: update scripts for documentation changes ( #9055 )
...
* ci: update scripts for documentation changes
* refactor: use tsconfig files
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-17 19:15:01 +00:00
Almeida
6a9875da05
feat(Sticker): add support for gif stickers ( #9038 )
...
* feat(Sticker): add support for gif stickers
* chore: upgrade discord-api-types
* refactor: requested changes
2023-01-13 15:29:35 +00:00
Superchupu
1831acaffb
chore: switch tsup config to typescript ( #9057 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-13 09:44:56 +00:00
Suneet Tipirneni
f6506e99c4
feat(website): add support for source file links ( #9048 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2023-01-12 13:49:11 +01:00
iCrawl
a4f2f1b5a5
chore: deps
2023-01-12 10:36:48 +01:00
Almeida
2798ba1eb3
style: run prettier ( #9041 )
2023-01-12 09:23:02 +01:00
iCrawl
8dfd0037b5
chore: deps
2023-01-10 18:32:57 +01:00
DD
ecb4281d1e
fix(RequestManager): inference of image/apng ( #9014 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-06 15:23:11 +00:00
iCrawl
e470e088ab
chore(rest): release @discordjs/rest@1.5.0
2022-12-16 03:53:13 +01:00
Suneet Tipirneni
3d6fa248c0
feat(core): Add support for role connections ( #8930 )
2022-12-16 03:32:00 +01:00
Suneet Tipirneni
273ba45e27
chore: use satisfies where applicable ( #8884 )
...
* chore: use satisfies where applicable
* chore: remove unneeded eslint ignores
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-16 02:12:38 +00:00
iCrawl
52f56d3c2e
chore: deps
2022-12-01 21:01:19 +01:00
iCrawl
b89bd6f67c
chore(rest): release @discordjs/rest@1.4.0
2022-11-28 22:46:13 +01:00
Aura Román
8376e2dbcd
refactor: update makeURLSearchParams to accept readonly non-Records ( #8868 )
2022-11-28 09:20:27 +01:00
iCrawl
2f4bfedca1
chore: deps
2022-11-28 03:39:50 +01:00
Suneet Tipirneni
2127b32d26
feat: Add @discordjs/core ( #8736 )
...
* feat: add @discordjs/core
* chore: lint
* chore: add all gateway events
* chore: add the rest of the rest routes
* chore: cleanup gateway
* chore: rename gateway to client
* chore: rename gateway to client
* fix: don't spread unless we need to
* refactor: use classes and make requested changes
* chore: show shardId on emit
* chore: add interface for intrinsic props
* refactor: scope dispatch data instead of spreading
* chore: add utility for uploading files for messages and interactions
* feat: finish up form data handling
* chore: add readme
* chore: update api-extractor stuff
* chore: bump deps
* chore: make requested changes
* chore: make requested changes
* Update package.json
* chore: make requested changes
* fix: add missing interaction responses
* chore: make some requested changes
* chore: remove `return await`
* chore: use autoModeration instead of automod
* refactor: use snowflakes and -types results
* chore: sort imports, fix return type on editUserVoiceState
* chore: rename bots to users
* feat: add automod dispatch events
* refactor: move templates and members into guild
* fix: use users instead of bots in api class
* chore: imports
* chore: make requested changes
* fix: don't make files required on interaction replies
* fix: rename sendMessage to createMessage
* feat: add application command routes
* feat: add webhook.execute overloads and options to invites.get
* chore: use create prefixes
* chore: seperate interaction params
* chore: use Id
* chore: make requested changes
* chore: make requested changes
* chore: make requested changes
* chore: for -> from
* Apply suggestions from code review
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Update packages/core/README.md
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: make requested changes
* chore: update -types
* chore: bump vitest
* fix: sticker uploading
* fix: lockfile
* chore: make requested changes
* chore: make requested changes
* Update packages/core/src/api/applicationCommands.ts
Co-authored-by: Almeida <almeidx@pm.me >
* Apply suggestions from code review
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* Update packages/core/README.md
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: almeidx <almeidx@pm.me >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-27 21:23:13 +00:00
iCrawl
33a82b7bce
chore: next 13
2022-11-25 14:29:32 +01:00
iCrawl
256677b435
chore: deps
2022-11-23 09:34:56 +01:00
iCrawl
ee7d2fd4c8
chore: deps
2022-11-22 13:35:47 +01:00
DD
5152abf728
feat: new select menus ( #8793 )
...
* feat(builders): new select menus
* chore: better re-exporting of deprecated classes
* feat: new select menus
* chore: typings
* chore: add missing todo comment
* chore: finish updating tests
* chore: add runtime deprecation warnings
* chore: format deprecation warning
* feat(BaseInteraction): isAnySelectMenu
* chore: requested changes
* fix: deprecation comments
* chore: update @deprecated comments in typings
* chore: add tests for select menu type narrowing
* fix: bad auto imports
Co-authored-by: Julian Vennen <julian@aternos.org >
* fix: properly handle resolved members
* fix: collectors
* chore: suggested changes
Co-authored-by: Almeida <almeidx@pm.me >
* fix(typings): bad class extends
* feat(ChannelSelectMenuBuilder): validation
* chore: update todo comment
* refactor(ChannelSelectMenu): better handling of channel_types state
* chore: style nit
* chore: suggested nits
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Julian Vennen <julian@aternos.org >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-01 17:36:05 +00:00
ckohen
5a70057826
fix(SequentialHandler): downlevel ECONNRESET errors ( #8785 )
2022-10-31 19:03:38 +01:00
hackermon
68d5712dea
fix: make ratelimit timeout require event loop to be active ( #8779 )
...
* fix issue with ratelimits not working correctly
related to #8757
The ``ref`` option doesn't require the Node.js event loop to remain active when waiting for the timeout causing the program to end if there isn't an active gateway connection.
* Update packages/rest/src/lib/handlers/SequentialHandler.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Update packages/rest/src/lib/handlers/SequentialHandler.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2022-10-23 10:45:02 +00:00
iCrawl
b2658ce504
chore: update eslint-config-neon
2022-10-20 03:39:38 +02:00
iCrawl
3cc50b9e95
chore: deps
2022-10-20 03:11:41 +02:00
Jiralite
66097e0cb0
chore: Bump discord-api-types ( #8752 )
2022-10-14 23:20:26 +02:00
Almeida
d7a45a0567
chore: update api-extractor configurations ( #8738 )
2022-10-12 11:38:14 +02:00
iCrawl
e8f63617a2
chore: deps
2022-10-11 16:01:45 +02:00
iCrawl
9d8179c6a7
fix: pin @types/node version
...
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/62629#issuecomment-1273892057
2022-10-11 14:32:38 +02:00
iCrawl
698983b203
chore: deps
2022-10-11 04:09:02 +02: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
iCrawl
3ed668e539
chore: move website and guide out of packages
2022-10-10 01:22:48 +02:00
NaeHyeok Jeong
0a9d57b011
chore: change token in readme to constant ( #8688 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-09 21:27:46 +00:00
iCrawl
87ec3922a3
chore: update readmes
2022-10-08 17:55:01 +02:00
iCrawl
4bdd120e62
chore: deps
2022-10-08 16:55:34 +02:00
iCrawl
4a57b3947a
chore(rest): release @discordjs/rest@1.3.0
2022-10-08 16:36:35 +02:00
Jeroen Claassens
d923d0ab96
build: switch to esbuild-plugin-version-injector for injecting version strings ( #8723 )
2022-10-08 02:54:45 +02:00
iCrawl
62332c2720
chore: deps
2022-10-07 20:26:45 +02:00
Noel
0ac3e766bd
feat: web-components ( #8715 )
2022-10-07 06:56:13 +02:00
iCrawl
76a7021452
chore: deps
2022-10-07 02:49:44 +02:00
iCrawl
e745b95677
chore: deps
2022-10-05 20:57:39 +02:00
iCrawl
d9137c3658
chore: deps
2022-10-04 01:10:35 +02:00