Commit Graph

3695 Commits

Author SHA1 Message Date
Misha133
6bb3777bf9 [Fix] Disconnecting socket client does not send close code (#2714)
* fix?

* whoops, debugging stuff
2023-08-10 16:19:10 +03:00
Christopher Bonnell
d5d7378e02 [Feature]: ComponentBuilder component removal methods (#2644)
* New helper methods

* Auto-resolve empty ActionRows

* Resolve potential nulls

* Add RemoveButtonByURL

* split out url method
2023-08-10 15:19:00 +02:00
Misha133
166d40f1e4 [Feature] New ModifyCurrentApplication features (#2730)
* initial commit

* apply suggestings lol

* Update src/Discord.Net.Core/Entities/Applications/IApplication.cs

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>

* check for null values inside the array

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-08-10 13:18:06 +00:00
Frederik P
59094d2e1f Added a method for sending silent audio frames on OpusEncodeStream (#2668)
* 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

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-08-10 15:15:56 +02:00
Misha133
2b8584d07d [Feature] Update webhook implementation (#2723)
* initial commit

* add partial guild & channel props

* Apply suggestions from code review

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-08-10 13:14:00 +00:00
Misha133
5c8d83cf85 remove unnecessary @everyone validation (#2712) 2023-08-10 16:09:25 +03:00
Misha133
a4217154f0 [Feature] Add Role & Attachment flags (#2720)
* initial commit

* oops

* another typo -_-

* Update AttachmentFlags.cs

Made this on my phone lol

* Update AttachmentFlags.cs

* -line
2023-08-10 16:08:42 +03:00
Misha133
8cd4c1cb8e Onboarding updates (#2729) 2023-08-10 16:05:03 +03:00
Misha133
56769cba37 [Fix] some ReplyAsync methods missing MessageFlags parameter (#2713)
* fix

* fix x2

* dot

* xmldocs
2023-08-10 15:54:37 +03:00
Misha133
9dfd4d7a41 [Fix] Updated global name not being passed to UserUpdated event (#2726)
* fix

* fix another overgisht
2023-08-10 15:41:40 +03:00
Misha133
184a536f95 [Docs] Add interaction response schemes (#2736)
* docfx 💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀

* updates
2023-08-10 15:41:19 +03:00
Misha133
5f580f6f1e [Fix] Update modal's DeferAsync impl (#2722)
* initial commit

* updates
2023-08-10 15:40:54 +03:00
Misha133
4dbb5949fc [Fix] Forum channel related issues. 2023-08-10 15:37:02 +03:00
Misha133
12c50f2d98 Fix a 4 year old bug (Modifying guild resets preferred locale) (#2711) 2023-08-10 15:32:54 +03:00
Misha133
b2820d5b65 [Feature] Support for setting custom status (#2749) 2023-08-10 15:32:23 +03:00
Brandon Sandoval
b1c832622d grammar (#2735) 2023-07-21 14:47:41 +03:00
Quin Lynch
a9ba97af36 meta: 3.11.0 (#2709) 2023-06-27 12:13:06 -03:00
Misha133
661599773a [Fix] Possible fix for MyGet package deps (#2653) 2023-06-27 11:21:52 -03:00
MichaelMcCarthy
f32d3f6346 Update creating-slash-commands.md (#2684)
typo ApplicationCommandException does not contain Error as it contains Errors
2023-06-27 11:14:15 -03:00
Misha133
547bc92537 FIX] Update TypingStartedEvent model (#2702) 2023-06-27 11:13:01 -03:00
Misha133
df717e6b2c [Feature] Support for the new username system (#2696)
* update a lot of stuff

* update CDN for new avatar calculation

* whoops, forgot to commit

* handle `null` values

* Remove duplicate line

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>

* updates

* Apply suggestions from code review

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>

* Apply suggestion

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>

* update `SocketThreadUSer`

---------

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-06-27 11:11:32 -03:00
Misha133
9ddd922d2f [Refactor] Refactor some stuff (#2688)
* fix some `internal` classes being exposed

* update xmldoc comments to use `<see langword>`

* bump library version in samples

* fix possible oversight
2023-06-27 11:11:16 -03:00
Misha133
fe4130df45 [Fix] Threads not getting removed from cache on THREAD_DELETE (#2708) 2023-06-27 11:08:18 -03:00
ThePheggHerself
200bed7329 Allow more than 1 action to be registered per automod rule (#2687)
Fixes an issue where you cannot register more than 1 automod rule due to the limit and length of the rules being inverted (This also has the side effect of allowing you to attempt to register 0 actions, resulting in a 50035 invalid body error)
2023-06-11 16:07:44 -03:00
Misha133
277c7af3be Revert "Optimize Add/RemoveRolesAsync methods (#2614)" (#2680)
This reverts commit 11481a159e.
2023-05-22 22:36:20 +02:00
Misha133
a41fa62124 [Fix] Modify mention limit, regex patterns & allowlist of a automod rule (#2683)
* fix one another automod bug

* possible fix for another bug

* final one
2023-05-22 22:35:57 +02:00
Misha133
9df4438136 fix (#2682) 2023-05-21 17:08:13 -03:00
Nora
91fd8262fe Update XML documentation for IDiscordInteraction.RespondAsync (#2673) 2023-04-21 23:00:28 +02:00
bs
ce5b4af46f Update XML documentation for GatewayIntents.AllUnprivileged (#2671) 2023-04-19 19:10:09 +02:00
Kuba_Z2
2be9b00e72 Disable FEC (#2670)
* Remove incorrect usage of FEC

* Return instead of await
2023-04-18 18:12:05 +02:00
Misha133
d5ba7d25aa initial commit (#2666) 2023-04-15 03:36:07 +02:00
Misha133
dff6a57a92 [Feature] Audit Log Created gateway event support (#2627)
* add event to socket client

* make `AuditLog` param optional

* Some WIP audit log changes

* api models

* moar models

* complete models

* modelsss

* forgot to push

* oh lol forgot this too

* api & rest guild method

* revert VS being VS & formatting to file scoped namespace

* socket entities

* some work eh

* moar stuff

- switched to d.net's attribute for audit log deserialization

* working socket guild updated event + reworked rest GuildInfo creation

* a bit of refactoring + new models

* +channel created

* channel updated & channel deleted

* refactor rest channel updated log + some nullable fixes

* rest channel created + deleted logs

* user banned socket log

* kick + unban

* moar log modelsssss

* fixes & 4 more log types

* overwrite logs

* role logs

* invite logs

* webhook logs

* switch to `ISocketAuditLogData` for socket log data

* emote logs

* move stuff around

* move more stuff around

* audit logs cache

* scheduled event logs

* thread logs

* command permission update audit log

* fetch scheduled event data from log

* integration audit logs

* sticker audit log data

* stage instance audit logs

* auto mod rule audit logs

* fix

* forgot couple props

* command perm updated data from options

* final automod ones

* debugging goes away :(

* merge cringe

* ...

* yup

* fix xml doc

* onboarding audit logs

* changes

---------

Co-authored-by: cat <lumitydev@gmail.com>
2023-04-15 01:13:02 +02:00
Misha133
3a8f76c4b1 [Feature] Guild Onboarding support (#2616)
* api models

* moar models

* complete models

* modelsss

* forgot to push

* oh lol forgot this too

* api & rest guild method

* revert VS being VS & formatting to file scoped namespace

* socket entities

* yup

* fix xml doc

* changes
2023-04-15 01:08:30 +02:00
Ben Reilly
84431decfd [Fix] Don't dispose streams in DefaultRestClient (#2652)
* Duplicate file streams before sending

* Other code needs to dispose their objects

* Another resource to dispose

* Stop disposing and copying streams in SendAsync

* Fix inverted boolean check

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>

* Await results for using statement to work

---------

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>
2023-04-15 01:07:12 +02:00
Ben Reilly
69cce5baf2 [Fix] Enforce rate limits on 429s (#2642)
* Reduce available requests to zero on 429

* Update remaining requests when available

* Fix typo

* Use -1 for unlimited

* Update rate limit once per request
2023-04-15 01:06:47 +02:00
Christopher Bonnell
23e27e0b49 [Fix] Interaction Framework Choice mistake (#2660) 2023-04-15 01:05:29 +02:00
Misha133
98f974d0bb [Feature] 25MiB file upload size limit (#2663) 2023-04-15 01:05:04 +02:00
Misha133
f171684af1 [Feature] Voice messages support (#2665) 2023-04-15 01:04:41 +02:00
Cenk Ergen
fe9657a0ee replace duplicate InvokeAndReturn wit return statement (#2662) 2023-04-12 08:14:10 +02:00
Florian Pabst
75ae48830e Update EnumConverter and ApplicationCommandOption to register localizations (#2651) 2023-04-02 22:03:05 +02:00
Discord-NET-Robot
a8ae1e9b9f [Robot] Add missing json error (#2601)
* Add 30056, 50091, 50144, 50145 Error codes

* Apply suggestions from code review

Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com>

---------

Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop>
Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com>
Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com>
2023-03-31 13:54:03 +02:00
Misha133
9ef5a768e0 [Feature] Get current bot application information (#2619)
* initial commit

* Add support for modifying current bot's app
2023-03-31 13:36:26 +02:00
Misha133
898ee56557 [Feature] Refactor SendMessageAsync & SendFile(s)Async methods & modify webhook message attachments (#2609)
* initial commit

* resolve merge conficts

* code review suggestions
2023-03-31 13:26:09 +02:00
Misha133
c950106fed [Fix] Allow creating stickers with no description (#2628)
* fix `CreateStickerAsync` methods

* Update src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>

* fix some parameter names in precontion checks

---------

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>
2023-03-31 13:24:55 +02:00
Misha133
f9c8530a89 [Feature] Default thread ratelimit in guild text channels (#2622)
* initial commit

* mocked bruh
2023-03-31 13:22:00 +02:00
Alexander Elo
529fe3d969 Support filtering audit log entries by after id (#2620)
Adds support for filtering audit log entires with GetAuditLogsAsync. Adds the ability to specify an afterId as specified on [Discord developers docs](https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log).
2023-03-31 13:21:27 +02:00
Collin Herber
4b4b6078b3 Update intro.md (#2623) 2023-03-31 13:19:38 +02:00
Ge
8ccc163fcd Missing DebuggerDisplay attribute or property (#2630) 2023-03-31 13:19:09 +02:00
Misha133
6265dd5bf6 [Fix] Update permissions & fix ChannelPermissions.All() exception (#2647)
* update permissions

* update tests & bruh moment

* apply suggestions from review

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>

* fix comments

---------

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>
2023-03-31 13:18:42 +02:00
Misha133
0720049648 [Feature] Create forum channels with default layout (#2646) 2023-03-31 13:15:44 +02:00