Quin Lynch
adf012d1dd
meta: 3.8.0 ( #2441 )
2022-08-28 12:04:08 -03:00
Cenk Ergen
39bbd298c3
Interactions Command Localization ( #2395 )
...
* Request headers (#2394 )
* add support for per-request headers
* remove unnecessary usings
* Revert "remove unnecessary usings"
This reverts commit 8d674fe4faf985b117f143fae3877a1698170ad2.
* remove nullable strings from RequestOptions
* Add Localization Support to Interaction Service (#2211 )
* add json and resx localization managers
* add utils class for getting command paths
* update json regex to make langage code optional
* remove IServiceProvider from ILocalizationManager method params
* replace the command path method in command map
* add localization fields to rest and websocket application command entity implementations
* move deconstruct extensions method to extensions folder
* add withLocalizations parameter to rest methods
* fix build error
* add rest conversions to interaction service
* add localization to the rest methods
* add inline docs
* fix implementation bugs
* add missing inline docs
* inline docs correction (Name/Description Localized properties)
* add choice localization
* fix conflicts
* fix conflicts
* add missing command props fields to ToApplicationCommandProps methods
* add locale parameter to Get*ApplicationCommandsAsync methods for fetching localized command names/descriptions
* Apply suggestions from code review
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Guilds/IGuild.cs
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
* add inline docs to LocalizationTarget
* fix upstream merge errors
* fix command parsing for context command names with space char
* fix command parsing for context command names with space char
* fix failed to generate buket id
* fix get guild commands endpoint
* update rexs localization manager to use single-file pattern
* Upstream Merge Localization Branch (#2434 )
* fix ci/cd error (#2428 )
* Fix role icon & emoji assignment. (#2416 )
* Fix IGuild.GetBansAsync() (#2424 )
fix the problem of not being able to get more than 1000 bans
* [DOCS] Add a note about `DontAutoRegisterAttribute` (#2430 )
* add a note about `DontAutoRegisterAttribute`
* Remove "to to" and add punctuation
Co-authored-by: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com >
* fix: Missing Fact attribute in ColorTests (#2425 )
* feat: Embed comparison (#2347 )
* Fix broken code snippet in dependency injection docs (#2420 )
* Fixed markdown formatting to show code snippet
* Fixed constructor injection code snippet pointer
* Added support for lottie stickers (#2359 )
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
Co-authored-by: BokuNoPasya <49203428+1NieR@users.noreply.github.com >
Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com >
Co-authored-by: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com >
Co-authored-by: Ge <gehongyan1996@126.com >
Co-authored-by: Charlie U <52503242+cpurules@users.noreply.github.com >
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com >
* remove unnecassary fields from ResxLocalizationManager
* update int framework guides
* remove space character tokenization from ResxLocalizationManager
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
Co-authored-by: BokuNoPasya <49203428+1NieR@users.noreply.github.com >
Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com >
Co-authored-by: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com >
Co-authored-by: Ge <gehongyan1996@126.com >
Co-authored-by: Charlie U <52503242+cpurules@users.noreply.github.com >
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com >
2022-08-26 18:45:27 +03:00
Kuba_Z2
32b03c8063
Added support for lottie stickers ( #2359 )
2022-08-21 10:14:55 -04:00
Misha133
89a8ea161f
feat: Embed comparison ( #2347 )
2022-08-21 13:57:51 +02:00
BokuNoPasya
b7b7964de9
Fix IGuild.GetBansAsync() ( #2424 )
...
fix the problem of not being able to get more than 1000 bans
2022-08-21 13:54:19 +02:00
Armano den Boef
b6b5e95f48
Fix role icon & emoji assignment. ( #2416 )
2022-08-21 13:53:14 +02:00
Cenk Ergen
6da595e074
fix ci/cd error ( #2428 )
2022-08-21 13:52:57 +02:00
Bob
65b98f8b12
Update xmldocs to reflect the ConnectedUsers split ( #2418 )
2022-08-15 13:34:17 -04:00
Gutyina Gergő
8dfe19f328
Fix placeholder length being hardcoded ( #2421 )
...
* Fix placeholder length being hardcoded
* Add docs for TextInputBuilder.MaxPlaceholderLength
2022-08-15 13:33:23 -04:00
Cenk Ergen
500e7b44ca
Using RespondWithModalAsync<IModal>() without prior IModal declaration ( #2369 )
...
* add RespondWithModalAsync method for initializing missing ModalInfos on runtime
* update method name and add inline docs
2022-08-10 11:37:40 +03:00
Armano den Boef
02bc3b7977
Fix NRE on commandbase data assignment ( #2414 )
2022-08-04 11:05:22 +02:00
Cenk Ergen
e551431d72
Max/Min length fields for ApplicationCommandOption ( #2379 )
...
* implement max/min length fields for ApplicationCommandOption
* fix badly formed xml comments
2022-08-03 16:44:30 +03:00
d4n
1eb42c6128
fix: Issues related to absence of bot scope ( #2352 )
2022-08-03 11:17:43 +02:00
Armano den Boef
b0b8167efb
fix: Remove group check from RequireContextAttribute ( #2409 )
2022-08-03 10:54:30 +02:00
Alex Thomson
ba02416421
fix: DisconnectAsync not disconnecting users ( #2346 )
2022-08-02 11:26:34 +02:00
Pusheon
f17866085e
fix: Add DeleteMessagesAsync to IVoiceChannel ( #2367 )
...
Also adds remaining rate-limit information to client log.
2022-08-02 11:24:37 +02:00
SKProCH
503fa755a0
feat: Add async callbacks for IModuleBase ( #2370 )
2022-08-02 11:19:31 +02:00
Armano den Boef
902326d1f3
fix: Range of issues presented by analyzer ( #2404 )
2022-08-01 18:53:22 +02:00
zaanposni
cfd2662963
docs: ChannelUpdated event xml comment ( #2366 )
2022-08-01 17:43:11 +02:00
Armano den Boef
a663f61a86
fix: Webhookupdated data naming
2022-08-01 17:41:25 +02:00
CottageDwellingCat
010e8e828f
feat: Support the WEBHOOKS_UPDATED event ( #2384 )
...
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
2022-08-01 17:38:10 +02:00
Quin Lynch
20f0932612
meta: 3.7.2
2022-06-02 12:03:38 -03:00
d4n
35db22e527
feat: Add support for attachments on interaction response type 7 ( #2336 )
...
* Add support for attachments on interaction response type 7
* Add missing checks
2022-06-02 10:19:28 -03:00
Quin Lynch
7adf516b20
fix: Disable TIV restrictions for rollout of TIV ( #2342 )
2022-06-02 10:18:27 -03:00
d4n
0fad3e8b37
feat: Add method overloads to InteractionService ( #2328 )
2022-06-02 10:12:49 -03:00
CottageDwellingCat
3a37f8914c
feat: AddOptions no longer has an uneeded restriction, added AddOptions to SlashCommandOptionBuilder ( #2338 )
2022-06-02 10:12:08 -03:00
Quin Lynch
b50afd7d8d
meta: 3.7.1
2022-05-27 08:43:04 -03:00
Discord-NET-Robot
18dd95442f
[Robot] Add missing json error ( #2326 )
...
* Add 50600 Error code
* Update src/Discord.Net.Core/DiscordErrorCode.cs
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-05-27 08:28:43 -03:00
Armano den Boef
a890de9304
feature: better call control in ParseHttpInteraction ( #2330 )
...
* Init
* Fix channelid xmldoc
2022-05-27 08:25:49 -03:00
Armano den Boef
712a4aea48
fix: voice perms not retaining text perms. ( #2329 )
...
* Init
* Fix switch casting as text and not as voice
* rearrange to have voice fall through the switch first
Co-authored-by: Quin Lynch <lynchquin@gmail.com >
2022-05-27 08:25:33 -03:00
Quin Lynch
e1f9b768ae
fix: NRE with Cacheable.DownloadAsync() ( #2331 )
2022-05-27 08:25:17 -03:00
d4n
d3a693ab67
feature: Add missing interaction properties ( #2325 )
2022-05-25 06:12:03 -03:00
Quin Lynch
1fadb71204
Merge branch 'dev' of https://github.com/discord-net/Discord.Net into dev
2022-05-24 02:56:28 -03:00
Quin Lynch
ac3b1a4f89
meta: 3.7.0
2022-05-24 02:56:21 -03:00
Quin Lynch
88f6168eeb
fix: NRE with bot scope and user parameters ( #2320 )
2022-05-24 02:47:03 -03:00
Quin Lynch
7a07fd62e4
feature: Forum channels ( #2316 )
...
* initial implementation
* Update SocketForumChannel.cs
* rest forum channel and remove message builder for 4.x
* Update src/Discord.Net.Core/DiscordConfig.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/DiscordConfig.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
2022-05-24 02:30:25 -03:00
sabihoshi
f47f3190d0
fix: Use IDiscordClient.GetUserAsync impl in DiscordSocketClient ( #2319 )
2022-05-24 02:29:16 -03:00
Tripletri
54a5af7db4
fix: Upload file size limit ( #2313 )
2022-05-23 03:43:38 -03:00
Armano den Boef
cea59b55ba
feature: Add Parse & TryParse to EmbedBuilder & Add ToJsonString extension ( #2284 )
...
* Add parse & tryparse to embedbuilder.
* Add tostring extension for embeds
* Modify comments
* Resolve suggestions
* Update src/Discord.Net.Rest/Extensions/StringExtensions.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-05-18 04:57:37 -03:00
Armano den Boef
a24dde4b19
feature: optional API calling to RestInteraction ( #2281 )
...
* Take 2
* Expose channel & guild Id for manual calling
* Make api calling optional at runtime
* Resolve build errors
* Bind runtime option to interaction type
* Expose methods to get channel & guild from API
* Patch out NRE's, test on all int types
2022-05-18 04:56:57 -03:00
Cenk Ergen
b465d609f0
fix: Application commands are disabled to everyone except admins by default ( #2293 )
2022-05-18 04:52:14 -03:00
Armano den Boef
1f01881beb
feature: Add DefaultArchiveDuration to ITextChannel ( #2295 )
2022-05-18 04:51:37 -03:00
Misha133
13ccc7c997
feature: Add .With methods to ActionRowBuilder ( #2296 )
...
* Added `.With` methods to `ActionRowBuilder`
- Added `.WithButton` & `.WithSelectMenu` methods to `ActionRowBuilder`
- fixed a typo
* removed `<exception>` from methods which don't directly throw an exception
* Update src/Discord.Net.Core/Entities/Interactions/MessageComponents/ComponentBuilder.cs
* Update src/Discord.Net.Core/Entities/Interactions/MessageComponents/ComponentBuilder.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-05-18 04:50:55 -03:00
Armano den Boef
6d21e42ddf
Replace Project- with PackageReference on samples. ( #2297 )
...
* Init
* Resolve errors
2022-05-18 04:49:21 -03:00
Armano den Boef
725d2557dd
fix: close-stage bucketId being null ( #2299 )
2022-05-18 04:48:34 -03:00
Armano den Boef
94a37156f3
Resolve NRE at get audit for Deleted User ( #2304 )
2022-05-18 04:47:23 -03:00
Cenk Ergen
6fbd396832
Add Nullable ComponentTypeConverter and TypeReader ( #2307 )
...
* add nullable ComponentTypeConverter and TypeReader
* add converter and reader to interactionservice
2022-05-18 04:45:18 -03:00
Nhea
b333de2237
feature: add UpdateAsync to SocketModal ( #2289 )
2022-05-13 21:59:38 -03:00
openmilk
b0a3b65bc0
feature: Webhook support for threads ( #2291 )
...
* Added thread support to webhooks
Added thread support to delete/send messages for webhooks
* Revert "Added thread support to webhooks"
This reverts commit c45ef389c5df6a924b6ea5d46d5507386904f965.
* read added threads as im a dummy
* fixed formating
* Fixed modify EmbedMessage
2022-05-13 19:28:46 -03:00
Paulo
20ffa64525
fix: Possible NRE in Sanitize ( #2290 )
2022-05-13 13:03:45 -03:00