Commit Graph

3742 Commits

Author SHA1 Message Date
Mihail Gribkov
138e18cb7a [Fix] GetEventCoverImageUrl throwing NRE in case event cover image is null (#2818)
* return null instead of throwing NRE

* fix xmldoc
2024-01-11 22:29:07 +03:00
Mihail Gribkov
e2e8c0fd6a Update sample projects & samples in docs (#2823)
* update them all

* more docs

* moar docs
2024-01-11 15:25:56 +00:00
Mihail Gribkov
8227d70b86 fix exception not being logged (#2800) 2023-12-26 14:08:52 +03:00
Mihail Gribkov
d234db70a0 [Fix] Incorrect xmldoc (#2807)
* Fix incorrect xmldoc

* Apply code-review suggestion (nice catch :) )

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

---------

Co-authored-by: Dmitry <dimson-n@users.noreply.github.com>
2023-12-26 14:08:14 +03:00
Mihail Gribkov
de4b6b9f27 [Fix] Incorrect json model for Guild Scheduled Event (#2813)
* fix some cringe

* whoooooooops
2023-12-26 10:34:10 +03:00
Mihail Gribkov
d382e5cd48 [Feature] Audit log integration type (#2814)
* why do I do this instead of preparing for an exam

* oh yeah nullable ofc

* oh yeah
2023-12-26 01:34:25 +03:00
Mihail Gribkov
079a98fbdd [Feature] Add AppliedTags to DiscordWebhookClient.SendXAsync (#2805) 2023-12-05 01:37:51 +03:00
Mihail Gribkov
b18cc31108 [Fix] Add null check in SelectMenuBuilder (#2801) 2023-12-04 01:22:42 +03:00
Mihail Gribkov
178ff58547 [Feature] Incident actions message types (#2804) 2023-12-04 00:06:47 +03:00
Quin Lynch
49940536a7 meta: 3.13.0 (#2797) 2023-11-18 21:59:02 +00:00
Dmitry
86655a8157 [Refactor] Remove some unnecessary async/await (#2739)
* Remove some unnecessary async/await

* More not-so-async stuff

* More not-so-async stuff

* Fix merge issue
2023-11-18 21:29:14 +00:00
Mihail Gribkov
699554ad11 [Features] Automod member profile moderation, new application fields, use clyde ai & guild invenory settings (#2791)
* guild inventory settings

* `UseClydeAI` (1L << 47) permission

* automod member profile moderation

* Dnet: The Enums update (new application fields)

* ah yeah, `IApplication`

* some oversights

* y did I change this

* oh bruh nvm

* `CreateGuildExpressions` permission

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-11-18 21:15:20 +00:00
Mihail Gribkov
89bebc361a poggers (#2796) 2023-11-18 16:08:51 -05:00
Declan Messer
b988a18625 [Refactor] Replace Moq with NSubstitute for Mocking in GuildHelperTests (#2754)
* [Refactor] Replace Moq with NSubstitute for Mocking in GuildHelperTests

* [Refactor] Remove Redundant Assignment of 'output' Parameter

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-11-18 20:57:42 +00:00
Mihail Gribkov
9fd5c6c27e [Feature] Super reactions support (#2707)
* super reactions

* add type to `GetReactionUsers` methods

* add `MeBurst`
2023-11-18 15:57:11 -05:00
Mihail Gribkov
e3cd340dcc [Feature] Media channel support (#2725)
* initial commit

* oops

* another typo -_-

* Update AttachmentFlags.cs

Made this on my phone lol

* Update AttachmentFlags.cs

* -line

* initial impl

* some guild methods for media (and forum) channels

* file attachment can be a thumbnail

* can't edit media channel layout

* updatess

* Update ChannelPermissions.cs

* typo
2023-11-18 15:56:14 -05:00
José Santos Garrido
9cedfbcdd9 Use Discord heartbeat interval in audio. (#2765)
Reduce heartbeat interval to ensure Discord receives it within range.
Refactor some AudioClient code.

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-11-18 20:52:48 +00:00
Markus Oppmann
8d5022acb8 Fix Slash Command Localizations lost after AddCommandsToGuildAsync and deleteMissing = false (#2758)
fetch localizations when adding commands with `deleteMissing` = `false`

fixes #2757
2023-11-18 15:51:54 -05:00
Mihail Gribkov
ab3b30dee4 [Fix] Missing null checks in RoleConnectionProperties (#2759)
* add null check

* more null checks
2023-11-18 15:50:55 -05:00
Mihail Gribkov
5cfec056cb Fix SocketKickAuditLogData User never having value (#2763) 2023-11-18 15:50:35 -05:00
zobweyt
b1787d8334 [Refactor] Extract GetDisplayAvatarUrl in IUser (#2771)
* Implement `GetDisplayAvatarUrl` method

* Remove obsolete example

* Update XML documentation

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2023-11-18 20:50:17 +00:00
Mihail Gribkov
ac274d4b76 [Feature] Select menu default values (#2776)
* initial commit

* docs & readonly
2023-11-18 15:44:16 -05:00
Mihail Gribkov
8060dcf4ae [Feature] Voice channel status support (#2777)
* initial commit

* MOCKED CHANNELS AGRHHHHHHHH

* fix for sharded

* yup
2023-11-18 15:42:14 -05:00
Mihail Gribkov
8e4d449615 Remove checks from UpdateAsync methods (#2790) 2023-11-18 15:38:46 -05:00
Mihail Gribkov
f64d9d6f22 [Feature] Avatar decorations support (#2782)
* yup

* nullable...

* add props & methos to `GuildUser` & `IUser`
2023-11-18 15:38:36 -05:00
Mihail Gribkov
b45b7743a5 create roles with icons (#2792) 2023-11-18 15:35:51 -05:00
haise_san
52bc3b807e Fixed broken link (#2794)
Link pointing to the First bot guide was outdated, now changed to the correct new address.
2023-11-05 00:14:58 -04:00
Moons
b6ee263b52 [Fix] Typo in InteractionFramework intro (#2793) 2023-11-05 00:55:57 +03:00
Mihail Gribkov
9b36df3c55 [Feature] Guild incident actions (#2783)
* initial commit

* <see langword="null"/> notes
2023-11-02 02:18:29 -04:00
zobweyt
4e78aec2d0 [Fix] Add missing parameters to RespondWithModalAsync methods and implement missing overloads (#2769)
* Added missing modifyModal parameters to RespondWithModalAsync methods

* Fix typo

* Remove unnecessary parts

* Add missing `options` parameter

* Add missing overload

* Use `.Invoke` with `null` check to simplify

* Remove code duplication

* Remove code duplication

* Add missing payload to `RestInteractionModuleBase`
2023-10-18 00:31:56 +03:00
Karlo
33e8340765 [Fix] Prevent multiline values in short TextInputs (#2789)
* Prevent multiline values in short Textinputs

* Change exception

* Move check to build method

* Update src/Discord.Net.Core/Entities/Interactions/MessageComponents/ComponentBuilder.cs

---------

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
2023-10-17 17:43:56 +00:00
Mihail Gribkov
7b5c40aab6 [Fix] Embed ToJsonString & (Try)Parse (#2787)
* fix

* EmbedBuilderUtils

* lazy

* xmldocs...
2023-10-05 19:10:01 +03:00
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