Jiralite
c0f2dd7131
docs: Use stable tag ( #9343 )
...
docs: use stable tag
2023-04-10 14:55:51 +00:00
Almeida
bfee6c8d88
perf(RoleManager): dont call Role#position getter twice per role ( #9352 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-09 10:29:18 +00:00
Jiralite
b2eec5f9fc
docs: Remove JSONEncondable ( #9344 )
...
docs: remove `JSONEncondable`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-08 21:55:58 +00:00
Tetie
a7425c29c4
fix: fix external links ( #9313 )
...
* fix: fix external links
* fix: fix external links
* fix: link to correct classes
* fix: fix JSONEncodable link
* chore: fix select menu link
* fix: fix external links
* fix: link to correct classes
* fix: fix JSONEncodable link
* chore: fix select menu link
* fix: fix collection#sweep url
* fix: fix subpackages urls
* fix: fix discord.js docs url
* Update packages/util/docs/README.md
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-04-07 10:35:56 +00:00
Jaw0r3k
2792e48119
docs: describe private properties ( #8879 )
...
* feat: describe private properties
* Update packages/discord.js/src/structures/GuildMember.js
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
* Apply suggestions from code review
---------
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-01 23:21:53 +00:00
Jaw0r3k
384b4d10e8
docs: differ User#send ( #9251 )
...
* docs: differate user#send
* chore: format
* chore: remove some examples
* docs: add GuildMember#send example
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-01 23:17:54 +00:00
Jaw0r3k
d16114c526
docs: fix compare position example ( #9272 )
...
Update Role.js
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-01 22:37:18 +00:00
pkdev08
de1aac674a
fix: add support for new guild feature GUILD_WEB_PAGE_VANITY_URL ( #9219 )
...
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-01 22:34:07 +00:00
Jaw0r3k
79875658cf
fix: resolving string bitfield ( #9262 )
...
fix: resolving bitfield
Co-authored-by: space <spaceeec@yahoo.com >
2023-04-01 22:30:51 +00:00
Jiralite
ab3328a0e2
chore: Include discord.js in the user agent string ( #9267 )
...
* chore: apply user agent string
* fix: enforce even in custom option
* fix: tests
* refactor: simpler way
* docs: add type
* Update packages/discord.js/src/client/BaseClient.js
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* fix: prioritise `option` type check
* types: `static`
* feat: add runtime check
* docs: update default
* refactor: remove Bun
* Update packages/discord.js/src/client/BaseClient.js
Co-authored-by: Almeida <almeidx@pm.me >
* fix: extra whitespace issues
* refactor: `trimEnd()`
---------
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-01 22:26:44 +00:00
Jiralite
1864d37d36
fix(AutocompleteInteraction): Send name_localizations correctly ( #9238 )
...
fix(AutocompleteInteraction): send locale correctly
Co-authored-by: space <spaceeec@yahoo.com >
2023-04-01 22:19:23 +00:00
Tetie
f340f3b1fd
refactor: call GuildBanManager#create() directly ( #9263 )
...
refactor: call bans.create directly
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-01 22:09:01 +00:00
Jiralite
34bc36ac4b
feat(Guild): Add max_stage_video_channel_users ( #8422 )
...
feat(Guild): add `max_stage_video_channel_users`
2023-03-31 22:30:25 +00:00
Jiralite
984bd55b43
fix: Keep symbols in actions manager ( #9293 )
...
fix: keep symbols in actions manager
2023-03-29 17:27:23 +00:00
Jiralite
abd6ae9fc8
fix(ClientUser): No mutation on edit ( #9259 )
...
fix(ClientUser): no mutation on edit
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-25 12:59:22 +00:00
Jiralite
bc641fa936
docs(Role): Fix example for comparePositionTo() ( #9270 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-23 20:50:58 +00:00
Rodry
5f93dcce46
feat: add GuildBasedTextChannelTypes ( #9234 )
...
* feat: add GuildBasedTextChannelTypes
* docs(GuildTextBasedChannels): distinguish from non other
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com >
* fix: spread correct array
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
---------
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2023-03-22 22:03:44 +00:00
Erwan
22e880aaa0
fix(Message#editable): update editable check in threads locked ( #9216 )
...
* fix(Message#editable): update editable check in threads locked
* fix(Message#editable): add check in archived threads
* fix: check manage threads permission only if thread is locked
* fix: adding a full stop at the end of a sentence
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
---------
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2023-03-22 21:38:32 +00:00
Jiralite
e9a8eb323f
fix(ThreadManager): add members and conditionally include hasMore ( #9164 )
...
* fix(ThreadManager): conditionally include `hasMore`
* types: fix tests
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-22 19:24:09 +00:00
Jiralite
cc57563e73
fix(ThreadManager): Respect cache and force in fetching ( #9239 )
...
* fix(ThreadManager): Respect `cache` and `force` in fetching
* refactor: remove defaults
These are already defaulted down the line.
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-22 19:20:52 +00:00
Jiralite
519e163f8a
refactor(FetchThreadsOptions): Remove active ( #9241 )
...
* refactor(FetchThreadsOptions): remove `active`
* docs(FetchThreadsOptions): update description
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-22 19:17:47 +00:00
Tetie
bf507ab265
docs: add more examples ( #9252 )
...
* docs: add more examples
* fix: fix grammar and syntax
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com >
* chore: fine-tune examples
* chore: replace double quotes with singles
* fix: remove redundant example tag
* fix: fix timeout logging
* Update packages/discord.js/src/structures/GuildMember.js
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.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-03-22 19:09:41 +00:00
Jiralite
178c8dcfee
docs(FetchArchivedThreadOptions): before respects archive_timestamp, not creation timestamp ( #9240 )
...
docs(FetchArchivedThreadOptions): correct `before` description
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-22 19:01:17 +00:00
Jiralite
56cf138e02
docs: Update APISelectMenuComponent ( #9235 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-22 18:57:23 +00:00
n1ck_pro
51edba78bc
fix(TextBasedChannelTypes): add GuildStageVoice ( #9232 )
...
fix(TextBasedChannelTypes): add GuildStageVoice
2023-03-15 17:32:29 +00:00
Almeida
869153c3fd
refactor: compare with undefined directly ( #9191 )
...
* refactor: compare with `undefined` directly
* fix: lint
2023-03-12 20:24:22 +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
Rodry
4458a13925
feat(Collector): add lastCollectedTimestamp ( #9044 )
...
* feat(Collector): add lastCollectedTimestamp
* docs: mark props as nullable
Co-authored-by: Synbulat Biishev <syjalo.dev@gmail.com >
* refactor: assign property in constructor
---------
Co-authored-by: Synbulat Biishev <syjalo.dev@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2023-03-12 19:59:09 +00:00
André Paulo
f5ec1cada5
docs(MessageManager): add clarification to fetch messages ( #9222 )
...
* docs(MessageManager): add clarification to fetch messages
[Discord's documentation](https://discord.com/developers/docs/resources/channel#get-channel-messages ) mentions that you can only use before, after or around. This is not mentioned in D.JS documentation, and after some time trying to figure out why I was getting more messages than I should, decided to read the documentation.
* docs(MessageManager): remove mutually exclusive description
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-12 19:34:48 +00:00
Vlad Frangu
a63ac88fcc
fix(Actions): inject built data by using a symbol ( #9203 )
...
This fixes the hard crash encountered from message component interactions
where a `channel` property was added to them, causing hard crashes
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-09 11:05:52 +00:00
Synbulat Biishev
71a427f632
types: allow sending messages with SuppressNotifications flag ( #9177 )
2023-02-27 21:39:03 +01:00
Jaworek
664cccb270
docs: make interactionResponse as optional ( #9179 )
2023-02-27 21:38:03 +01:00
Jaworek
ffdb197f98
feat(StageChannel): add messages ( #9134 )
...
* feat(StageChannel): add messages
* fix: missing implements jsdoc
* Apply suggestions from code review
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com >
* Update packages/discord.js/src/util/Constants.js
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com >
* feat: use common class
* Apply suggestions from code review
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 >
* feat: add stage to text based channels + fix webhook.channel typings
* fix: some fixes
* Update packages/discord.js/src/structures/BaseGuildVoiceChannel.js
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* Update packages/discord.js/src/structures/VoiceChannel.js
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Update packages/discord.js/src/structures/interfaces/TextBasedChannel.js
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* Update packages/discord.js/src/structures/BaseGuildVoiceChannel.js
Co-authored-by: space <spaceeec@yahoo.com >
---------
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-25 15:03:18 +00:00
Jaworek
095bd77515
feat(AutoModerationActionExecution): add channel, user and member getters ( #9142 )
...
* feat(AutoModerationActionExecution): add channel prop
* feat(AutoModerationActionExecution): add user prop
* fix: sintax
* feat: add guildmember getter
* Apply suggestions from code review
Co-authored-by: Almeida <almeidx@pm.me >
---------
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-25 14:41:10 +00:00
Synbulat Biishev
e78b8ad3fb
fix(Message#deletable): add check for deletable message types ( #9168 )
...
* fix(Message#deletable): add check for deletable message types
* docs: update docs
* fix: add check for `AutoModerationAction` message
* style: better style
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-25 14:38:05 +00:00
Jiralite
c1000b86ed
feat(AutoModeration): Support custom_message ( #9171 )
...
* feat: initial commit
* docs: fix type
* docs: this is probably a better explanation
* docs: optional
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-25 14:34:48 +00:00
Sugden
a9495bd8f0
fix(Message): bulkDeletable permissions should be retrieved later for DMs ( #9146 )
...
* fix(Message): permissions check should be done later
the getter will error if used on a message originating from a DM
* refactor: remove unessercary chaining
2023-02-25 14:21:53 +00:00
Jiralite
4e0e125039
refactor(GuildMemberManager): Tidy up fetching guild members ( #8972 )
...
* refactor(GuildMemberManager): tidy up fetching guild members
* refactor: no destructure
* fix: throw `nonce` error correctly
* refactor: simplify `resolve()` with ternary
* refactor: prioritise `nonce` check
* fix: allow single user
* refactor: do not use `null`
This is not documented to request over the gateway.
* refactor: better name
* fix: extract correct property
2023-02-21 20:36:25 +00:00
Jiralite
765d5a3b2d
feat(ThreadMemberManager): Support pagination fetching ( #9035 )
...
* feat: initial commit
* fix: `query`
* fix: `GuildMember` for `member`
* types(ThreadMember): constructor types
* fix: send API properties correctly
Co-authored-by: Almeida <almeidx@pm.me >
* docs(FetchThreadMembersOptions): update `cache` description
* fix: retrieve from option
Co-authored-by: Almeida <almeidx@pm.me >
* fix: fix fetch many
* types(FetchThreadMembersOptions): add `withMember`
* types: stricter types
* types: infer possible guild member
* chore: reference member in getter
* types: remove `<false>`
* style: remove line
* chore: markdown
* types: remove `?`
* docs: remove irrelevant part
* fix: prevent crash
* refactor: make `member` `@private`
It will be confusing to have `guildMember` and `member`, specially since the former accounts for the latter.
---------
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 22:14:36 +00:00
MrMythicalYT
dc9924fb5f
feat(InteractionResponse): add new methods ( #9132 )
...
* feat(InteractionResponse): add new methods
* types: fix options parameter type
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
* Update packages/discord.js/src/structures/InteractionResponse.js
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
* Update packages/discord.js/src/structures/InteractionResponse.js
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* docs: add description for edit
---------
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.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-02-17 21:56:18 +00:00
Almeida
76b21162ac
feat(GuildMember): add flags ( #9087 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 21:09:49 +00:00
Jiralite
9156a2889c
fix(AutoModerationActionExecution): transform action ( #9111 )
...
* fix: transform action upon execution
* chore: move method into transformer
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 20:14:51 +00:00
Almeida
9439107a1d
feat(Client): guildAuditLogEntryCreate event ( #9058 )
...
* feat(Client): `guildAuditLogEntryCreate` event
* feat: add `targetId` and `executorId`
* types: `ApplicationCommand` fix
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 20:11:52 +00: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
Almeida
6f78e8285b
docs(chatInputApplicationCommandMention): parameters are not nullable ( #9091 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 19:54:13 +00:00
Almeida
f268e1d979
fix(MessageReaction): toJSON() infinite recursion ( #9070 )
...
* fix(MessageReaction): `toJSON()` infinite recursion
* fix: return type
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
---------
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 19:51:08 +00:00
Jiralite
1ba22f4c9e
feat: Add role subscription data ( #9025 )
...
* feat: add role subscription data
* docs: specify message type
* types: use interface
* docs: add word
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 19:47:08 +00:00
Jiralite
0b76ab4c40
fix(ThreadChannel): insert starter message from threads created in forum channels ( #9100 )
...
fix(ThreadChannel): insert starter message from forums
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 19:43:21 +00:00
Almeida
f70df910ed
refactor(BitField): reverse iterator/toArray responsibilities ( #9118 )
...
refactor(BitField): reverse iterator/toArray responsabilities
2023-02-17 19:40:10 +00:00
Aura Román
071516c352
fix(ApplicationRoleConnectionMetadata): export the class correctly ( #9076 )
2023-02-17 20:34:08 +01:00