Commit Graph

2328 Commits

Author SHA1 Message Date
Jiralite
756eac6bb1 fix: Use D1 for indices (#11199)
* fix: use D1 for indices

* fix: use D1 for indices

* build: remove unused packages

* fix: pass variables

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-24 20:08:49 +00:00
ckohen
ee3be2c3c3 refactor(ApplicationCommand)!: make options nullable (#11167)
BREAKING CHANGE: ApplicationCommand#options is now nullable

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-10-24 20:32:41 +01:00
Jiralite
c05f653f0a chore: Release create-discord-app/bot (#11198)
* build: bump versions

* build: specify `monoRepo`

Specifying that this is a monorepo seems to fix changelog generation and the conventional bumping.

* chore(create-discord-bot): release create-discord-bot@4.1.0
2025-10-24 19:06:45 +01:00
Vlad Frangu
0c1ff5ea29 types(core): use result types instead of direct types (#11140)
* types(core): use result types instead of direct types

fix: import pains

chore: apply suggestion from review

Co-authored-by: Almeida <github@almeidx.dev>

chore: fmt script

chore: requested change

* chore: rename script, fix build

* chore: types

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-24 15:36:54 +00:00
ckohen
63417e8b6c refactor(makeCache)!: make params an object (#11172)
BREAKING CHANGE: `Options.makeCache` now sends all of its parameters in an object rather than 3 individual parameters

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-10-24 15:55:29 +01:00
Naiyar
c9a9b6ce9d feat: file upload component (#11114)
* feat: file upload component

* docs: correct min values

* chore: rebase

* chore: resolve attachments

* chore: typings

* chore: whyyyyyyyyy

* types: `Snowflake`

* types: `Snowflake`

* docs: `Snowflake`

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-10-24 11:09:33 +00:00
Jiralite
83ec0fdcdf refactor: Use idPredicate for file uploads (#11195)
refactor: use `idPredicate`
2025-10-24 10:45:37 +00:00
Jiralite
c84024968e feat: File upload support (#11108)
* build: bump discord-api-types

* feat: add support

* docs: correct examples

* fix(MappedComponentTypes): fix description

Co-authored-by: advaith <advaithj1@gmail.com>

* fix: use `z.int()`

* chore: remove errors

---------

Co-authored-by: advaith <advaithj1@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-24 10:16:05 +00:00
Qjuh
697556fd16 feat(website): parse and show unstable tsdoc tag (#11187)
feat(website): parse and show unstable tsDoc tag
2025-10-22 11:53:56 +00:00
Jiralite
0cc92bd5b0 fix(textInput): Allow empty strings for a value (#11182)
fix: allow empty strings

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-16 13:55:15 +00:00
Jiralite
25b22c67aa fix(ModalSubmitInteraction): Resolve components correctly (#11168)
* fix: resolve components correctly

* fix: remove redundant parameter

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-14 22:01:10 +00:00
Naiyar
1a305fe4ad build: bump discord-api-types to 0.38.30 (#11178)
* build: bump discord-api-types to 0.38.30

* chore: slap the errors
2025-10-14 18:02:10 +00:00
ckohen
7a3a21b26e ci(release): better final output (#11177)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-14 09:26:11 +00:00
Denis-Adrian Cristea
f9ca29e3e4 chore: update readme badges (#11152)
* chore: update readme badges

* chore: add href

* chore: other readmes

* chore: reintroduce badge

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-13 12:54:08 +00:00
Almeida
dd795252d6 refactor!: remove special cases for bot guild owner (#11160)
BREAKING CHANGE: The `GuildOwned` error code and message has been removed.

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-10-11 11:57:20 +01:00
Denis-Adrian Cristea
847fa9938d fix(GuildChannel): manageable perm check (#11166) 2025-10-11 09:01:39 +00:00
Jiralite
a97ac82619 fix(guide): Miscellaneous fixes (#11147)
* fix: miscellaneous fixes

* docs: fix contributing link

* fix: link

* fix: you

* fix: main links

* fix: update source

* fix: update link

* fix: update update link

* fix: [

* fix: remove locale

* fix: update links

* fix: update GitHub link

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-09 12:41:15 +00:00
Almeida
7f29356950 fix: ending uncached polls (#11157) 2025-10-08 21:04:05 +00:00
Denis-Adrian Cristea
0c2975e3fd ci: implement workflow to publish dev versions (#11120)
* ci: implement workflow to publish dev versions

* ci: refactor into the other dev job

* fix: use dev tag

* chore: clarify

* fix: always use actions from main

* fix: conditionally

* chore: don't ask for meaningless perm
2025-10-08 11:08:39 +00:00
Denis-Adrian Cristea
fcf7f27fd7 ci(release): handling for create-discord-app (#11143)
* ci(release): handling for create-discord-app

* ci(deprecate): cda support

* ci: update our custom action to handle the renaming when invoked

* fix: don't double release on github

* chore: just in case

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-08 10:33:51 +00:00
Almeida
aac247cc18 feat: add {add,remove}GroupDMRecipient methods (#11135)
* feat: add `{add,delete}GroupDMRecipient methods`

* fix: requested changes

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-08 08:37:02 +00:00
Jiralite
a78dd012dc feat(guild): Support incident actions (#11131)
* feat(guild): add incident actions

* fix: add result

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-08 08:07:17 +00:00
Denis-Adrian Cristea
af923fee8e fix(WebSocketShard): bad error re-throw (#11151)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-07 09:59:40 +00:00
Pavel-Boyazov
b80dd8ce7f types(ClientEventTypes): fix messageDeleteBulk event arg (#11122)
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-10-07 08:44:26 +00:00
Almeida
985b525556 chore: bump dependencies (#11133)
* chore: bump dependencies

* chore: another bump
2025-10-06 22:42:31 +00:00
Jiralite
2c08b0f975 feat(thread)!: Add query to getting a thread member (#11136)
BREAKING CHANGE: Third parameter of `ThreadsAPI#getMember()` is now `query`, pushing `options` to the fourth.

* feat(thread): add query to getting a thread member

* Apply suggestion from @almeidx

Co-authored-by: Almeida <github@almeidx.dev>

* Apply suggestion from @almeidx

Co-authored-by: Almeida <github@almeidx.dev>

---------

Co-authored-by: Almeida <github@almeidx.dev>
2025-10-06 10:35:31 +01:00
Almeida
fbdec3d828 feat!: add escapeQuote and escapeBlockQuote (#11129)
BREAKING CHANGE: `escapeMarkdown` now escapes quotes and block quotes by default.

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-10-06 10:30:36 +01:00
Pavel-Boyazov
cf88ef91fd types(Webhook): specify message type (#11142)
* types(Webhook): specify message type

* test(Webhook): update types
2025-10-05 20:42:15 +00:00
Vlad Frangu
05224e78ec fix(builders): correct assertion for select menu string min/max values (#11139)
* fix(builders): correct assertion for select menu string min/max values

* fix: actually fix the logic

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-05 15:28:34 +00:00
Almeida
612c49b546 fix: adjust types for typescript upgrade (#11132)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-05 12:43:49 +00:00
Jiralite
ffbb7b6936 feat: Add gateway endpoints (#11130)
feat: add gateway

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-04 16:35:21 +00:00
Denis-Adrian Cristea
d251e065cd feat(RedisBroker): ability to explicitly tell the library to pick a random group (#11002)
feat(RedisBroker): randomly pick group via symbol
2025-10-04 14:20:27 +00:00
Denis-Adrian Cristea
cf89260c98 feat(RedisBroker): poll for unacked events (#11004)
Co-authored-by: Noel <buechler.noel@outlook.com>
2025-10-04 10:59:48 +02:00
Denis-Adrian Cristea
2c750a4e00 refactor!: make RedisBroker require consumer name (#11001)
* refactor(RedisBroker): require consumer name

* chore: spelling

Co-authored-by: Noel <buechler.noel@outlook.com>

---------

Co-authored-by: Noel <buechler.noel@outlook.com>
2025-10-04 10:51:43 +02:00
ckohen
6431cea24b ci(release): use main action always (#11125)
* ci(release): use main action always

* ci(release): use more descriptive names

* ci: review fixes

* ci(release): fixes from testing

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-04 08:50:30 +00:00
Naiyar
f510b5ffab docs(ModalComponentResolver): correct getTextInputValue return type (#11128) 2025-10-01 18:09:54 +00:00
Almeida
1c5674d9b2 fix(ThreadMemberFlagsBitField): use ThreadMemberFlags enum in Flags (#11118)
feat(ThreadMemberFlagsBitField): use `ThreadMemberFlags` enum in `Flags`
2025-09-27 15:36:51 +00:00
Almeida
5efde1162f docs: use LocalizationMap where applicable (#11117) 2025-09-27 14:48:06 +00:00
Jiralite
9201243f32 docs(APITypes): Add APISelectMenuDefaultValue (#11111)
docs: add `APISelectMenuDefaultValue`

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-09-26 16:40:22 +00:00
Jiralite
0d76f1149f fix: Add idPredicate (#11109)
* fix: `idPredicate`

* fix: add test

* test: add negative test
2025-09-26 16:06:22 +00:00
Naiyar
b3705df547 fix: use in operator when resolving modal component (#11115) 2025-09-26 09:10:51 +00:00
Jiralite
2d740d5279 fix(GuildMember): Use editMe() conditionally for setNickname() helper (#11113)
fix(GuildMember): use `editMe()` conditionally

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-09-24 20:38:47 +00:00
Jiralite
beed098bf2 fix: Add type to some predicates (#11110)
fix: add `type`

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-09-22 09:10:20 +00:00
Jiralite
7886d9b098 feat(GuildMemberManager)!: Add new modify self fields (#11089)
BREAKING CHANGE: `GuildMemberManager#edit()` no longer handles the /@me route for editing the current application's guild member. This has split out into `GuildMemberManager#editMe()`
2025-09-21 22:51:57 +01:00
Naiyar
5247afe983 feat!: text display and other select menus for modal (#11097)
BREAKING CHANGE: `ModalSubmitFields` is no longer exported
BREAKING CHANGE: `ModalSubmitInteraction#fields` is removed
BREAKING CHANGE: `ModalSubmitInteraction#components` is now `ModalOptionResolver`
BREAKING CHANGE: `DjsErrorCodes#ModalSubmitInteractionFieldNotFound` & `DjsErrorCodes#ModalSubmitInteractionFieldType` are now renamed to `DjsErrorCodes#ModalSubmitInteractionComponentNotFound` & `DjsErrorCodes#ModalSubmitInteractionComponentType` respectively

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-09-21 22:18:18 +01:00
Jiralite
b66f52f9aa feat!: More label components and text display in modal (#11078)
BREAKING CHANGE: Modals only have adding (no setting) and splicing has been replaced with a generalised splice method to support all components.
2025-09-14 09:09:56 +01:00
Jiralite
90aac127fa fix(users): Correct type for editing current guild member (#11099)
* fix(user): use correct type

* fix: imports

* fix: imports

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-09-10 21:11:52 +00:00
Naiyar
4ec03ae517 feat!: label component and selects in modal (#11081)
BREAKING CHANGE: TextInputComponentData no longer accepts label
BREAKING CHANGE: ActionRow and ActionRowData no longer accept TextInput
BREAKING CHANGE: `ModalSubmitInteraction#transformComponent` is now private and no longer exposed publicly

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-09-10 21:34:57 +01:00
ckohen
f1bcff46b6 feat(rest): callbacks for timeout and retry backoff (#11067)
* feat(rest): callbacks for timeout and retry backoff

* test: add tests for callback utils

* test: fix typo

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>

* fix(retryBackoff): efficient math

* docs: minor tweaks

* docs: captalisation

---------

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-09-10 09:23:28 +00:00
Jiralite
5d5a6945e4 build: Update discord-api-types to 0.38.23 (#11095)
build: update
2025-09-10 08:30:00 +00:00