MovementGH
df40dcdb85
feat: add silent option to ShardingManager ( #9506 )
...
* feat: add silent option to ShardingManager
* chore: update ShardingManagerOptions type
* chore: update typings
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-07-07 23:32:29 +00:00
RedGuy12
53c17e00c0
feat(EmbedBuilder): add .length ( #8682 )
...
* feat(Embed): add `.length`
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* Move to mainlib
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* types: add typings
---------
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@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-07-07 21:53:19 +00:00
Almeida
dc73c938ff
feat: guild onboarding ( #9120 )
...
* feat: guild onboarding
* feat: types and /core method
* fix: route
* fix: make emoji name non-nullable
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-07 21:48:17 +00:00
Jiralite
a48d0efb09
types(MessageManager): Allow comparison of messages again ( #9612 )
...
* types(MessageManager): allow comparison of messages again
* feat: match TypeScript
* docs: update wording
* chore: revert breaking change
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-07 21:39:01 +00:00
GrapeColor
a73d54e43a
feat: add resume event in shard ( #9650 )
...
Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-07 21:34:42 +00:00
Rodrigo Leitão
cf8012c200
refactor(User): remove deprecation warning from tag ( #9660 )
...
* refactor(User): remove deprecation warning from tag
* fix: remove unnecessary declarations
* style: fix formatting issue
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-06 16:49:03 +00:00
Synbulat Biishev
0803eb562b
fix: everyone role members ( #9685 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-06 14:09:31 +00:00
Almeida
766be94b93
chore: bump discord-api-types to 0.37.45 ( #9654 )
2023-06-15 19:06:52 +00:00
RedGuy12
b61e4fb0dc
fix: awaitMessageComponent with MessageComponentInteractions ( #8598 )
...
* fix: `awaitMessageComponent` with `MessageComponentInteraction`s
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* Update packages/discord.js/src/structures/InteractionCollector.js
Co-authored-by: Almeida <almeidx@pm.me >
* types: revert unrelated changes
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* Remove unneeded truey check
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* chore: remove extra block
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* fix: `awaitMessageComponent` with `MessageComponentInteraction`s
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* fix: `awaitMessageComponent` with `MessageComponentInteraction`s
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
---------
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-14 18:25:53 +00:00
Jiralite
d64330a157
types(AutoModerationActionExecution): Add forum channels as a possible type in channel() ( #9623 )
...
types(AutoModerationActionExecution): type forum channels
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-14 18:14:16 +00:00
RedGuy12
a6dbe163dd
fix(ThreadManager): Fix internal crash upon conditionally resolving thread members ( #9648 )
...
* fix(ThreadManager): Fix crash
* chore: prettier
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-14 18:07:48 +00:00
Souji
73c2f8aa17
feat(presence): re-introduce image resolving for other platforms ( #9637 )
...
* spotify, youtube, twitch
* regression born from misunderstanding in 9a6e691
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-14 17:45:28 +00:00
GrapeColor
a873ec1e85
feat: Add message to send resume event to shard ( #9626 )
...
* fix(WebSocketManager): Fix not ready after reconnect
* fix(WebSocketManager): Move fixes from Ready to Resume
* fix: undo changes
* feat: Add message to send resume event to shard
---------
Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-14 11:43:23 +00:00
Ryan Munro
8f3bd38072
fix(User): check global name in equals ( #9631 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-13 19:17:21 +00:00
ckohen
8f014c65ef
chore: unpin rest, unbump node version req ( #9632 )
...
* chore: unpin rest, unbump node version req
* chore: update readmes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-13 19:08:35 +00:00
Rodrigo Leitão
1cab79f6fd
types(ModalSubmitFields): components is an array ( #9406 )
...
* types(ModalSubmitFields): components is an array
* types(ModalSubmitFields): make type coherent with docs
* refactor(ModalSubmitInteraction): remove undefined props
2023-06-13 20:58:50 +02:00
Jiralite
cd6986854f
types: Use readonly arrays and const type parameters in places ( #9641 )
...
* types: wrap arrays in `Readonly<>`
* refactor: prefer `readonly` syntax
Co-authored-by: Almeida <almeidx@pm.me >
* types: `const` type parameters
* test: add tests
* fix: fix more instances
---------
Co-authored-by: Almeida <almeidx@pm.me >
2023-06-12 18:00:45 +00:00
Jiralite
6c2242f4f9
types(BaseInteraction): appPermissions not null in guilds ( #9601 )
...
types(BaseInteraction): allow `appPermissions` only in guilds
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-09 10:02:22 +00:00
Mogyuchi
75308f2669
fix(WebSocketManager): await WebSocket destroy ( #9519 )
...
fix(WebSocketManager): await ws destroy
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-09 09:59:18 +00:00
Ryoh827
911e6eff75
docs(ClientOptions): change default value of sweepers in docs ( #9591 )
...
* docs(ClientOptions): change default value of sweepers in docs
* docs(ClientOptions): set sweeper defaults by type
* docs(ClientOptions): add 'this.' to DefaultSweeperSettings in docs
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-09 08:45:42 +00:00
Synbulat Biishev
1ab60f9da4
feat: support new username system ( #9512 )
...
* feat: support new username system
* docs(GuildMember#displayName): update
* fix(User#hasNewUsername): use User#discriminator
* feat(User#tag): add new username
* docs(User#tag): update
* docs(User#hasNewUsername): update
* docs: update
* feat(User#defaultAvatarURL): update
* feat: remove some newly added properties
* docs(User#discriminator): update
* docs(User#globalName): bad Copilot
* feat(User#displayName): return display name
* types(User#displayName): not a partial structure
* feat: add `calculateUserDefaultAvatarId` function
* docs(CND#defaultAvatar): update
* docs(CDN#defaultAvatar): update
* feat: change default avatar id to type
* feat: deprecate `User#tag`
* docs(CDN#defaultAvatar): update
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* docs(User): update
Co-authored-by: Rodrigo Leitão <38259440+ImRodry@users.noreply.github.com >
* feat: update
* typing: update
Co-authored-by: Jan <66554238+vaporoxx@users.noreply.github.com >
* feat: change the param type to `Snowflake`
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Rodrigo Leitão <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporoxx@users.noreply.github.com >
2023-06-08 18:16:42 +00:00
nopeless
24a61495b9
fix(Client): safe call for possibly null WebSocket ( #9600 )
...
fix(client): safe call for possibly null Websocket
2023-05-26 17:27:17 +00:00
Jiralite
e1b6eeed0e
docs(Client): Correct invite gateway permission checks ( #9597 )
...
docs: correct invite gateway permission checks
2023-05-26 08:18:48 +00:00
Jiralite
53aa24d418
fix(ThreadManager): Ensure fetchActive() only returns active threads in a channel ( #9568 )
...
fix(ThreadManager): revert breaking change
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-25 17:16:48 +00:00
iCrawl
9b06734445
chore: deps
2023-05-23 20:14:15 +02:00
Digital
9345d1b1ac
fix(LimitedCollection): allow items to be stored if keepOverLimit is true when maxSize is 0 ( #9534 )
...
Update LimitedCollection.js
Keep value if it matches the limit.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-22 08:11:47 +00:00
Idris
46167a79d7
refactor(GuildMember): make _roles property non-enumerable ( #9387 )
...
* refactor(GuildMember): make _roles a getter and roles a normal prop
* fix: revert changes
* fix: requested changes
* fix: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-18 10:13:19 +00:00
iCrawl
90e243d350
chore: deps
2023-05-16 00:14:14 +02:00
Jiralite
7196fe36e8
fix(AutocompleteInteraction): Prevent snake casing of locales ( #9565 )
...
* fix(AutocompleteInteraction): prevent snake casing of locales
* fix: avoid unnecessary overhead ops
Co-authored-by: Aura Román <kyradiscord@gmail.com >
---------
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2023-05-12 22:03:10 +00:00
iCrawl
7c8849fae5
chore: deps
2023-05-12 19:58:51 +02:00
Jiralite
d01e8aa8af
docs: Fix broken links to new documentation ( #9563 )
...
docs: fix broken links
2023-05-12 16:54:25 +00:00
iCrawl
9ddb3ff71d
chore: deps
2023-05-07 18:04:10 +02:00
Superchupu
7ce6bb99e9
chore(deps): pin @discordjs/ws version in discord.js ( #9533 )
...
* chore(discord.js): pin `@discordjs/ws` version
* chore: update lockfile
2023-05-07 16:40:19 +02:00
Synbulat Biishev
227232112d
feat(GuildAuditLogsEntry#extra): add missing channel property ( #9518 )
...
* feat(GuildAuditLogsEntry#extra): add missing `channel` property
* types(GuildAuditLogsEntryExtraField): update
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-05-07 00:55:02 +00:00
Jaw0r3k
37181ab232
perf(Role): improve members getter ( #9529 )
...
perf(Role): improve members
2023-05-06 23:37:43 +00:00
ckohen
cdaa0a36f5
refactor(rest): switch api to fetch-like and provide strategies ( #9416 )
...
BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global `fetch`
BREAKING CHANGE: The raw method of REST now returns a web compatible `Respone` object.
BREAKING CHANGE: The `parseResponse` utility method has been updated to operate on a web compatible `Response` object.
BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
BREAKING CHANGE: `DefaultRestOptions` used to contain a default `agent`, which is now set to `null` instead.
2023-05-06 21:09:19 +02:00
iCrawl
5bfcf93e29
chore(discord.js): release discord.js@14.11.0
2023-05-06 11:06:10 +02:00
DD
e6274681fd
fix(WebSocketManager): properly emit shard error events ( #9521 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-05 20:17:05 +00:00
Almeida
6b2c3fb9d0
feat(Guild): safety alerts channel and mention raid protection ( #8959 )
...
* feat(Guild): add safety alerts channel and mention raid protection
* docs: add missing tag
* fix: keep other properties in triggerMetadata
* docs(Guild): update example usage
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-05-05 18:39:58 +00:00
iCrawl
d8d21cf370
chore: cloudflare sponsorship
2023-05-05 20:29:10 +02:00
Aura Román
8e9a2b4630
perf(Role): linear speed position getter ( #9493 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-05-05 12:49:00 +00:00
iCrawl
d4f12e0a0c
chore: deps
2023-05-05 14:30:47 +02:00
Jiralite
d7b18f0681
types(StringSelectMenuComponentData): options is required ( #9515 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-05 12:28:39 +00:00
iCrawl
7e875f6919
chore: refactor workspace
2023-05-03 02:14:22 +02:00
Qjuh
c429763be8
fix(WebSocketManager): emit raw ws events again ( #9502 )
2023-05-02 19:49:55 +00:00
Jiralite
1b7981e469
docs(Client): Update Sapphire's snowflake utility links ( #9501 )
2023-05-02 12:56:38 +02:00
Aura Román
f2ad0762c5
refactor(GuildChannel): simplify constructor ( #9499 )
2023-05-02 10:32:47 +00:00
iCrawl
6d7f3b0f5c
chore(discord.js): release discord.js@14.10.2
2023-05-02 01:18:23 +02:00
Almeida
201b002ad4
fix: correct isJSONEncodable() import ( #9495 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-05-01 22:25:51 +00:00
Almeida
b327f4925f
fix(Client): generateInvite() scope validation ( #9492 )
2023-05-01 22:11:11 +00:00