Denis Cristea
c36728a814
fix(Client): never pass token in ws constructor ( #10544 )
...
* fix(Client): never pass token in ws constructor
* chore: don't reassign parameter
Co-authored-by: Almeida <github@almeidx.dev >
---------
Co-authored-by: Almeida <github@almeidx.dev >
2024-10-09 10:49:27 +00:00
Naiyar
c8ef899a68
refactor(NewsChannel)!: rename NewsChannel to AnnouncementChannel ( #10532 )
...
BREAKING CHANGE: The `NewsChannel` class was renamed to `AnnouncementChannel`, in line with the type name change
2024-10-09 12:35:12 +03:00
Qjuh
a65c762950
refactor!: fully integrate /ws into mainlib ( #10420 )
...
BREAKING CHANGE: `Client#ws` is now a `@discordjs/ws#WebSocketManager`
BREAKING CHANGE: `WebSocketManager` and `WebSocketShard` are now re-exports from `@discordjs/ws`
BREAKING CHANGE: Removed the `WebSocketShardEvents` enum
BREAKING CHANGE: Renamed the `Client#ready` event to `Client#clientReady` event to not confuse it with the gateway `READY` event
BREAKING CHANGE: Added `Client#ping` to replace the old `WebSocketManager#ping`
BREAKING CHANGE: Removed the `Shard#reconnecting` event which wasn’t emitted anymore since 14.8.0 anyway
BREAKING CHANGE: Removed `ShardClientUtil#ids` and `ShardClientUtil#count` in favor of `Client#ws#getShardIds()` and `Client#ws#getShardCount()`
BREAKING CHANGE: `ClientUser#setPresence()` and `ClientPresence#set()` now return a Promise which resolves when the gateway call was sent successfully
BREAKING CHANGE: Removed `Guild#shard` as `WebSocketShard`s are now handled by `@discordjs/ws`
BREAKING CHANGE: Removed the following deprecated `Client` events: `raw`, `shardDisconnect`, `shardError`, `shardReady`, `shardReconnecting`, `shardResume` in favor of events from `@discordjs/ws#WebSocketManager`
BREAKING CHANGE: Removed `ClientOptions#shards` and `ClientOptions#shardCount` in favor of `ClientOptions#ws#shardIds` and `ClientOptions#ws#shardCount`
2024-10-08 22:41:25 +01:00
Denis Cristea
8ab4124ef9
feat: implement zod-validation-error ( #10534 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-10-06 14:43:06 +00:00
pat
24128a3c45
test: replace jest with vitest ( #10472 )
...
* chore: vitest config
* feat: vitest
* fix: do not actually create ws
* chore: config
* chore: lockfile
* chore: revert downgrade, up node
* chore: package - 'git add -A'
* chore: delete mock-socket
* chore: delete mock-socket
* fix: lockfile
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-10-06 14:26:53 +00:00
Amgelo563
bb04e09f8b
types: remove newMessage partial on messageUpdate event typing ( #10526 )
...
* types: remove newMessage partial on messageUpdate event typing
* types: omit partial group DM for newMessage on messageUpdate
* types: omit partial group DM for oldMessage on messageUpdate
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-10-06 14:23:44 +00:00
Danial Raza
04df3c4130
feat: add linked roles formatters ( #10461 )
...
* feat: add linked roles formatters
* docs: requested changes
Co-authored-by: Almeida <github@almeidx.dev >
* docs: remove locale
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-10-06 14:19:50 +00:00
Denis Cristea
12e510671b
chore!: remove all deprecated features/props ( #10421 )
...
BREAKING CHANGE: Removed `Client#fetchPremiumStickerPacks` method
BREAKING CHANGE: Removed `Client#webhookUpdate` event
BREAKING CHANGE: Removed various error codes
BREAKING CHANGE: Removed `Formatters` namespace
BREAKING CHANGE: Removed `InviteStageInstance` class
BREAKING CHANGE: Removed `Invite#stageInstance` property
BREAKING CHANGE: Removed `StageInstance#discoverable_disabled` property
BREAKING CHANGE: Removed `SelectMenuBuilder` alias
BREAKING CHANGE: Removed `SelectMenuComponent` alias
BREAKING CHANGE: Removed `SelectMenuInteraction` alias
BREAKING CHANGE: Removed `SelectMenuOptionBuilder` alias
BREAKING CHANGE: Removed `BaseInteraction#isSelectMenu` alias
BREAKING CHANGE: Removed `deleteMessageDays` option from `GuildBanManager#create`
BREAKING CHANGE: Removed `ActionRow#from` method
BREAKING CHANGE: Removed `Emoji#url` getter
BREAKING CHANGE: Removed `TeamMember#permissions` property
BREAKING CHANGE: Removed `User#avatarDecoration` property
BREAKING CHANGE: Removed `InteractionResponses#sendPremiumRequired` method
BREAKING CHANGE: Removed `DeletableMessageTypes` constant
2024-10-04 14:17:34 +03:00
Superchupu
c1b849fa5a
docs(discord.js): remove utf-8-validate ( #10531 )
2024-10-03 18:10:46 +00:00
René
b339a7cb08
fix(ThreadMember): remove audit log reason parameter ( #10023 )
...
fix(ThreadMember): remove audit log reason
Co-authored-by: René <Renegade334@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-10-01 16:33:25 +00:00
MrMythicalYT
05541d8288
fix(User): remove fetchFlags() ( #8755 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-10-01 16:29:31 +00:00
Rodrigo Leitão
493a079fdf
refactor(CommandInteractionOptionResolver): remove getFull from getFocused() ( #9789 )
...
* refactor(CommandInteractionOptionResolver): remove getFull from getFocused()
* docs: update return type
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-10-01 16:21:42 +00:00
Denis Cristea
ab32f26cbb
refactor: builders ( #10448 )
...
BREAKING CHANGE: formatters export removed (prev. deprecated)
BREAKING CHANGE: `SelectMenuBuilder` and `SelectMenuOptionBuilder` have been removed (prev. deprecated)
BREAKING CHANGE: `EmbedBuilder` no longer takes camalCase options
BREAKING CHANGE: `ActionRowBuilder` now has specialized `[add/set]X` methods as opposed to the current `[add/set]Components`
BREAKING CHANGE: Removed `equals` methods
BREAKING CHANGE: Sapphire -> zod for validation
BREAKING CHANGE: Removed the ability to pass `null`/`undefined` to clear fields, use `clearX()` instead
BREAKING CHANGE: Renamed all "slash command" symbols to instead use "chat input command"
BREAKING CHANGE: Removed `ContextMenuCommandBuilder` in favor of `MessageCommandBuilder` and `UserCommandBuilder`
BREAKING CHANGE: Removed support for passing the "string key"s of enums
BREAKING CHANGE: Removed `Button` class in favor for specialized classes depending on the style
BREAKING CHANGE: Removed nested `addX` styled-methods in favor of plural `addXs`
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Almeida <github@almeidx.dev >
2024-10-01 19:11:56 +03:00
Moebits
c633d5c7f6
feat: Add ApplicationEmoji to EmojiResolvable and MessageReaction#emoji ( #10477 )
...
* types: add ApplicationEmoji to EmojiResolvable
* typings: add ApplicationEmoji to MessageReaction#emoji
* removed ApplicationEmoji from MessageReaction
* update BaseGuildEmojiManager
* chore: lint error
* feat: add ApplicationEmoji to MessageReaction#emoji getter
* refactor: check application emojis first
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-10-01 12:33:40 +00:00
Qjuh
b20346f430
chore: unpin discord-api-types ( #10524 )
...
* chore: unpin discord-api-types
* chore: bump discord-api-types
2024-10-01 10:07:58 +00:00
Almeida
9aa3b635ef
feat: recurring scheduled events ( #10447 )
...
* feat: recurring scheduled events
* fix: nullable on patch
* docs: remove unnecessary parenthesis
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
---------
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2024-09-29 18:41:57 +00:00
TÆMBØ
e1012cc54a
feat: message forwarding ( #10464 )
...
* feat: message forwarding
* fix: redundant usage
* feat: add additional snapshot fields
* refactor: use collection to store snapshots
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-09-29 11:35:40 +00:00
Vlad Frangu
0873f9a4c3
chore(discord.js): release discord.js@14.16.3 ( #10522 )
14.16.3
2024-09-29 11:20:02 +00:00
Ryan Munro
6c77fee41b
fix(BaseInteraction): add missing props ( #10517 )
...
* fix(AutocompleteInteraction): add missing authorizingIntegrationOwners
* fix(AutocompleteInteraction): add missing context
* fix(AutocompleteInteraction): types
* fix: move to BaseInteraction
* fix: remove props from CommandInteraction
* Update packages/discord.js/typings/index.d.ts
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
2024-09-23 14:13:14 +00:00
Danial Raza
cda8d88ad5
build: bump discord-api-types to 0.37.100 ( #10488 )
...
* build: bump discord-api-types to 0.37.100
* build: fix lockfile
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-09-17 09:15:00 +00:00
TÆMBØ
665bf1486a
types(MessageEditOptions): Omit poll ( #10509 )
...
fix: creating poll from message edit
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-09-17 08:18:08 +00:00
Qjuh
99136d6be8
fix(website): nullable parameters on events ( #10510 )
2024-09-15 19:27:43 +00:00
ckohen
896dc8b21e
chore: update cliff configs ( #10471 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-09-15 17:58:21 +00:00
Qjuh
651f2d036a
feat: show default values in docs ( #10465 )
2024-09-15 19:49:31 +02:00
Qjuh
2adee06b6e
fix: GuildChannel#guildId not being patched to undefined ( #10505 )
...
* fix: `GuildChannel#guildId` not being patched to `undefined`
* fix: guildId to guild_id check
2024-09-14 17:14:03 +00:00
Almeida
495bc60345
fix: docs search ( #10501 )
2024-09-12 23:24:07 +02:00
Vlad Frangu
d9d578391a
chore(discord.js): release discord.js@14.16.2 ( #10500 )
14.16.2
2024-09-12 11:18:05 +03:00
Ryan Munro
3c74aa2049
fix(ApplicationCommand): incorrect comparison in equals method ( #10497 )
2024-09-11 07:40:54 +00:00
Danial Raza
799fa54fa4
docs: update discord documentation links ( #10484 )
2024-09-10 19:23:53 +00:00
Denis Cristea
8a74f144ac
chore: pin builders in discord.js ( #10490 )
2024-09-06 13:12:19 +00:00
Vlad Frangu
dea68400a3
fix: type guard for sendable text-based channels ( #10482 )
...
* fix: type-guard for sendable text-based channels
* chore: suggested change
* Update packages/discord.js/typings/index.test-d.ts
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* fix: make isSendable strictly check for `.send`
* fix: tests
---------
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-09-06 07:16:38 +00:00
Danial Raza
c13f18e90e
docs(Message): mark interaction as deprecated ( #10481 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-09-04 22:22:10 +00:00
Qjuh
aff772c7aa
types: export GroupDM helper type ( #10478 )
...
* types: export GroupDM helper type
* refactor: rename type
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-09-04 22:16:54 +00:00
Danial Raza
4594896b54
docs(ApplicationEmojiManager): fix fetch example ( #10480 )
...
* docs(ApplicationEmojiManager): fix fetch example
* docs: requested changes
2024-09-03 22:20:01 +00:00
Vlad Frangu
a11ff75631
chore(discord.js): release discord.js@14.16.1 ( #10476 )
14.16.1
2024-09-03 00:24:53 +03:00
Vlad Frangu
9257a09abb
fix(Message): reacting returning undefined ( #10475 )
2024-09-03 00:20:16 +03:00
space
4810f7c863
fix(Transformers): pass client to recursive call ( #10474 )
2024-09-02 21:12:28 +00:00
Vlad Frangu
18ce10a9af
chore: bump major releases to node 20
@discordjs/brokers@1.0.0
@discordjs/builders@1.9.0
@discordjs/collection@2.1.1
@discordjs/core@2.0.0
@discordjs/formatters@0.5.0
@discordjs/proxy@2.1.1
@discordjs/rest@2.4.0
@discordjs/util@1.1.1
@discordjs/ws@2.0.0
14.16.0
create-discord-bot@0.3.1
2024-09-02 22:26:25 +03:00
Vlad Frangu
ed1c1737df
chore: everyone goes to node 18+
2024-09-02 22:26:25 +03:00
Vlad Frangu
90ed51e06e
chore: url fixing
2024-09-02 22:26:25 +03:00
Vlad Frangu
641a980b60
chore(discord.js): release discord.js@14.16.0
2024-09-02 22:26:25 +03:00
Vlad Frangu
1f2047ff90
chore(create-discord-app): update discord.js version for templates
2024-09-02 22:26:25 +03:00
Vlad Frangu
23636a9a2f
chore: add versions mentions for versions with meta changes only
2024-09-02 22:26:25 +03:00
Vlad Frangu
6a6bc63973
chore: requested cleanup
2024-09-02 22:26:25 +03:00
Vlad Frangu
b715b7d653
chore: cleanup 2
2024-09-02 22:26:25 +03:00
Vlad Frangu
2cb2d81b82
chore: cleanup changelogs
2024-09-02 22:26:25 +03:00
Vlad Frangu
0411ce268e
chore(create-discord-bot): fix changelog link
2024-09-02 22:26:25 +03:00
Vlad Frangu
584bd6f2fc
chore(core): release @discordjs/core@2.0.0
2024-09-02 22:26:25 +03:00
Vlad Frangu
c887388db6
chore(ws): release @discordjs/ws@2.0.0
2024-09-02 22:26:25 +03:00
Vlad Frangu
4059432c78
chore(proxy): release @discordjs/proxy@2.1.1
2024-09-02 22:26:25 +03:00