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
Vlad Frangu
9d69bba47c
fix(core): include data for defer ( #9284 )
2023-04-02 01:38:33 +02:00
Suneet Tipirneni
907eb1b470
feat(core): Add AbortSignal support. ( #9042 )
...
* feat: add abort signal to guilds api
* feat: add to application commands, channels, and users classes
* chore: finish up
* chore: centralize types
* chore: make requested changes
* chore: make requested changes
* refactor: consistently use empty objects
* Update packages/core/src/api/webhook.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: make requested changes
* refactor: update `setVoiceState` after rebase
* chore: requested changes
* refactor: use -types interface for query
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-04-01 21:11:37 +00:00
iCrawl
852fae557e
chore: deps
2023-03-23 14:28:58 +01:00
Suneet Tipirneni
dff131e8e4
refactor(core): move setVoiceState to GuildsAPI ( #9228 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-12 19:37:56 +00:00
Almeida
3492b194b5
types(MappedEvents): add GuildAuditLogEntryCreate ( #9175 )
...
* types(MappedEvents): add `GuildAuditLogEntryCreate`
* chore: sort interface alphabetically
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-12 18:15:54 +00:00
Suneet Tipirneni
1b29099ed0
fix(core): use auth: false for interaction callback methods ( #9211 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-09 11:15:32 +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
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
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
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
Suneet Tipirneni
36560c9955
feat(core): add oauth2 api support ( #8938 )
...
* feat(core): add oauth2 api support
* chore: remove return tag
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-25 19:53:56 +00:00
iCrawl
166f742d02
fix(core): instantiate/export role connections
2022-12-16 14:09:51 +01:00
Suneet Tipirneni
3d6fa248c0
feat(core): Add support for role connections ( #8930 )
2022-12-16 03:32:00 +01:00
Almeida
73300c75fa
feat: add links to each routes documentation ( #8898 )
2022-12-07 16:32:55 +00:00
Almeida
3dede75621
fix(thread): get() route ( #8897 )
...
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-07 14:27:01 +00:00
Almeida
3f555d5ddf
feat(interactions): add messageId parameter to deleteReply() ( #8896 )
2022-12-07 14:23:42 +00:00
Almeida
7430c8e4c8
fix: remove casts when using makeURLSearchParams() ( #8877 )
2022-11-28 22:22:02 +01:00
Suneet Tipirneni
2127b32d26
feat: Add @discordjs/core ( #8736 )
...
* feat: add @discordjs/core
* chore: lint
* chore: add all gateway events
* chore: add the rest of the rest routes
* chore: cleanup gateway
* chore: rename gateway to client
* chore: rename gateway to client
* fix: don't spread unless we need to
* refactor: use classes and make requested changes
* chore: show shardId on emit
* chore: add interface for intrinsic props
* refactor: scope dispatch data instead of spreading
* chore: add utility for uploading files for messages and interactions
* feat: finish up form data handling
* chore: add readme
* chore: update api-extractor stuff
* chore: bump deps
* chore: make requested changes
* chore: make requested changes
* Update package.json
* chore: make requested changes
* fix: add missing interaction responses
* chore: make some requested changes
* chore: remove `return await`
* chore: use autoModeration instead of automod
* refactor: use snowflakes and -types results
* chore: sort imports, fix return type on editUserVoiceState
* chore: rename bots to users
* feat: add automod dispatch events
* refactor: move templates and members into guild
* fix: use users instead of bots in api class
* chore: imports
* chore: make requested changes
* fix: don't make files required on interaction replies
* fix: rename sendMessage to createMessage
* feat: add application command routes
* feat: add webhook.execute overloads and options to invites.get
* chore: use create prefixes
* chore: seperate interaction params
* chore: use Id
* chore: make requested changes
* chore: make requested changes
* chore: make requested changes
* chore: for -> from
* Apply suggestions from code review
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Update packages/core/README.md
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: make requested changes
* chore: update -types
* chore: bump vitest
* fix: sticker uploading
* fix: lockfile
* chore: make requested changes
* chore: make requested changes
* Update packages/core/src/api/applicationCommands.ts
Co-authored-by: Almeida <almeidx@pm.me >
* Apply suggestions from code review
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* Update packages/core/README.md
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 >
Co-authored-by: almeidx <almeidx@pm.me >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-27 21:23:13 +00:00