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
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
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
iCrawl
aad82f088b
build: fix the messy dependency graph
2023-11-09 00:13:01 +01:00
iCrawl
e72b552ae2
chore: remaining deps and lighthouse removal
2023-11-08 18:20:16 +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
iCrawl
6b9f906b03
chore: properly rename folder
2023-11-08 00:44:39 +01:00
Almeida
95c0b1a59f
chore: pin @discordjs/collection version in discord.js ( #9929 )
2023-11-07 19:32:04 +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
Jaw0r3k
c2349d4be4
feat(cleanContent): add slash commands and emojis ( #9809 )
...
* feat(cleanContent): add missing commands and emojis
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
* fix: check for every possible name
* fix: use non capturing group
---------
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-05 18:36:16 +00:00
Aura Román
31d914e44b
fix(Webhook): do not call client.deleteWebhook in delete ( #9786 )
...
* fix(Webhook): do not call `client.deleteWebhook` in `delete`
Partially reverts #9777 which caused a regression (#9785 ) when using `WebhookClient`
* chore: add comment
Co-Authored-By: Souji <timoqueezle@gmail.com >
* fix: move `deleteWebhook` from `Client` to `BaseClient`
---------
Co-authored-by: Souji <timoqueezle@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-05 18:23:32 +00:00
Jiralite
b6c762cb84
feat(Emoji): Add imageURL() ( #9788 )
...
feat(Emoji): add `imageURL()`
2023-11-05 18:01:45 +00:00
dank
85a78f96d4
docs(Message): remove duplicated word 'of' in description ( #9923 )
...
fix(Message): remove duplicated word 'of' in description
This commit removes the secondary 'of' in the description for the Message structure. This doesn't change anything drastically in terms of the actual code as it's just a JSDoc comment.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-04 22:47:52 +00:00
Synbulat Biishev
85753a9d6f
fix(GuildManager#fetch): inject shard id ( #9921 )
2023-11-04 22:43:11 +00:00
Almeida
e80194e3fb
build: bump discord-api-types ( #9908 )
2023-10-23 13:09:35 +00:00
Renegade334
0e0b85b766
fix: prevent 'undefined' debug message on intentional shard closure ( #9846 )
...
* style: prevent 'undefined' debug message on intentional shard closure
addresses #9594
* refactor(WebSocketManager#destroy): improve debug messaging
cleaner stacktrace format
gracefully closing shards will display an appropriate debug `reason`
* style: unresumable debug messaging
---------
Co-authored-by: Almeida <almeidx@pm.me >
2023-10-21 13:53:41 +00:00
Jiralite
5b4a51945c
build: Bump dependencies ( #9899 )
...
build: bump dependencies
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-17 20:47:47 +00:00
Almeida
7671a836f4
feat: onboarding mode and edit method ( #9647 )
...
* feat: onboarding mode and edit method
* feat(guild): add `editOnboarding`
* fix: use discord-api-types
* types: make arrays readonly
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* fix: bring up to date
* docs: id is a snowflake
* fix: requested changes
* refactor: make most options optional
* refactor: provide GuildEmoji or Emoji instance
* revert: changes to Util
* fix: rebase leftovers
* fix: allow passing option id
* fix: requested changes
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-17 19:30:10 +00:00
Bartek Szopka
e38d03fbe7
docs(GuildMember): clarify display color ( #9891 )
2023-10-17 15:52:31 +00:00
Jiralite
8cfadb6953
docs: Remove duplicate APIEmoji ( #9880 )
...
* types: remove duplicate type definition
* chore: add `Emoji` to method
* types(resolvePartialEmoji): overload method
2023-10-10 13:44:21 +00:00
Jan Parisek
7422d9f172
types(Partials): add toString() method to supported Partials ( #9835 )
...
* types(Partials): add toString() method to supported Partials
- includes `PartialDMChannel`, `PartialGuildMember` and `PartialUser`
- does not include
- `PartialMessage`, since `<PartialMessage>.content` is always null
- `PartialMessageReaction`, since `MessageReaction` has no `toString()` method
- `PartialThreadMember`, since `ThreadMember` has no `toString()` method
* types(Partials): replace type of `toString()` methods with return type
* test(Partials): add tests
* types(Partialize): refactor Partialize
* test(PartialThreadMember): fix typo
* types(Partials): clean up unnecessary type overrides
* test(Partials): add tests for <Partials>.partial property
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-10-10 13:39:28 +00:00
Jiralite
1fe7247528
feat: Support new application properties and patch endpoint ( #9709 )
...
* feat: support new application endpoints
* chore: edit comment
* fix(ClientApplication): handle flags properly
* types: `readonly`
* chore: update route
* feat: add to core
* refactor(ClientApplication): add to user manager
* chore: remove comments
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-10 13:25:26 +00:00
Jiralite
44a3cbf39e
docs: Consolidate API types ( #9881 )
...
docs: deduplicate API types
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-10 13:22:02 +00:00
cobalt
699b232922
feat(BaseChannel): Add isThreadOnly() ( #9847 )
...
* add isThreadBased
* Update typings
* fix name
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-10 13:13:57 +00:00
Danial Raza
11f6955ed9
refactor: use proper variable names in callbacks ( #9840 )
...
* refactor: use proper variable names in callbacks
* refactor: change parameter names
* refactor: change remaining parameter names
* refactor: change remaining variable names
* refactor(GuildAuditLogsEntry): abstract reduce logic into a new function
* chore: undo unrelated changes
This undoes commit b2d93dce51 as it's unrelated
* refactor: more name changes
* chore: fix tests failing
* refactor: use option instead of opt
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-10-09 19:49:49 +00:00
Jiralite
2aa3250584
types(MessageEditOptions): Correct attachments type ( #9874 )
...
types(MessageEditOptions): fix `attachments` type
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-09 07:18:41 +00:00
Jiralite
e1edba17c4
build: Bump discord-api-types to 0.37.60 ( #9876 )
...
build: bump discord-api-types
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-07 16:17:12 +00:00
Vlad Frangu
0529b2af95
fix(Role): calculate position correctly when rawPositions are equal ( #9871 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-07 16:14:22 +00:00
Jiralite
cd987b592b
chore: No identifier base in development versions ( #9848 )
...
feat: no identifier base in development versions
2023-10-03 19:24:13 +00:00
Jiralite
3e516e6e9b
build: Bump discord-api-types to 0.37.59 ( #9854 )
...
build: bump discord-api-types
2023-10-03 20:06:22 +02:00
Jiralite
3c043d83a9
types(UserContextMenuCommandInteraction): Nullify targetMember ( #9844 )
...
types(UserContextMenuCommandInteraction): nullify `targetMember`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-09-29 16:14:36 +00:00
Almeida
931c3ed593
feat(StageInstanceManager): add guildScheduledEvent to create() ( #8885 )
...
* feat(StageInstanceManager): add `guildScheduledEvent` to `create()`
* fix: requested changes
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-09-28 18:27:15 +00:00
Jiralite
eaabcdfda6
docs: Remove FileOptions ( #9855 )
...
docs: remove `FileOptions`
2023-09-26 19:44:09 +00:00
Danial Raza
19ea0baa00
refactor(GuildAuditLogsEntry): abstract reduce logic into a new function ( #9845 )
2023-09-23 22:40:45 +00:00
Jiralite
1e5c14b741
feat: Support default_thread_rate_limit_per_user in channel creation ( #9273 )
...
feat: support `default_thread_rate_limit_per_user` in channel creation
2023-09-19 18:11:46 +00:00
Jiralite
571aedd58a
feat: Add media channels ( #9662 )
...
* feat: add media channels
* refactor: rename to `ThreadOnlyChannel`
* feat: support media channels more
* docs(ThreadOnlyChannel): update class description
* types: update references
* test: add more tests
* chore: update code
* refactor: `abstract`
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>
2023-09-18 07:35:47 +00:00
Jiralite
e02a59bbb6
refactor: Stickers are free (no more "premium" packs) ( #9791 )
...
refactor: stickers are free
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-09-18 07:29:47 +00:00
Jiralite
32d614ccd3
fix(GuildScheduledEvent): Use if...else pattern and handle partials ( #9802 )
...
fix: handle partial case
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-09-18 07:26:22 +00:00
Jiralite
4588e075c3
docs(DiscordjsErrorCodes): Deprecate unused properties ( #9790 )
...
docs(DiscordjsErrorCodes): deprecate unused properties
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-09-17 21:52:38 +00:00
Jiralite
b6a2441819
feat: Support widget image URL ( #9782 )
...
* feat: add widget image URL
* docs(GuildManager): correct parameter type
Co-authored-by: space <spaceeec@yahoo.com >
---------
Co-authored-by: space <spaceeec@yahoo.com >
2023-09-17 18:26:47 +00:00
Souji
310979808e
feat(GuildAuditLogsEntry): expose extra integrationType in relevant log types ( #9796 )
...
* feat(GuildAuditLogsEntry): expose ingrationType
* fix: not optional, if extra is present on these types
not necessary, as it is conditionally assigned
* fix: remove non-extra approach
* fix(types): string is not guaranteed to be the known enum
* fix: adapt type tests to new extra properties
* fix: include null in type, since extra is not always populated
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-09-17 09:47:46 +00:00