Commit Graph

731 Commits

Author SHA1 Message Date
Mihail Gribkov
79b455ecf4 [Feature] User primary guild (#3156) 2025-07-13 23:22:04 +03:00
Mihail Gribkov
c343ce95a5 Guild member JoinedAt nullability (#3152)
* GuildMember.JoinedAt is nullable
2025-07-01 00:18:40 +03:00
Suiram1701
f1ff1913cf Ensure the required gateway intent is available when connected to audio (#3108) 2025-05-09 20:54:28 +03:00
Mihail Gribkov
8686102d87 Reapply "[Feature] Components V2 (#3065)" (#3100) (#3104)
This reverts commit d27bb49b2d.
2025-04-27 00:31:08 +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
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
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
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
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
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
5f6c26bf9c Possibly fix mute & deaf state for guild users (#3070) 2025-02-27 21:36:59 +03:00
Mihail Gribkov
c625f5fe0b [Fix] SocketApplicationCommand missing GuildId (#3063) 2025-02-03 21:55:33 +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
b5f5df0fde Task.Delay(0) => Task.CompletedTask (#3049) 2025-01-08 20:20:49 +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
79fade6762 [Feature] Support for multiple subscription tiers (#3036) 2024-12-12 22:10:59 +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
d780d6ce02 Add net8.0 and net9.0 (#3032) 2024-12-01 20:43:47 +03:00
Mihail Gribkov
96a832788c [Fix] NRE on thread member creation without a guild user in the payload (#3030)
lets hope for the best
2024-11-23 20:31:10 +03:00
Mihail Gribkov
8b929690a9 yippee (#3021) 2024-10-22 21:46:54 +03:00
Spider
8a2ea4bb58 Add StickerId to REST and WebSocket Sticker audit log data classes (#3005) 2024-09-14 16:24:35 +00:00
Mihail Gribkov
88ea2ed9ba more monetizatios stuffz (#3002)
* uhhhhhhhhhhhhhhhhhhh yes

* uhhhhhhhhhhhhhhhhhhh yes

* ~~i love git~~
2024-09-14 00:28:48 +03:00
Mihail Gribkov
b87ec6ef09 option to dump gw payloads on errors (#2999)
* option to dump gw payloads on errors

* w a r n i n g
2024-09-13 22:41:33 +03:00
Mihail Gribkov
c53aac3487 tfw GH Copilot lets you down but you dont notice it (#3001) 2024-09-12 23:10:59 +03:00
Mihail Gribkov
c4d90cd6f1 [Feature] Message Forwards (#2918)
* code

* no guild

* iTS ALIVE (THANKS aDVAITH)
2024-08-31 14:29:20 +03:00
Mihail Gribkov
623a45765d minor optimization + make sure top level components are action rows (#2991) 2024-08-30 23:34:15 +03:00
Mihail Gribkov
466b491c3c GetRoleAsync W (#2989) 2024-08-29 11:22:58 +03:00
Mihail Gribkov
57eb906552 bannerz W (#2987) 2024-08-29 00:02:20 +03:00
Mihail Gribkov
e18915ac96 [Feature] Member search v2 (#2931)
* initial commit

* tweak some things

* a

* Update JoinSourceType.cs

* ill just hope it works

* yup

* docz
2024-07-20 23:37:22 +03:00
Mihail Gribkov
26bb789b0a uh yes pls (#2963) 2024-07-20 23:35:19 +03:00
Mihail Gribkov
8b6be640c7 Fix automod related events in the sharded client 2024-07-15 11:02:04 +03:00
Mihail Gribkov
8afea2c09d Update for the breaking change discord has made + v3 is cringe (#2951)
* update for the breaking change discord made + v3 is fucked

* this could've bee a cool surprise 4 everyone
2024-06-29 20:21:15 +03:00
Mihail Gribkov
9d92435493 [Feature] Add purchase notification (#2942) 2024-06-16 20:33:40 +03:00
Mihail Gribkov
21195a8a93 [Feature] Add MessageCallData (#2934) 2024-06-14 11:23:34 +03:00
Mihail Gribkov
531b5eb3b7 [Feature] premium buttonz (#2933) 2024-06-14 00:43:11 +03:00
Bence Szucs
9030a5b2bb [Feature] Config Bypass for CanSendResponse (#2932)
* Adds bool switch for DeferAsyncTimeCheck in DiscordConfig

* Adds DeferAsyncTimeCheck bool to DiscordSocketClient

* Adds DeferAsyncTimeCheck to DeferAsync in SocketCommandBase

* Adds DeferAsyncTimeCheck to DeferAsync in SocketModal

* Adds DeferAsyncTimeCheck to DeferAsync in SocketMessageComponent

* Changes name of DeferAsyncTimeCheck to be more general

* Moves ResponseInternalTimeCheck from socket client to base client

* Adds ResponseInternalTimeCheck to Rest interactions

* Adds ResponseInternalTimeCheck to socket interactions
2024-05-16 21:25:21 +00:00
enonibobble
aa424f6f37 Enable nuget debug symbols. (#2929) 2024-05-12 22:17:52 +03:00
Mihail Gribkov
476ec068f1 [Feature] Polls (#2902)
no breakings hopefully
2024-05-11 20:34:12 +00:00
Nora
54d2fe5773 Remove generic exceptions. (#2913)
* Replace instances of Exception with better ones in reflection utils.

* Replace instances of Exception with better ones in the websocket project.

* Finish replacing generic exceptions.

* Tiny tweak to reflection utils for consistency with the .NET library.
2024-05-11 23:23:08 +03:00
Mihail Gribkov
3054505d4b SocketInteraction is messed up (#2920) 2024-04-28 19:51:48 +03:00
Mihail Gribkov
f9086d3a2c more cringe (#2919) 2024-04-28 17:42:38 +03:00
Quin Lynch
a2f624e6de Fix: Don't depend on WebSocket for Interaction service (#2912)
* unfuck interaction service to not depend on WS

* Add XML docs

* fix summary refs
2024-04-16 00:57:10 -03:00
Mihail Gribkov
d1da2a00e9 [Feature] Guild bans with seconds prune period (#2898)
* rip legacy code

* rename so no conflicts

* eh renamed wrong thing
2024-04-04 03:57:37 -04:00