Qjuh
654f1a48b9
chore: remove ws dependency ( #10180 )
2024-03-31 14:09:38 +00:00
LeCarbonator
a1a3a95c94
feat: allow RestOrArray for command option builders ( #10175 )
...
* feat(builders): allow RestOrArray for command option builders
change ApplicationCommandOption methods to allow both rest and array params,
which previously wasn't consistent with other builders.
* chore: merge imports
---------
Co-authored-by: almeidx <github@almeidx.dev>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-03-24 18:12:05 +00:00
Danial Raza
ddc927fabd
fix(Embed): address equals
method issue ( #10152 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-03-24 14:45:56 +00:00
Danial Raza
f500ad6e2e
refactor(ThreadChannel): use single thread member endpoint ( #10136 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-03-24 14:41:29 +00:00
cobalt
6cc5fa28e6
fix(types): Export ReadonlyCollection
( #10184 )
2024-03-20 13:10:34 +00:00
iCrawl
93c174bc82
chore: fix test type import
2024-03-11 18:15:21 +01:00
iCrawl
0d4c26ba4c
chore: deps
2024-03-11 17:50:39 +01:00
Superchupu
a66fc65742
ci: enable npm provenance ( #10164 )
...
* chore: enable npm provenance
* chore: do the same for dev releases
* chore: actually enable it in normal releases
* chore: specify provenance in `package.json`
* chore: remove `publishConfig` from api-extractor-utils as it's `private`
2024-03-04 21:11:32 +00:00
Qjuh
a1010c61f5
types: fix duplicate props in merged interfaces ( #10160 )
...
types(discord.js): fix duplicate props in merged interfaces
2024-03-04 11:55:01 +01:00
iCrawl
0efd1bea46
fix: anchor link for events
2024-03-04 00:02:52 +01:00
iCrawl
79fbda3aac
feat: local and preview detection
2024-03-03 02:30:08 +01:00
iCrawl
3fd36f745f
ci: remove debug logging
2024-03-02 22:26:09 +01:00
iCrawl
e401841f63
ci: more logging
2024-03-02 22:14:02 +01:00
iCrawl
d6bf0fe43e
ci: logging for ci
2024-03-02 21:52:10 +01:00
iCrawl
59f4db3e1d
ci: update split upload
2024-03-02 21:19:13 +01:00
iCrawl
71bba547b6
refactor: docs ordering
2024-03-02 20:25:51 +01:00
Noel
18cce83d80
refactor: docs ( #10126 )
2024-02-29 04:37:52 +01:00
cobalt
0f9017ef95
fix(Faces): Escape backslash in Shrug
( #10156 )
...
* fix(Faces): Escape backslash in `Shrug`
* Update formatters.ts
* Update formatters.ts
* Update formatters.test.ts
2024-02-27 17:23:31 +00:00
Jiralite
efa3cac6f2
types: Update accessibility modifiers on constructors ( #10147 )
...
types: update accessibility modifiers on constructors
2024-02-23 12:51:13 +00:00
Synbulat Biishev
bfbd62e3e0
types(Builder.from): fix wrong types ( #10071 )
...
* types(Builder.from): fix wrong types
* test: add tests
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-23 11:54:41 +00:00
Almeida
c8bbdb70f2
fix(ReadonlyCollection): omit clear
method ( #10148 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-23 09:02:24 +00:00
Danial Raza
f67da74a5a
docs(ActionRow): fix deprecated message ( #10130 )
...
docs(ActionRow): fix deprecated link
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-23 00:37:43 +00:00
Almeida
bcd4c2cb23
types: use readonly array / collection types for user input ( #10045 )
...
* types: use readonly arrays
* chore: check on interface properties
* chore: ReadonlyCollection
* chore: exclude EventEmitter methods
* chore: resolve false positive
2024-02-23 00:29:06 +00:00
Jiralite
8c2ababa78
feat(guild): Add with_counts
to getting guilds ( #10143 )
...
* feat(guild): add get with counts
* refactor: simplify `query`
Co-authored-by: Almeida <almeidx@pm.me>
---------
Co-authored-by: Almeida <almeidx@pm.me>
2024-02-21 21:52:26 +00:00
Danial Raza
1d565443b0
refactor: improve structure validation with zod ( #10103 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-21 20:19:43 +00:00
Matt Rubin
906ade9cc5
refactor(oauth2): remove unnecessary dependency on 'node:url' ( #10141 )
...
This change fixes a runtime error when using '@discordjs/core/http-only' on Cloudflare Workers.
2024-02-21 20:15:26 +00:00
Almeida
c89c343b0a
types(InteractionReplyOptions): allow setting MessageFlags.SuppressNotifications
( #9199 )
2024-02-20 20:28:37 +00:00
Danial Raza
992aa67841
feat(MessageCreateOptions): add enforceNonce
( #10129 )
...
Co-authored-by: almeidx <github@almeidx.dev>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-17 18:31:14 +00:00
Danial Raza
e9d654772d
docs(ApplicationCommandPermissionsManager): remove incorrect comment ( #10123 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-17 18:03:33 +00:00
Suneet Tipirneni
543d61737e
feat: add support for using
keyword on discord.js Client
and WebSocketManager
( #10063 )
...
* feat: add support for `using` keyword on client
* fix: use async dispose
* feat: add support for web socket manager disposing
* fix: use interface for client
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-13 17:48:56 +00:00
Almeida
f48cb2a357
refactor: remove usage of mixin on error classes ( #10128 )
2024-02-13 11:54:56 +00:00
Qjuh
54106dbd81
types: replace Mixins with interface merging ( #10094 )
...
* types(TextBasedChannelMixin): refactor to user interface merging instead
* types(WebhookMixin): refactor to interface merging
* fix: ignore empty-interface tslint errors
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-11 19:26:20 +00:00
Qjuh
ce6b2b74bc
fix(docs): remove spaces in type parameter brackets ( #10127 )
...
* fix(docs): remove spaces in type parameter brackets
* fix: missing global flag
2024-02-11 18:59:03 +01:00
Qjuh
36db77f107
fix(docs): use ts types for inherited properties instead of jsdoc ( #10125 )
...
* fix(docs): use ts types for inherited properties instead of jsdoc
* fix(docs): remove spaces in type parameters
2024-02-10 21:36:25 +01:00
iCrawl
597340f288
docs: split docs.api.json into multiple json files
2024-02-06 17:24:18 +01:00
iCrawl
ae57d7facb
chore: deps
2024-02-06 01:53:30 +01:00
Jiralite
3755e66d41
fix(resolveColor): Address case for numbers ( #10115 )
...
fix(resolveColor): address case for numbers
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-05 22:11:41 +00:00
DD
c878b65ef5
refactor(WebSocketShard): payload sending ( #10098 )
...
* refactor(WebSocketShard): payload sending
* fix: adjust ratelimit state onopen
* fix: use >=
* chore: spelling
Co-authored-by: space <spaceeec@yahoo.com>
---------
Co-authored-by: space <spaceeec@yahoo.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-05 18:42:33 +00:00
Qjuh
ef83bc3e41
fix(api-extractor): link to enum types on inherited properties ( #10085 )
...
* fix: link to enum types on inherited properties
* fix: `undefined` in properties without access modifier
2024-02-04 21:06:03 +01:00
Qjuh
bc9b487eb1
fix(website): always link in TypeAlias ( #10105 )
...
* fix(website): always link in TypeAlias
* fix: use div instead span for DocParagraph
2024-02-04 00:39:00 +00:00
brynpttrsn
56943a72f4
fix(website): resolve linkTags in meta description ( #10088 )
...
* fix(website): resolve linkTags in summaries
* fix: case body as block
* fix: add discord-api-types support
* fix: remove urlDestination when undefined
* fix: breaks to if/else
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-03 22:10:28 +00:00
Almeida
42bc5d2c74
fix: invert deletable message types list ( #10093 )
...
* fix: invert deletable message types list
* docs: consistency
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-03 21:49:11 +00:00
Jiralite
d4472f85a5
refactor(resolveColor): Prioritise number type check ( #10116 )
...
* refactor(resolveColor): prioritise number type check
* refactor: prefer `!Number.isInteger()`
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-03 21:42:16 +00:00
Jiralite
b16647e6cc
fix(BaseClient): Fall back to userAgentAppendix
( #10113 )
...
fix(BaseClient): fall back to `Options.userAgentAppendix`
2024-02-02 16:32:18 +00:00
DD
278396e815
feat(REST): dynamic rate limit offsets ( #10099 )
...
* feat(REST): dynamic rate limit offsets
* chore: update tests
* chore: better doc comment
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
* fix: don't overlook globalReset
Co-authored-by: ckohen <chaikohen@gmail.com>
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: ckohen <chaikohen@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-01-30 09:29:42 +00:00
Jiralite
fc1f8ae374
refactor(Messages): Improve ColorConvert
error ( #10108 )
...
* feat(Messages): improve `ColorConvert` error
* style(Util): consistency
2024-01-30 07:17:45 +00:00
Almeida
bfc7bb5564
docs: convert comment into private remark ( #10097 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-01-22 18:45:49 +00:00
Qjuh
a0c83a254c
refactor: make builders types great again ( #10026 )
...
* refactor: make builders types great again
* fix: subcommands only type
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-01-22 15:02:34 +00:00
Jacob Morrison
fed7f341be
Skip sweeping if the guild is not available ( #10070 )
...
* Skip sweeping if the guild is not available
* Typo
* Fix formatting
* Fix lint
* Check if key in guild
* Bwck to guild a ailable
---------
Co-authored-by: Jake Morrison <jake.morrison@pinnsg.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-01-22 13:17:23 +00:00
Danial Raza
f48787eef1
docs(BaseInteraction): correct return type of member
( #10096 )
2024-01-22 11:40:13 +00:00
Almeida
33674be85e
feat(Webhook): allow setting appliedTags
on send()
( #10027 )
...
* feat(Webhook): allow setting `appliedTags` on `send()`
* docs: fix grammar
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-01-15 22:29:49 +00:00
James
7e12bee337
docs: remove utf-8-validate ( #10059 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-01-13 11:10:10 +00:00
codershiba
7b8e0debeb
refactor(formatters): Add support for object and name param in formatEmoji()
( #10076 )
...
* feat: add support for name param and object in `formatEmoji()`
* Update formatters.ts
* refactor: swap priority
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2024-01-13 11:02:41 +00:00
Jiralite
136c66c213
build: Bump versions ( #9986 )
...
fix: bump versions
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-12-30 18:03:00 +00:00
Danial Raza
ce84d3efee
fix(Gateway): Export interface ( #10060 )
...
* fix(types): export missing `Gateway` interface
* docs(Gateway): update link to `WebSocketManager`
2023-12-30 17:40:20 +00:00
Renegade334
4824ac154d
docs(ThreadMember): fix docblock async return type ( #10058 )
2023-12-28 12:24:30 +00:00
Almeida
0f1e02b3dd
fix(escape*): dont escape urls ( #9958 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-12-24 16:16:33 +00:00
Almeida
c4fcee3ef6
feat: premium application subscriptions ( #9907 )
...
* feat: premium application subscriptions
* types: readonly array
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
* fix: requested changes
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
* fix: core client types
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-12-24 15:49:58 +00:00
iCrawl
d869d9b3fe
style: fix up lint
2023-12-19 14:45:28 +01:00
iCrawl
171cb182ed
chore: deps
2023-12-19 14:33:04 +01:00
Jiralite
db56324624
types(DirectoryChannel): Ensure directory channels cannot contain user mentions when stringified ( #10043 )
...
* types(DirectoryChannel): `ChannelMention` `toString()`
* refactor: dynamic test
2023-12-18 22:30:24 +00:00
Almeida
a000df624c
chore: use double quotes for globs in scripts ( #10032 )
2023-12-18 18:14:15 +01:00
Danial Raza
461948c07d
fix: deprecate underscore
in favor of underline
( #10054 )
...
* fix: deprecate `underscore` in favor of `underline`
* refactor: use `underline` in `underscore`
Co-authored-by: Almeida <github@almeidx.dev>
---------
Co-authored-by: Almeida <github@almeidx.dev>
2023-12-17 20:44:54 +00:00
advaith
1acc9abae2
types: change Awaitable<void> to void ( #10017 )
...
Co-authored-by: Almeida <almeidx@pm.me>
2023-12-17 13:54:21 +00:00
Qjuh
adfd9cd3b3
refactor: use interfaces for AsyncEventEmitter event maps ( #10044 )
...
* refactor: use interfaces for AsyncEventEmitter event maps
* refactor: apply suggestions from code review and add tests
* refactor: better errors on missing dispatch types
2023-12-14 16:09:13 +00:00
Vlad Frangu
319ef9a70b
feat: use globally available WebSocket client in runtimes that have it ( #10042 )
2023-12-10 13:42:02 +00:00
Jiralite
8ace6face8
docs(CategoryCreateChannelOptions): Update reference ( #10031 )
...
docs(CategoryCreateChannelOptions): update reference
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-12-05 19:26:27 +00:00
Jiralite
e245a390e7
docs(resolvePartialEmoji): Add @internal
to all overloads ( #10033 )
...
docs: add `@internal`
2023-12-05 19:19:52 +00:00
Jiralite
2b8ac35e56
refactor: Document relevant types as @internal
( #9974 )
...
* refactor: mark data resolver as internal
* docs: mark relevant TypeScript symbols as `@internal`
* docs: extra additions
* style: prefer at end
* docs: add more `@internal`s
* test: update template code
2023-12-05 18:15:08 +00:00
Danial Raza
62e31cb9ee
fix(InteractionResponses): check if ephemeral message flag is used ( #10021 )
2023-12-04 20:16:26 +00:00
Ryan Munro
941642ad2f
fix: replace internal calls to Emoji#url ( #10025 )
2023-12-03 22:53:02 +00:00
Jiralite
54453b04e5
chore(uploadDocumentation): Expose full error ( #10012 )
...
chore: expose full error
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-12-02 12:50:53 +00:00
Danial Raza
b992019a78
docs(PermissionOverwriteManager): PermissionsFlagsBit
typo ( #10004 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2023-12-01 20:58:21 +00:00
Qjuh
17a6f5d3c9
types: omit unnecessary methods from <ContextMenuCommandInteraction>.options ( #10003 )
...
* types: omit getUser/Member/Message from ContextMenu interaction
* types: omit getAttachment and add tests
* fix: remove duplicate tests
2023-12-01 20:13:20 +00:00
Qjuh
a44ada661f
feat(website): show union members of type aliases ( #10001 )
...
* feat(website): show union members of type aliases
* refactor: suggestions from code review
* Apply suggestions from code review
---------
Co-authored-by: Noel <buechler.noel@outlook.com>
2023-12-01 02:19:07 +01:00
Renegade334
179af387d0
refactor(ThreadMemberManager): #remove accepts UserResolvable ( #10000 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2023-12-01 00:35:59 +00:00
Vlad Frangu
e412a22ceb
fix: export "ESM" types when discord.js is imported in ESM land ( #10009 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-30 23:19:22 +00:00
Jiralite
30f6a5fc56
types(InteractionWebhook): Add client
( #9997 )
...
types(InteractionWebhook): add `client`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-30 21:48:54 +00:00
Qjuh
bc2ecef73d
fix: cross package links again ( #9995 )
2023-11-24 12:10:16 +01:00
Qjuh
9fdbf0ad65
fix(website): doc links to other packages ( #9994 )
...
* fix(website): doc links to other packages
* fix: missing parameter
* Apply suggestions from code review
Co-authored-by: Almeida <almeidx@pm.me>
---------
Co-authored-by: Almeida <almeidx@pm.me>
2023-11-22 19:06:13 +01:00
Qjuh
57c414be21
fix(website): discord-api-types links, URL links and some minor doc issues ( #9990 )
...
* fix(website): correctly link to discord-api-types in link tags
* fix: url links and some minor doc issues
* fix: unneeded import
* fix: another unneccessary import
* fix: several linting issues
* refactor: simplify ApiItemLike interface
* refactor: apply suggestions
* fix: missing newline in docComment
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-22 08:26:43 +00:00
Jiralite
e9ff99101b
docs: Remove hyphen after @returns
( #9989 )
...
docs: remove hyphen after `@returns`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-21 17:16:51 +00:00
Qjuh
3d1c884926
refactor(website): remove unneccessary addPackageToModel function ( #9983 )
...
* types: fix links in @deprecated tags
* Merge branch 'main' into fix/deprecated-links-d.ts
* fix: searchIndices
* refactor: apply review suggestions
* refactor: remove addPackageToModel function
* fix: event links in search index
* fix: wrong overload condition
2023-11-21 10:06:13 +01:00
Rahul Mishra
ce0be392d8
fix(Bun): Fix typo for Bun template ( #9987 )
...
fix(create-discord-bot): Fix typo for Bun Template which caused install errors
2023-11-18 16:58:33 +00:00
Qjuh
802ec63a48
fix(website): cross package deprecated links ( #9981 )
...
* refactor: minify api.json by shortening keys
* fix: links to other packages
* refactor: get doclink from canonicalReference, not model
* fix: types
* fix: again
* fix: @link tags with alt texts
* fix(website): cross-package links in @deprecated
2023-11-18 11:45:32 +01:00
Qjuh
5a715706df
fix(website): search index generation ( #9980 )
...
* types: fix links in @deprecated tags
* Merge branch 'main' into fix/deprecated-links-d.ts
* fix: searchIndices
* refactor: apply review suggestions
2023-11-18 10:44:06 +00:00
Vlad Frangu
ae58053dc8
chore: release @discordjs/rest@2.2.0 & @discordjs/core@1.1.1 ( #9978 )
...
* chore(rest): release @discordjs/rest@2.2.0
* chore(core): release @discordjs/core@1.1.1
* chore: at this point might as well hand write
2023-11-18 00:01:40 +00:00
Noel
55be1c901a
ci: properly extract name from minified docs files
2023-11-17 23:37:14 +01:00
Qjuh
492f86af39
refactor: minify api.json by shortening keys ( #9971 )
...
* refactor: minify api.json by shortening keys
* fix: links to other packages
* refactor: get doclink from canonicalReference, not model
* fix: types
* fix: again
* fix: @link tags with alt texts
2023-11-17 23:26:48 +01:00
Qjuh
9868772b64
docs: fix links in @deprecated tags ( #9976 )
...
types: fix links in @deprecated tags
2023-11-17 20:44:39 +00:00
Vlad Frangu
6df233de14
feat: present x-ratelimit-scope for 429s hit ( #9973 )
...
* feat: present x-ratelimit-scope for 429s hit
* fix: get scope from headers for burst too
2023-11-16 10:49:05 +00:00
Qjuh
0aa7dc1b86
fix: replace Object< with Record< ( #9970 )
2023-11-15 20:20:21 +01:00
Qjuh
cab60142ff
fix: type mapping for docgen methods/props ( #9969 )
...
* fix: minify mainlib docs json
* fix: minify them all
* fix: type mapping for docgen methods/props
2023-11-14 20:54:29 +00:00
Qjuh
4b88306dcb
fix: minify mainlib docs json ( #9963 )
...
* fix: minify mainlib docs json
* fix: minify them all
2023-11-14 09:13:28 +01:00
iCrawl
00063912ee
fix: conflict resolution
2023-11-14 01:35:08 +01:00
iCrawl
8f432400d8
build: multi-config build and dep update
2023-11-14 01:26:22 +01:00
iCrawl
01c63d2e0f
refactor: switch to vercel blob for docs
2023-11-13 23:15:16 +01:00
iCrawl
1d2d01e1f5
ci: dont set the ci to failed on fail to upload docs
2023-11-13 21:31:46 +01:00
iCrawl
25d552b318
fix: missing on conflict clause
2023-11-13 21:09:43 +01:00
iCrawl
c4767bacde
refactor: switch to vercel pg
2023-11-13 21:07:01 +01:00
iCrawl
81a892e27f
fix: properly create index
2023-11-13 19:13:32 +01:00
Qjuh
7c935dc84b
feat: docs for mixin methods, examples ( #9960 )
2023-11-13 15:03:47 +01:00
Qjuh
b79351ba99
fix(website): misc improvements ( #9940 )
...
* refactor: use tokenRange for typeParams in heritage
* fix: correct type param replacement
* fix: ae config, link builtin in summary, `: | T` => `: T`, mainlib tsdoc
* fix: requested changes and tests
* chore: better deprecation messages and code cleanup
* fix: cleanup optional chainings
---------
Co-authored-by: Almeida <almeidx@pm.me>
2023-11-13 09:55:23 +01:00
iCrawl
b305194841
ci: revert deploying vercel with ci for now
2023-11-13 00:12:37 +01:00
Vlad Frangu
2550c7931d
chore(discord.js): release discord.js@14.14.1 ( #9957 )
...
* chore(discord.js): release discord.js@14.14.1
* chore: actual changelog
2023-11-12 22:06:14 +00:00
Almeida
40726db722
refactor: use formatters ( #9956 )
...
* refactor: use formatters
* fix: imports
* fix: imports pt.2
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-12 21:56:10 +00:00
Aura
1e4ef35436
docs: use preferred nullable syntax (?T
over T | null
) ( #9946 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-12 21:45:02 +00:00
Aura
4bc1dae36f
types: use wrapper utilities ( #9945 )
...
* types: use `Awaitable<T>` instead of `Promise<T> | T`
* types: use `JSONEncodable<T>` over raw definition
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-12 21:40:59 +00:00
Almeida
cc07a28f12
fix(Emoji): id
set as undefined
edge case ( #9953 )
2023-11-12 21:34:24 +00:00
Jiralite
f93abf7e35
fix(BaseClient): Default in objects properly ( #9952 )
...
fix(BaseClient): default in objects properly
2023-11-12 21:14:09 +00:00
Jiralite
f0ec70dfda
feat: bump package versions ( #9951 )
...
* feat: bump package versions
* chore(create-discord-bot): release create-discord-bot@0.2.3
---------
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2023-11-12 20:22:55 +00:00
Jaw0r3k
8a6045f600
fix: import picocolors as default ( #9949 )
2023-11-12 19:39:08 +00:00
Vlad Frangu
dbb92e5bc4
chore(releases): release party ( #9943 )
...
* chore(brokers): release @discordjs/brokers@0.2.3
* chore(collection): release @discordjs/collection@2.0.0
* chore(formatters): release @discordjs/formatters@0.4.0
* chore(util): release @discordjs/util@1.0.2
* chore(voice): release @discordjs/voice@0.16.1
* chore(builders): release @discordjs/builders@1.7.0
* chore(rest): release @discordjs/rest@2.1.0
* chore(proxy): release @discordjs/proxy@2.0.2
* chore(ws): release @discordjs/ws@1.0.2
* chore(core): release @discordjs/core@1.1.0
* chore(discord.js): release discord.js@14.14.0
* chore: small borked changelogs
* chore(create-discord-bot): release create-discord-bot@0.2.2
* chore: bork
* chore: fix wrong bump
* chore: git cliff pls
2023-11-12 18:11:58 +00: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
Jaw0r3k
4ff3ea4a1b
feat: default select menu values ( #9867 )
...
* feat: default select menu values
* feat(Message): support
* fix: fix crashes when an array is supplied and remove assertion
* docs(transformResolved): `BaseChannel` is the correct type
* refactor: prefer assignment
* chore: export function again
* fix(Util): fix circular dependency
* refactor(MentionableSelectMenu): clone in method
* docs: remove semicolon
* feat(MentionableSelectMenu): add `addDefaultValues()`
* refactor: reduce overhead
* types: adjust `channel`
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2023-11-12 16:32:41 +00:00
Jiralite
b5e23ec2ec
fix(Client): Ensure destroyed connections are not ready ( #9942 )
...
* fix(Client): ensure destroyed connections are not ready
* refactor(Client): prefer `!`
Co-authored-by: Aura <kyradiscord@gmail.com>
---------
Co-authored-by: Aura <kyradiscord@gmail.com>
2023-11-12 16:06:42 +00:00
Vlad Frangu
81e7866903
feat: expose Retry-After and sublimit timeouts in RatelimitData ( #9864 )
...
* feat: expose Retry-After and sublimit timeouts in RatelimitData
* chore: better docs?
* Apply suggestions from code review
Co-authored-by: ckohen <chaikohen@gmail.com>
---------
Co-authored-by: ckohen <chaikohen@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-12 14:36:12 +00:00
David Malchin
cf49f405b0
fix(REST): strip webhook tokens ( #9723 )
...
* fix(REST): strip webhook tokens
* fix(REST): implement requested changes
Co-authored-by: ckohen <chaikohen@gmail.com>
---------
Co-authored-by: ckohen <chaikohen@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-11 18:31:39 +00:00
iCrawl
2a25eeaf13
chore: remove nextjs patch
2023-11-11 19:19:14 +01:00
Qjuh
5a4c9755c3
feat(api-extractor): replace type parameters with their actual values on inherited members ( #9939 )
...
* refactor: use tokenRange for typeParams in heritage
* fix: correct type param replacement
2023-11-11 15:18:08 +01:00
Aura
5b0aa92c81
refactor(utils): remove mergeDefault
( #9938 )
...
* refactor(utils): remove `mergeDefault`
`BaseClient` and `ShardingManager` not longer mutate options
* refactor(ShardingManager): avoid reassigning method argument
2023-11-11 09:50:50 +00:00
Suneet Tipirneni
a87b267fba
fix: treat primitives as references instead of content ( #9932 )
...
* fix: treat primitives as references instead of content
* chore: add typeof keyword
* fix: add missing keywords
2023-11-09 00:37:50 +01:00
iCrawl
aad82f088b
build: fix the messy dependency graph
2023-11-09 00:13:01 +01:00
iCrawl
e5f3f3130e
fix: path generation for search
2023-11-08 19:01:32 +01:00
iCrawl
4a5e9fc1de
fix: pin source-map dependency and clean up website
2023-11-08 18:43:02 +01:00
iCrawl
e72b552ae2
chore: remaining deps and lighthouse removal
2023-11-08 18:20:16 +01:00
iCrawl
34d0224b68
refactor: display readme correctly
2023-11-08 14:49:28 +01:00
iCrawl
4575e49ea1
ci: deploy on vercel again
2023-11-08 13:27:04 +01:00
iCrawl
2bda883a0f
fix: handle older generated docs better
2023-11-08 12:30:32 +01:00
Almeida
fffe70a039
feat(Client): AsyncIterator-returning method for fetching members ( #9771 )
...
* feat(Client): AsyncIterator-returning method for fetching members
* fix: requested changes
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2023-11-08 10:43:15 +00:00
iCrawl
413d6d67c5
ci: separate website deploy
2023-11-08 10:38:44 +01:00
Qjuh
da455bceea
feat: mainlib docs on new website ( #9930 )
...
* fix(ExceptText): don't display import("d..-types/v10"). in return type
* Squashed 'packages/api-extractor-model/' content from commit 39ecb196c
git-subtree-dir: packages/api-extractor-model
git-subtree-split: 39ecb196ca210bdf84ba6c9cadb1bb93571849d7
* Squashed 'packages/api-extractor/' content from commit 341ad6c51
git-subtree-dir: packages/api-extractor
git-subtree-split: 341ad6c51b01656d4f73b74ad4bdb3095f9262c4
* feat(api-extractor): add api-extractor and -model
* fix: package.json docs script
* fix(SourcLink): use <> instead of function syntax
* fix: make packages private
* fix: rest params showing in docs, added labels
* fix: missed two files
* feat: merge docs.json from docgen and docs.api.json
* fix: cpy-cli & pnpm-lock
* fix: increase icon size
* fix: icon size again
* feat: run both docs on mainlib
* chore: website fixes
* fix: more website fixes
* fix: tests and dev database script
* chore: comment out old docs
* fix: increase max fetch cache
* fix: env should always be a string
* fix: try to reapply patches
* fix: remove prepare for docgen
* fix: temporary cosmetic fixes
* fix: horizontal scroll
* feat: generate index for new docs
---------
Co-authored-by: Noel <buechler.noel@outlook.com>
2023-11-08 10:16:54 +01:00
Neutron
defeee5eec
feat: return entries instead of values in toJSON method ( #9345 )
...
* feat(collection): return entries instead of values in toJSON method
* test: adjust test
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-08 01:28:27 +00:00
iCrawl
6b9f906b03
chore: properly rename folder
2023-11-08 00:44:39 +01:00
iCrawl
347df4e083
chore: typo
2023-11-08 00:38:35 +01:00
iCrawl
ee2afb0aae
chore: update engine field in packages & deploy website manually
2023-11-08 00:25:38 +01:00
Qjuh
5c0fad3b2d
build: package api-extractor and -model ( #9920 )
...
* fix(ExceptText): don't display import("d..-types/v10"). in return type
* Squashed 'packages/api-extractor-model/' content from commit 39ecb196c
git-subtree-dir: packages/api-extractor-model
git-subtree-split: 39ecb196ca210bdf84ba6c9cadb1bb93571849d7
* Squashed 'packages/api-extractor/' content from commit 341ad6c51
git-subtree-dir: packages/api-extractor
git-subtree-split: 341ad6c51b01656d4f73b74ad4bdb3095f9262c4
* feat(api-extractor): add api-extractor and -model
* fix: package.json docs script
* fix(SourcLink): use <> instead of function syntax
* fix: make packages private
* fix: rest params showing in docs, added labels
* fix: missed two files
* fix: cpy-cli & pnpm-lock
* fix: increase icon size
* fix: icon size again
2023-11-07 21:53:36 +01:00
Almeida
95c0b1a59f
chore: pin @discordjs/collection
version in discord.js ( #9929 )
2023-11-07 19:32:04 +01:00
Almeida
65966ae6ec
feat: align some methods with the Change By Copy proposal ( #9207 )
...
BREAKING CHANGE: The `sorted` method has been renamed to `toSorted`
2023-11-07 18:26:48 +00:00
Almeida
3b8df63a5a
feat: align some methods with the Set Methods proposal ( #8890 )
...
feat(collection): align/add methods with/from Set Methods proposal
BREAKING CHANGE: The `intersect` method has been renamed to `intersection`
BREAKING CHANGE: The `difference` method has been renamed to `symmetricDifference`
BREAKING CHANGE: The `subtract` method has been renamed to `difference`
2023-11-07 18:04:51 +00:00
iCrawl
c8227ca533
build(scripts): send correct data to meilisearch
2023-11-07 16:48:02 +01:00
iCrawl
1eee9dc257
build(scripts): use correct env vars
2023-11-07 16:44:08 +01:00
iCrawl
6a6c4bdcae
build: make sure to cache bust tsup config changes in all packages
2023-11-07 16:41:15 +01:00
iCrawl
c39c94374a
ci: fix building upload search indicies action
2023-11-07 16:27:07 +01:00
iCrawl
792840bae6
ci: update search with github actions
2023-11-07 16:22:17 +01:00
iCrawl
344a3f9344
chore: @types/node and unocss fix
2023-11-06 23:55:13 +01:00
iCrawl
6cd3adf030
chore: update deps
2023-11-06 21:38:45 +01: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
Jaw0r3k
ac645084f0
feat: support findLast
and reduceRight
methods ( #9573 )
...
* feat(collection): findLast and reverseRight
* chore(collection): performance and tests change
Co-authored-by: kyra <kyradiscord@gmail.com>
* remove unnecessary code
* Update packages/collection/src/collection.ts
Co-authored-by: Aura Román <kyradiscord@gmail.com>
* Apply suggestions from code review
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
---------
Co-authored-by: kyra <kyradiscord@gmail.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2023-11-05 18:49:53 +00:00
Kin
c051ed9427
feat: add guild member ( #9877 )
...
* feat: add guild member
* slightly change the description for the guildId and userId parameters in the addMember function
* fix description syntax
* Update packages/core/src/api/guild.ts
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com>
* add jsdoc for options param
* fix formatting
* add missed semicolon
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com>
* style: prettier
---------
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-05 18:42:17 +00:00