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
ckohen
6e481f0a30
ci: create publish release workflow ( #9150 )
...
* ci: create publish release workflow
* test: fix tests for formatTag
* ci(publish-release): fix string concat
* ci: release action runs with tag as source
* ci(publish-release): no longer testing
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-21 20:15:39 +00:00
Almeida
fd0246ca4c
types: remove EscapeMarkdownOptions ( #9153 )
2023-02-21 20:11:33 +00:00
DD
9681f34877
fix(WebSocketShard): proper error bubbling ( #9119 )
...
* fix(WebSocketShard): proper error bubbling
* fix(WebSocketShard): proper success signaling from waitForEvent
* refactor(waitForEvent): better error bubbling behavior
* fix(WebSocketShard): still allow the first connect call to reject
* fix(WebSocketShard): handle potential once error in #send
* refactor(WebSocketShard): waitForEvent & bubbleWaitForEventError
* refactor: success signaling
* chore: bump async EE to allow overwriting the error event
2023-02-19 19:28:34 +00:00
DD
5c5a5832b9
refactor(WebSocketManager): passing in strategy ( #9122 )
...
* refactor(WebSocketManager): passing in strategy
* chore: update tests
* chore: requested nits
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-19 18:57:31 +00:00
Mohamed Ashraf
c6f9c50ba9
feat(core): Adds getWebhooks() function for the channel API and for the guild API ( #9043 )
...
* feat(core): Adds `getChannel()` for webhooks
* feat(core): add `getWebhooks()` function for the channel and the guild
* Update packages/core/src/api/guild.ts
Co-authored-by: Almeida <almeidx@pm.me >
* Update packages/core/src/api/channel.ts
Co-authored-by: Almeida <almeidx@pm.me >
* Update packages/core/src/api/channel.ts
Co-authored-by: Almeida <almeidx@pm.me >
* Update packages/core/src/api/guild.ts
Co-authored-by: Almeida <almeidx@pm.me >
* Update packages/core/src/api/guild.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Update packages/core/src/api/channel.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* sorting the types
---------
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: space <spaceeec@yahoo.com >
2023-02-17 23:35:44 +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
net-tech
da23cd5d69
typings(Attachment): make attachment private ( #8982 )
...
* typings(Attachment): remove attachment property
* remove from structures
* Revert "remove from structures"
This reverts commit 88acb8d276 .
* typings(attachment): make attachment private
---------
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 21:52:51 +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
SKINMAKER
4e0a89f58f
types: fix type of Attachment#name ( #9101 )
...
Co-authored-by: space <spaceeec@yahoo.com >
2023-02-17 20:33:08 +00:00
Almeida
483cbb3b2a
fix(oauth2): pass through body ( #9106 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 20:18:13 +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
Jiralite
d44a6f035c
chore: bump discord-api-types and undici ( #9140 )
...
* chore: update discord-api-types to 0.37.35
* fix: exclude stage channels for now
* chore: update undici
* chore: dedupe undici
2023-02-17 19:17:08 +00:00
Jiralite
405f9400e8
docs: no @type description and reveal info block ( #9097 )
2023-02-04 13:05:09 +00:00
Synbulat Biishev
8b70f497a1
docs: fix version export ( #9049 )
...
* docs: fix version export
* types: assert `[VI]{{inject}}[/VI]` as string
* types: typo
* Revert "types: typo"
This reverts commit ba983f02be .
* types: typo
I hate my local repo. It can't install deps with `--immutable` and a have weird error on `yarn test`, but the CI passes
2023-01-19 15:56:57 +00:00
Suneet Tipirneni
56ef3ad8a0
ci: update scripts for documentation changes ( #9055 )
...
* ci: update scripts for documentation changes
* refactor: use tsconfig files
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-17 19:15:01 +00:00
Cl00e9ment
13ce78af6e
refactor: Moved the escapeX functions from discord.js to @discord.js/formatters ( #8957 )
...
* refactor: moved escapeX funcs from discord.js to @discord.js/formatters
- moved escapeX functions from discord.js to @discord.js/formatters
- converted code from JS to TS (including JSDoc and TSDoc)
- made linter happy
- modified the escapeHeading's RegExp to pass the RegExp safety test
- escapeBulletedList now conserves the bullet style (- or *)
* fix: removed useless exports and eslint command
removed useless exports and eslint command
* fix(escapeX): emojis with underlines
porting the fix made in 2c4c5c23d6 into the refactorization PR
Co-authored-by: space <spaceeec@yahoo.com >
2023-01-13 16:21:25 +00:00
widepeepoclap
b803a9a899
fix: don't auth for interaction showModal() ( #9046 )
...
Co-authored-by: space <spaceeec@yahoo.com >
2023-01-13 16:07:06 +00:00
Almeida
6a9875da05
feat(Sticker): add support for gif stickers ( #9038 )
...
* feat(Sticker): add support for gif stickers
* chore: upgrade discord-api-types
* refactor: requested changes
2023-01-13 15:29:35 +00:00
Parbez
8c265b628d
ci: automated issue labeler ( #8873 )
...
* ci: automated issue labeler
* ci: remove comment
* Apply suggestions from code review
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* ci: update labeler on new package
* chore: add core
* ci: add feature req too
* fix: update date
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-01-13 10:28:14 +00:00
Superchupu
1831acaffb
chore: switch tsup config to typescript ( #9057 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-13 09:44:56 +00:00
DD
05a1cbfe54
fix: ws typo ( #9056 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-13 00:56:43 +00:00
Jiralite
1c871b5b57
refactor: Use deprecate() directly ( #9026 )
...
* refactor: just call `deprecate()`
* docs: prevent crash
* refactor: back to prototype deprecation
2023-01-12 20:38:31 +00:00
Suneet Tipirneni
f6506e99c4
feat(website): add support for source file links ( #9048 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2023-01-12 13:49:11 +01:00
iCrawl
a4f2f1b5a5
chore: deps
2023-01-12 10:36:48 +01:00
ckohen
859111f864
chore: init @discordjs/next ( #8988 )
...
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Isidro Casiano <isidroICP@outlook.com >
2023-01-12 10:27:07 +01:00
Almeida
2798ba1eb3
style: run prettier ( #9041 )
2023-01-12 09:23:02 +01:00
iCrawl
8dfd0037b5
chore: deps
2023-01-10 18:32:57 +01:00
DD
828a13b526
feat(ws): custom workers ( #9004 )
...
* feat(ws): custom workers
* chore: typo
* refactor(WebSocketShard): expose shard id
* chore: remove outdated readme comment
* chore: nits
* chore: remove unnecessary mutation
* feat: fancier resolution
* chore: remove unnecessary exports
* chore: apply suggestions
* refactor: use range errors
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2023-01-10 17:31:56 +00:00
Suneet Tipirneni
39c4de2dbc
refactor(website): extract layouts and use more server components ( #9027 )
...
Closes https://github.com/discordjs/discord.js/issues/8920
Closes https://github.com/discordjs/discord.js/issues/8997
2023-01-10 18:25:14 +01:00
Suneet Tipirneni
158db474b7
types: fix GuildsAPI#getMembers return type ( #9037 )
...
* types: fix GuildsAPI#getMembers return type
* chore: make requested changes
2023-01-10 16:03:54 +00:00
Almeida
7dad50ee9a
revert: fix(DMChannel): recipientId edge case ( #9013 )
...
Revert "fix(DMChannel): recipientId edge case (discordjs#8950)"
This reverts commit 7ce9909 .
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-10 09:59:49 +00:00
Jiralite
f3fe3ced62
docs(ThreadEditOptions): Move info tag back to invitable ( #9020 )
...
docs(ThreadEditOptions): move info tag to correct property
2023-01-10 09:53:38 +00:00
DD
ecb4281d1e
fix(RequestManager): inference of image/apng ( #9014 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-06 15:23:11 +00:00
DD
0ff67d8e7a
feat(ws): metrics ( #9005 )
...
* feat(WebSocketManager): fetch status
* feat(WebSocketShard): heartbeat event
* chore: ci
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-06 12:00:47 +00:00
DD
e8b7504352
chore: remove proxy dep hack ( #9006 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-06 11:56:59 +00:00
Jiralite
0076589ccc
feat(GuildAuditLogs): Support after ( #9011 )
...
* feat(GuildAuditLogs): support `after`
* refactor: remove variables
They were only being used once each.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-06 11:46:20 +00:00
Suneet Tipirneni
816aed478e
feat(core): implement some ws send events ( #8941 )
...
* feat(core): implement some ws send events
* fix: check guild id and add a timeout
* fix: only check for nonce
* chore: update readme
* chore: make requested changes
* chore: make methods consistent
* chore: fix readme example
* chore: move shard ID calculation to util
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-05 22:06:50 +00:00
Almeida
3407e1eea3
feat: add role subscriptions ( #8915 )
...
* feat: add role subscriptions
* docs: casing
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-01-04 00:39:31 +00:00
Jiralite
7dec892218
types: Allow builders to set channel types in discord.js ( #8990 )
...
types: allow builders to set channel types
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-02 15:24:10 +00:00
iLxlo_
6d7a143667
docs: Fix a typo in the MentionableSelectMenuInteraction link ( #9000 )
2023-01-02 16:18:07 +01:00