Commit Graph

3931 Commits

Author SHA1 Message Date
Mihail Gribkov
ec0621a264 fix NRE introduced in 3.17.3 (#3101) 2025-04-27 00:14:36 +03:00
Mihail Gribkov
d27bb49b2d Revert "[Feature] Components V2 (#3065)" (#3100)
This reverts commit ba78e0c1f0.
2025-04-27 00:05:40 +03:00
Mihail Gribkov
ba78e0c1f0 [Feature] Components V2 (#3065)
* oh well. at least it runs

* well that's some breakings

* all the models (i think)

* barebones builder impl

* commit

* initial take on `WithX` component builder design

* actually usable stuff now

* few more changes

* fixes, changes, syntax sugar

* rework message flags + auto add `ComponentsV2`

* apparently it's also nullable

* fix build

* webhook component supports + builder validations + some xmldoc

* `ResolvedUnfurledMediaItem` + fix missing accessory on sections

* missing xmldoc

* fix modal + whatever change

* yeet unused dep
2025-04-26 23:40:03 +03:00
Mihail Gribkov
5e4a844adf meat next (#3098) 2025-04-26 22:51:21 +03:00
Frederik P.
2da25f395a Fix WriteSilentFramesAsync sending a partial frame at first (#3094)
* Implemented ClientDisconnect event for audio client.

* Added a method for sending silent frames.

* moved comment

* Added method summary.
+ removed changes to project file.

* Removed residual stuff remaining from previous edits.

* bunch of things

* Revert "bunch of things"

This reverts commit 292f23f4e1aabb26d2a3e5b9a2bdff8b5554635e.

* Update src/Discord.Net.WebSocket/Audio/Streams/OpusEncodeStream.cs

* Update src/Discord.Net.WebSocket/Audio/Streams/OpusEncodeStream.cs

* Update src/Discord.Net.WebSocket/Audio/Streams/OpusEncodeStream.cs

* fixed silent frames

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2025-04-26 22:41:47 +03:00
Suiram1701
a8523c5ebd Fixed modals with value type properties (#3091)
* Fixed type reader/converter parsing exception

* Fixed modals with value types properties

* Made OverridesToString result lazy and store it
2025-04-26 22:40:21 +03:00
Spider
9b79f0b27b Add handler for unknown Discord dispatch events (#3088) 2025-04-26 22:40:05 +03:00
Mihail Gribkov
0c3e7a861a Refactor MentionedUsers in the SocketMessage (#3096) 2025-04-26 22:38:07 +03:00
Suiram1701
cce62747c9 Improved exception messages of builders (#3092)
* Fixed type reader/converter parsing exception

* Added the provided value to exceptions of some builders and, used more the Preconditions class.

* Removed unused `System.Xml.Linq` usings
2025-04-15 00:19:03 +03:00
Mihail Gribkov
649f52b491 [Feature] Per file attachement size limits (#3090)
* `SendFilesAsync` check file size per attachment instead of combined

* add `AttachmentSizeLimit` to interaction entites
2025-04-05 16:44:33 +03:00
ForceFK
fb90701149 Add size in CDN.GetGuildSplashUrl (#3087) 2025-03-31 21:32:57 +03:00
Suiram1701
88cfbe5453 Fixed type reader/converter parsing exception (#3084) 2025-03-28 20:12:29 +00:00
Mihail Gribkov
6f623a65e4 add missing gif sticker format (#3081) 2025-03-16 00:36:52 +03:00
Mihail Gribkov
3a40b586ab Meta 3.17.2 (#3077)
* Update CHANGELOG.md

* Update NUGET_README.md cuz why not

* Update Discord.Net.targets

* Update Discord.Net.nuspec

* Update docfx.json

* Update CHANGELOG.md
2025-03-09 22:04:08 +03:00
Mihail Gribkov
54e841694e Add empty service scopes (#3078) 2025-03-09 21:52:53 +03:00
Zach Goodson
41ad6aceac Make Make GetShardFor(ulong guildId) & DiscordShardedClient.GetUserAsync() public (#3075)
* Make GetShardFor(ulong guildId) public

* Make DiscordShardedClient.GetUserAsync() public
2025-03-09 21:09:06 +03:00
Mihail Gribkov
9c9407b7f4 [Feature] Add excludeDeleted argument to GetEntitlementsAsync (#3074)
* add `excludeDeleted` argument

* i love when it still builds locally somehow
2025-03-02 01:17:08 +03:00
Mihail Gribkov
aa66928c48 [Fix] SocketGuild.GetApplicationCommandAsync was fetching global commands (#3073) 2025-03-02 01:03:14 +03:00
Mihail Gribkov
d71fcb1a42 AutoServiceScopes strikes again (#3072) 2025-03-02 00:55:59 +03:00
Mihail Gribkov
6fb2a29351 add package lock files for | add prop in targets | update action (#3071)
* add package lock files for | add prop in targets | update action

* oh so you can use netfx reference assemblies even on windows
2025-03-02 00:14:44 +03:00
Mihail Gribkov
81e49f7e9e cache nuget packages in the dotnet.yml action 2025-03-01 23:58:33 +03:00
mini
7fb537fd72 [Featured] Consider AutoServiceScopes in autocomplete handler executions (#3068)
* Add AutoServiceScopes to autocomplete handlers

* Fix disposing behavior

* Update AutocompleteHandler.cs

---------

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
2025-03-01 23:52:41 +03:00
Mihail Gribkov
5f6c26bf9c Possibly fix mute & deaf state for guild users (#3070) 2025-02-27 21:36:59 +03:00
Łukasz Domeradzki
6e7b3c2577 Correct empty value exception (#3064) 2025-02-09 22:13:17 +03:00
Mihail Gribkov
c625f5fe0b [Fix] SocketApplicationCommand missing GuildId (#3063) 2025-02-03 21:55:33 +03:00
Mihail Gribkov
52c2f0d918 yeet FluentAssertions (#3061) 2025-01-25 23:10:59 +03:00
Mihail Gribkov
bb58d7188b Ok this failed to commit apparently 2025-01-19 13:55:53 +03:00
Mihail Gribkov
3e9a8dd452 Meta 3.17.1 (#3058) 2025-01-19 13:49:15 +03:00
Mihail Gribkov
50aa278a9a move back to 8.0.0 deps (#3057) 2025-01-19 13:39:27 +03:00
Mihail Gribkov
0e9caf382a Add MentionRaidProtectionEnabled (#3056) 2025-01-19 13:37:57 +03:00
Mihail Gribkov
d828cd8821 oops (#3053) 2025-01-16 01:09:13 +03:00
Mihail Gribkov
9c224ec4f5 Use ubuntu-22.04 instead of ubuntu-latest for workflows 2025-01-15 21:37:15 +03:00
Leon Schimmel
0174745881 Added Header and Subtext to the Format class (#3052) 2025-01-15 01:48:45 +03:00
Mihail Gribkov
b5f5df0fde Task.Delay(0) => Task.CompletedTask (#3049) 2025-01-08 20:20:49 +03:00
Ge
35e812253a An AddSlashCommand overload should be AddAutocompleteCommand in ModuleBuilder (#3014) 2025-01-08 01:14:09 +03:00
Mihail Gribkov
2759dbacdb whoops (#3047) 2025-01-08 01:02:38 +03:00
Mihail Gribkov
36439b6325 Refactor & update member search v2 (#3046) 2025-01-08 00:37:41 +03:00
Mihail Gribkov
b3c09b5615 Update docs.yml (#3044) 2024-12-21 00:11:23 +03:00
Mihail Gribkov
995830f793 bump stuffz + DOCFX AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA (#3043) 2024-12-21 00:05:18 +03:00
Mihail Gribkov
5d66f96a4d bru (#3042) 2024-12-20 23:40:52 +03:00
Mihail Gribkov
bc9d1d6264 Meta 3.17.0 (#3040)
* Update CHANGELOG.md

* Update Discord.Net.nuspec

* Update Discord.Net.targets

* Update docfx.json

* i'll just hope it magically works
2024-12-20 23:30:55 +03:00
Mihail Gribkov
58a8f10237 Update docs.yml (#3039) 2024-12-20 23:22:22 +03:00
Mihail Gribkov
b7208d4d99 [Feature] Scheduled event recurrence rule (#3023)
* api modelsssssssss

* recurrence rulesssss
2024-12-20 23:16:11 +03:00
Mihail Gribkov
438e31edd1 [Fix] Clamp cache size (#3038)
* fix

* clamp max cache size

* net 4.6.1 strikes again

* real
2024-12-13 21:17:11 +03:00
Mihail Gribkov
d2d8d73170 add missing overwrite perms (#3037) 2024-12-12 22:14:42 +03:00
Mihail Gribkov
79fade6762 [Feature] Support for multiple subscription tiers (#3036) 2024-12-12 22:10:59 +03:00
Ge
aaa8df944c Fixes incorrect cast of parameters in CommandBuilder (#3015) 2024-12-05 09:09:24 +03:00
Mihail Gribkov
c78296fd2d [Fix] NRE in message commands in user app contexts (#3035)
* bump few more things

* expose `MentionedRoleIds` on `SocketMessage` + add some syntax sugar

* right, we can't have nice things cuz netfx

* omfg that's an I/O operation in ctor bruh
2024-12-04 23:49:08 +03:00
Mihail Gribkov
d5879c861a [Fix] Entitlements starts_at is nullable (#3034)
* i wonder if it was just as simple as that

* nope

* nope x2

* nope x3
2024-12-02 01:59:21 +03:00
Mihail Gribkov
93229f6d2e Add net8.0 and net9.0 to the metapackage (#3033) 2024-12-01 20:52:44 +03:00