Commit Graph

3710 Commits

Author SHA1 Message Date
Christopher Long
0f37677c59 [Docs] Update receiving-context-menu-command-events.md (#2786)
Use correct casing
2023-10-05 11:59:40 +03:00
Mihail Gribkov
a9a8da4d77 [Feature] App subscriptions №2 (#2784)
* what a big commit lel, add app sub enums

* work

* ah yup lol

* `?`

* events 1

* typo

* `list` => `get` | remaining events

* add `RespondWithPremiumRequiredAsync` to interaction module base

* sharded client fixes for app premium subs
2023-09-30 12:46:15 -04:00
Mihail Gribkov
7723f61072 [Feature] Premium subscriptions (#2781)
* what a big commit lel, add app sub enums

* work

* ah yup lol

* `?`

* events 1

* typo

* `list` => `get` | remaining events

* add `RespondWithPremiumRequiredAsync` to interaction module base
2023-09-30 09:39:28 -04:00
FluffyDoggo
8baf913c9d [Fix] Some IDiscordClient methods are not properly implemented in clients (#2774)
* Add proper implementations of CreateGlobalApplicationCommand and BulkOverwriteGlobalApplicationCommand

* Update all shards
2023-09-15 08:46:51 +03:00
zobweyt
8591de7119 [Feature] Add useful utility methods to ModalBuilder (#2773)
* Add method to get a component of type

* Add methods to update a component

* Add methods to remove a component(s)

* Add missing `row` parameter to wrapper

* Update XML documentation

* Reorder properties to follow coding style

* Remove unnecessary usings to follow coding style

* Fix build usings

* Fix XML documentation

* Add `null` checks to remove methods

* Fix empty constructor

* Fix `CustomId` setter

* Update src/Discord.Net.Core/Entities/Interactions/Modals/ModalBuilder.cs

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

* Fix `GetComponent` to return null

* Fix XML documentation

* Add `null` checks

* Update src/Discord.Net.Core/Entities/Interactions/Modals/ModalBuilder.cs

* Update src/Discord.Net.Core/Entities/Interactions/Modals/ModalBuilder.cs

* Update src/Discord.Net.Core/Entities/Interactions/Modals/ModalBuilder.cs

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

---------

Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com>
2023-09-02 21:03:54 +03:00
Mike
a668757669 Fix UpdateAsync Remove Attachment Bug (#2766)
* Similar to PR #2742 but this now fixes the UpdateAsync attachments bug.

* Update functions.

* `Update` => `UpdateAsync`

---------

Co-authored-by: Misha133 <mihagribkov133@gmail.com>
2023-09-02 20:18:35 +03:00
Sauceke
589c58adb0 [Fix] URL encode timestamps sent as query parameters (#2770)
* [Fix] URL encode timestamps sent as query parameters
2023-09-02 19:53:30 +03:00
Ge
75cf622771 [Fix] Silent NRE in integration tests (#2768) 2023-08-27 22:28:26 +03:00
Declan Messer
ae275ab3a7 [Fix] Additional Update/Modify Async Attachment's (#2753) 2023-08-21 23:27:23 +03:00
Gersti
171f95d49c Fixed a typo on the documentation homepage. (#2761) 2023-08-14 12:05:01 +00:00
Misha133
7bfeb98265 Update issue & PR templates (#2755)
* Update bugreport.yml

* Update PULL_REQUEST_TEMPLATE.md
2023-08-12 12:09:08 +00:00
Quin Lynch
185ee7d28f meta: 3.12.0 (#2751) 2023-08-10 14:02:30 +00:00
Declan Messer
0c120796c4 ModifyAsync Attachments Bug Fix #2236 (#2742)
* ModifyAsync Attatchment Bug Fix

* Resolved UploadWebhookFileParams Bug when passing through null attatchment obj.

* Grammar.

* Update src/Discord.Net.Rest/Entities/Interactions/InteractionHelper.cs

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

---------

Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com>
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-08-10 16:43:09 +03:00
BokuNoPasya
5fb9152db3 [Feature] Add missing remove property to MemberRoleAudit (#2675)
* Adding the missing remove property to MemberRoleAudit

* fix

* Update src/Discord.Net.WebSocket/Entities/AuditLogs/DataTypes/SocketMemberRoleEditInfo.cs

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

* Update src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/MemberRoleEditInfo.cs

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 16:34:40 +03:00
José Santos Garrido
c92249702b [Fix] GetMessagesAsync with Direction.After not working as expected #2744 (#2745)
* Fixed GetMessagesAsync with Direction.After issue #2744

* Fixed GetMessagesAsync with Direction.After issue #2744
2023-08-10 16:33:56 +03:00
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