Suneet Tipirneni
01a423d110
feat(CommandInteraction): add support for localized slash commands ( #7684 )
...
* feat(commandInteraction): add support for localized slash commands
* chore: make requested changes
* chore: add better localizations in docs
* refactor: use dapi types
* types: reexport LocalizationMap
* fix: add name localizations for option choices
* feat: add missing props and fetch options
* Update packages/discord.js/src/managers/ApplicationCommandManager.js
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
* chore: fix linting issues
* fix: fetching bugs
* chore: make requested changes
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2022-04-12 17:20:55 +02:00
Josh Wee
f0d0242c76
feat: support sodium-native lib for voice ( #7698 )
...
* chore: add sodium-native
* feat: wrap sodium-native methods
* chore: update dep listings
* chore: update dep report
* revert: "chore: add sodium-native"
This reverts commit 6a64db85d0 .
* chore: consolidate buffer alloc
Co-authored-by: Vitor <milagre.vitor@gmail.com >
* chore: conslidate sodium.random
* chore: explicit param typing
* refactor: truthy style maintenance
Co-authored-by: Vitor <milagre.vitor@gmail.com >
2022-04-12 17:20:30 +02:00
muchnameless
b577bcc1df
types(ModalSubmitInteraction): message ( #7705 )
2022-04-12 17:20:20 +02:00
Rodry
0faac04b69
feat: allow emoji strings to be passed through constructors ( #7718 )
...
* feat: allow strings to be passed through constructors
* fix: don't overwrite emoji with raw data
2022-04-12 17:19:27 +02:00
Harry Allen
9ff54254d8
fix: clarify that packages need to be locally built ( #7720 )
2022-04-12 17:18:43 +02:00
BaumianerNiklas
fd1dc72c0a
typings(Embed): add missing getters and add video to EmbedData ( #7728 )
...
* typings(Embed): add missing author getter
* typings(Embed): add hexColor, provider, and length getters
* typings: EmbedVideoData + video fields in Embed[Data]
2022-04-12 17:18:15 +02:00
Almeida
29f8807955
feat(StageInstanceManager): add sendStartNotification option to create ( #7730 )
...
* feat(StageInstanceManager): add `sendStartNotification` option to create
* docs: update property description
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2022-04-12 17:17:49 +02:00
Vitor
6f4e97bfaf
types(ModalSubmitInteraction): fix components type ( #7732 )
2022-04-12 17:16:36 +02:00
Vlad Frangu
3582fe917d
chore: update the regex for command names/option names ( #7733 )
2022-04-12 17:16:08 +02:00
Jiralite
78a3afcd7f
refactor: Remove nickname parsing ( #7736 )
...
* refactor: remove nickname parsing
* types: remove nickname import
* chore: update guildmember
* refactor: keep parsing
* refactor: string from user instead
2022-04-12 17:15:38 +02:00
muchnameless
3db20abdd2
fix(MessagePayload): resolveBody check body instead of data ( #7738 )
2022-04-12 17:15:21 +02:00
muchnameless
ebb4dfa262
fix(ActionRow): toJSON should include components ( #7739 )
...
* fix(ActionRow): toJSON should include components
* Update packages/discord.js/src/structures/ActionRow.js
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
* types: extend component
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
Co-authored-by: suneettipirneni <suneettipirneni@icloud.com >
2022-04-12 17:14:57 +02:00
A. Román
8eaec114a9
feat: add makeURLSearchParams utility function ( #7744 )
2022-04-12 17:14:30 +02:00
Jiralite
8625d81714
fix: Prevent NaN for nullable timestamps ( #7750 )
...
* fix(VoiceState): don't show `NaN`
* fix(Invite): handle NaN
* refactor: `&&` usage
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Almeida <almeidx@pm.me >
2022-04-12 17:14:04 +02:00
Suneet Tipirneni
3037fca196
feat(modal): add awaitModalSubmit ( #7751 )
...
* feat(modal): add awaitModalSubmit
* fix: allow command interactions to await modal submissions
* Update packages/discord.js/src/structures/CommandInteraction.js
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com >
* chore: less is more
* Update packages/discord.js/src/structures/interfaces/InteractionResponses.js
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2022-04-12 17:13:46 +02:00
Suneet Tipirneni
e4f27051ca
types(interactionCollector): filter should have a collected argument ( #7753 )
2022-04-12 17:13:03 +02:00
Jiralite
25fdb3894d
fix(InteractionCreateAction): Ensure text-based channel for caching messages ( #7755 )
...
* fix: ensure text-based channel for adding messages
* fix: account for interaction-only applications
The event will emit for these types of bots. However, as the channel is not from a cached guild, they are safe from this crash.
* fix: typos
* refactor: more descriptive variable usage
2022-04-12 17:12:31 +02:00
Jiralite
a1329bd3eb
docs: Enhance /rest README ( #7757 )
...
* docs: enhance README
* chore: formatting
* docs: Fix method
Co-authored-by: Almeida <almeidx@pm.me >
* chore: remove new line
* docs: can use top-level await
* docs: fix message sending example
Co-authored-by: Almeida <almeidx@pm.me >
2022-04-12 17:11:41 +02:00
Parbez
3c0bbac82f
refactor: replace zod with shapeshift ( #7547 )
2022-04-09 11:37:16 +02:00
Synbulat Biishev
3f3e4327c8
feat(Actions): add parent structure to events parameters ( #7577 )
2022-04-09 11:35:55 +02:00
Almeida
6fec25239d
feat: export UnsafeModalBuilder and UnsafeTextInputBuilder ( #7628 )
2022-04-09 11:34:46 +02:00
Jiralite
aedddb875e
refactor: Remove store channels ( #7634 )
2022-04-09 11:34:05 +02:00
Jiralite
402514ff32
fix: pass force correctly ( #7721 )
2022-04-05 12:26:21 +02:00
Jiralite
3b3dabf3da
feat(VoiceChannel): Support video_quality_mode ( #7722 )
2022-04-05 12:26:09 +02:00
Almeida
eb6b472f72
refactor(IntegrationApplication): remove summary ( #7729 )
2022-04-05 12:25:52 +02:00
Suneet Tipirneni
f88e1ac4be
chore: make requested changes ( #7000 )
2022-04-05 12:22:56 +02:00
Jiralite
905a6a1166
fix: Support reason in setRTCRegion helpers ( #7723 )
2022-04-04 16:32:14 +02:00
Rodry
5748dbe087
types: fix regressions ( #7649 )
...
* types: fix regressions
* fix: make requested changes
* Apply suggestions from code review
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
* types: action row data should take builders
* types: remove redundant overload
* fix(MessagePayload): ensure components are serialized correctly
* fix(MessagePayload): don't always create new action row
* refactor(UnsafeModalBuilder): make data public
* types: use type union
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
* types: fix types and add tests
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2022-04-04 00:19:44 +02:00
Jeroen Claassens
ac4bc3a6c8
chore(build): disable tsup minification & add "use strict"; banner to CJS bundles ( #7725 )
...
* chore(build): disable tsup minification
* chore(build): add `"use strict";` to CJS bundles
2022-03-28 21:34:58 +02:00
Jiralite
520f471ac5
docs: add back static properties and methods ( #7706 )
2022-03-26 13:55:53 +01:00
Jiralite
6708533376
ci: Resolve invalid semver ( #7709 )
2022-03-26 13:55:42 +01:00
Skick
9afc03054e
types(Constants): add NonSystemMessageTypes ( #7678 )
2022-03-26 13:46:31 +01:00
D Trombett
74bf7d57ab
fix(GuildMemberManager): return type can be null ( #7680 )
2022-03-26 13:45:12 +01:00
Jiralite
8e3b2d7abd
types: Fix auto archive duration type ( #7688 )
...
* types: fix auto archive shenanigans
* refactor: deduplicate into utility
* types: allow `MAX` for text channels
* docs(Util): english
* fix(ThreadManager): assign on `MAX`
2022-03-26 13:43:18 +01:00
Suneet Tipirneni
8880de0cec
fix(gateway): use version 10 ( #7689 )
...
* fix: make gateway use version 10
* chore: fix readme rest versions
2022-03-26 13:42:13 +01:00
Jiralite
cedd0536ba
refactor(GuildAuditLogs): remove build ( #7704 )
2022-03-24 22:11:18 +01:00
Jiralite
85e531f22d
fix: Audit log static reference ( #7703 )
...
* fix: sort into new file
* refactor: move other stuff
* fix: errors
2022-03-24 21:00:51 +01:00
muchnameless
07b23a99c7
refactor(InteractionCollector): simplify constructor logic ( #7667 )
...
* refactor(InteractionCollector): simplify constructor logic
* fix: oversight
2022-03-24 21:00:30 +01:00
Jiralite
0c32332a5a
fix: handle possibly missing property ( #7641 )
2022-03-24 21:00:12 +01:00
Parbez
d5369a56e3
fix(util): allow escapeInlineCode to escape double backtics ( #7638 )
...
* fix(util): allow scapeInlineCode to escape double backtics
* fix: replace backtics properly
* chore: fix lint
2022-03-24 21:00:04 +01:00
Jiralite
9a6e691eaa
refactor: remove undocumented checks ( #7637 )
2022-03-24 20:59:56 +01:00
Almeida
4d2b55955d
fix(GuildEditData): some fields can be null ( #7632 )
...
* fix(GuildEditData): some fields can be null
* fix: make even more things nullable
2022-03-24 20:59:38 +01:00
MateoDeveloper
cd79bef254
fix: TOKEN_INVALID error not thrown at login with invalid token ( #7630 )
2022-03-24 20:59:30 +01:00
Almeida
c684ac55e1
fix(GuildScheduledEvent): handle missing image ( #7625 )
2022-03-24 20:59:07 +01:00
Suneet Tipirneni
fb9a9c2211
refactor: allow builders to accept emoji strings ( #7616 )
...
* refactor: allow emoji strings in button builder
* refactor: add emoji string support for select menu options
* fix: export select menu option
* chore: make requested changes
* Update packages/discord.js/typings/index.test-d.ts
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2022-03-24 20:58:50 +01:00
muchnameless
daf2829cb5
types(InteractionResponseFields): add webhook ( #7597 )
2022-03-24 20:58:39 +01:00
Ryan Munro
98177aa38d
fix(guild): throw if ownerId falsey ( #7575 )
2022-03-24 20:58:29 +01:00
Suneet Tipirneni
b1d63d919a
fix: Validate select menu options ( #7566 )
...
* fix: validate select menu options
* chore: make requested changes
* refactor: make requested changes
* fix: tests
2022-03-24 20:57:53 +01:00
Vlad Frangu
b520c3df3c
chore(ci): fix dev deploy workflow ( #7694 )
...
* chore(ci): fix dev deploy workflow
* chore: escape the dots too, for extra future safety
2022-03-24 02:40:13 +01:00
Suneet Tipirneni
e805777a7a
refactor: use static fields ( #7701 )
...
* refactor: use static fields
* chore: refactor missed areas
* chore: remove memberof docs
* chore: make type changes
2022-03-24 02:38:05 +01:00