Almeida
1b1ae2f0cb
feat: use get sticker pack endpoint ( #10445 )
...
* feat: use get sticker pack endpoint
* fix: mark fetchPack as async
* style: resolve eslint warning
---------
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-08-20 10:13:26 +00:00
Naiyar
9907ff915e
feat(VoiceState): add methods for fetching voice state ( #10442 )
...
* feat(VoiceState): add methods for fetching voice state
* fix: links to new methods
* chore: remove unused import
* chore: use member id
* chore: requested changes
* chore: '@me' as fetch param
* chore: add ediUserVoiceState return type
* refactor: redirect function calls to VoiceAPI
---------
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-08-20 10:02:17 +00:00
Danial Raza
5d92525596
feat: application emojis ( #10399 )
...
* feat: application emojis
* chore: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-08-20 09:33:25 +00:00
Lars_und_so
69adc6f4b9
feat(OAuth2API): add revokeToken method ( #10440 )
...
* feat(OAuth2API): add 'revokeToken' method
* Buffer => btoa
Co-authored-by: Almeida <github@almeidx.dev >
* Response is empty, dont return
Co-authored-by: Almeida <github@almeidx.dev >
* Redundant override
Co-authored-by: Almeida <github@almeidx.dev >
* chore: fmt
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-08-20 09:02:53 +00:00
DD
bf6761a44a
refactor(ws): event layout ( #10376 )
...
* refactor(ws): event layout
BREAKING CHANGE: All events now emit shard id as its own param
* fix: worker event forwarding
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-07-24 18:40:34 +00:00
Jiralite
4f59b740d0
feat: Premium buttons ( #10353 )
...
* feat: premium buttons
* docs: deprecation string
* feat(InteractionResponses): add deprecation message
* feat(builders): add tests
* chore: remove @ts-expect-errors
* test: update method name
* refactor(formatters): stricter types
* docs: deprecate method in typings
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-07-04 18:57:35 +00:00
Amir Farzamnia
7f60a8fc5d
docs(stageInstances): Correct reference for stage instance creation ( #10333 )
...
Update stageInstances.ts
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-07 15:11:23 +00:00
Dylan Yang
9b07036d70
fix(OAuth2API): enable token exchange without token ( #10312 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-02 13:21:48 +00:00
Danial Raza
b36ec98382
feat: add reason to followAnnouncements method ( #10275 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-05-19 09:58:26 +00:00
Almeida
997887069a
feat: consumable entitlements ( #10235 )
...
* feat: consumable entitlements
* feat: move logic to EntitlementManager
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-05-01 17:57:25 +00:00
Almeida
a1aeaeb9d8
feat: polls ( #10185 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-04-30 23:21:07 +00:00
Almeida
c2e68ceaad
build: bump discord-api-types to 0.37.82 ( #10226 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-04-27 17:16:20 +00:00
Almeida
bfc3b100da
feat(GuildsAPI): bulk ban users ( #10202 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-04-06 07:24:16 +00:00
avoidaway
26af3868a5
docs: remove duplicated words ( #10178 )
...
chore: remove repetitive words
Signed-off-by: avoidaway <cmoman@126.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-04-04 19:29:34 +00:00
Jiralite
8c2ababa78
feat(guild): Add with_counts to getting guilds ( #10143 )
...
* feat(guild): add get with counts
* refactor: simplify `query`
Co-authored-by: Almeida <almeidx@pm.me >
---------
Co-authored-by: Almeida <almeidx@pm.me >
2024-02-21 21:52:26 +00:00
Matt Rubin
906ade9cc5
refactor(oauth2): remove unnecessary dependency on 'node:url' ( #10141 )
...
This change fixes a runtime error when using '@discordjs/core/http-only' on Cloudflare Workers.
2024-02-21 20:15:26 +00:00
Danial Raza
ce84d3efee
fix(Gateway): Export interface ( #10060 )
...
* fix(types): export missing `Gateway` interface
* docs(Gateway): update link to `WebSocketManager`
2023-12-30 17:40:20 +00:00
Almeida
c4fcee3ef6
feat: premium application subscriptions ( #9907 )
...
* feat: premium application subscriptions
* types: readonly array
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* fix: requested changes
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* fix: core client types
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-12-24 15:49:58 +00:00
Qjuh
adfd9cd3b3
refactor: use interfaces for AsyncEventEmitter event maps ( #10044 )
...
* refactor: use interfaces for AsyncEventEmitter event maps
* refactor: apply suggestions from code review and add tests
* refactor: better errors on missing dispatch types
2023-12-14 16:09:13 +00:00
iCrawl
8f432400d8
build: multi-config build and dep update
2023-11-14 01:26:22 +01: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
Almeida
fffe70a039
feat(Client): AsyncIterator-returning method for fetching members ( #9771 )
...
* feat(Client): AsyncIterator-returning method for fetching members
* fix: requested changes
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-11-08 10:43:15 +00:00
Kin
c051ed9427
feat: add guild member ( #9877 )
...
* feat: add guild member
* slightly change the description for the guildId and userId parameters in the addMember function
* fix description syntax
* Update packages/core/src/api/guild.ts
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com >
* add jsdoc for options param
* fix formatting
* add missed semicolon
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com >
* style: prettier
---------
Co-authored-by: Jaw0r3k <jaworekwiadomosci@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-11-05 18:42:17 +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
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
332b624aed
docs(stickers): Reveal link in the website ( #9870 )
...
docs(stickers): reveal link
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-10 13:19:52 +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
23a6424261
docs(ApplicationsAPI): Fix getCurrent() options description ( #9816 )
...
docs(ApplicationsAPI): fix `getCurrent()` options description
2023-08-31 18:21:52 +00:00
Jiralite
50106c77db
feat: Implement GET current application ( #9797 )
...
* feat: implement current application route
* refactor: pluralisation
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
---------
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-08-25 09:33:33 +00:00
iCrawl
5d7c59c301
chore: deps
2023-08-22 00:30:08 +02:00
David Malchin
bc83cabfda
feat(WebhooksAPI): allow with token requests without bot auth ( #9715 )
...
* Also move `get`'s `token` parameter to options.
2023-07-16 10:25:29 +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
David Malchin
78381a56cf
feat(ChannelsAPI): add permission overwrites ( #9651 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-06 13:55:29 +00:00
Suneet Tipirneni
6d5840c61e
fix(core): fix inconsistencies on core ( #9680 )
...
* fix(core): fix inconsistencies on `core`
* fix: add `createForumPost` back
* fix: create -> createWebhook
2023-07-06 13:35:10 +00:00
Jiralite
2818d7cc1d
fix(client): Add missing application command permissions update event ( #9639 )
...
fix(client): add missing event
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-14 18:11:00 +00:00
David Malchin
6c7a5ed1e7
fix(api): various fixes for overlooked stuff ( #9588 )
...
* types(GuildsAPI): fix `getWidgetSettings()` result type
* types(GuildsAPI): fix `beginPrune()` result type
* types(GuildsAPI): fix `editAutoModerationRule()` result type
* types(ApplicationCommandsAPI): fix guild application types
* types(GuildsAPI): fix `createTemplate()` body type
* fix(InteractionsAPI): make `followUp()` return the message
According to the Discord docs, creating a followup message is the same as executing a webhook, but *wait is always true*, meaning we always get the message.
* types(WebhooksAPI): fix result types
2023-05-22 07:59:57 +00:00
Jaw0r3k
985def3f25
feat(api): add stage instances ( #9578 )
...
* feat(core): add stage instances
* chore: use one import
* Apply suggestions from code review
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* chore: requested changes
Co-authored-by: David Malchin <malchin459@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: David Malchin <malchin459@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: David Malchin <malchin459@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-05-19 19:18:33 +00:00
Jiralite
1c4a12c7d6
types: use Snowflake instead of string for snowflakes ( #9583 )
...
fix: use `Snowflake` not `string`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-19 17:33:43 +00:00
David Malchin
3535321b98
fix(GuildsAPI): use level rather than mfa_level when editing MFA ( #9584 )
2023-05-18 17:03:09 +00:00
David Malchin
5d6eed6414
feat(GuildsAPI): add removeMember() ( #9576 )
2023-05-16 09:37:06 +00:00
David Malchin
590f5bc38e
feat(api): add getMemberBans() query options and getMemberBan() ( #9569 )
2023-05-14 07:40:04 +00:00
Jiralite
1edd01a7a4
feat(client): Support more request member fields ( #9475 )
...
feat(client): support more request member fields
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-10 16:40:52 +00:00
Jiralite
166c961261
fix(roleConnections): Fix body type for updateMetadataRecords() ( #9516 )
2023-05-05 09:42:12 +02:00
iCrawl
7e875f6919
chore: refactor workspace
2023-05-03 02:14:22 +02:00
DD
5d1a4c27d5
feat(core): abstract gateway ( #9410 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-17 20:05:05 +00:00
Aura Román
0a1701b046
types(ChannelsAPI): use correct type for editMessage ( #9399 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-16 18:27:16 +00:00
Almeida
66dc4014fe
fix(interactions): make data parameter optional ( #9379 )
2023-04-13 22:01:08 +02:00
Jiralite
676307ff5c
fix(core): Support attachment editing on interactions ( #9356 )
...
fix(core): support attachment editing on interactions
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-10 20:35:54 +00:00
Almeida
6912faa9b3
fix(core): missed optional options ( #9311 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-04 18:37:26 +00:00
Noel
11e682cfe3
feat(core): http-only wrapper ( #9281 )
2023-04-02 01:44:19 +02:00