Commit Graph

3129 Commits

Author SHA1 Message Date
Mihail Gribkov
24a69785fe [Feature] Initial user apps support (#2883)
* omg it kinda works somehow

* more things added

* a bit of xmldocs

* added interaction framework support

* working? IF

* more builder stuff

* space

* rename attribute to prevent conflict with `ContextType` enum

* context type

* moar features

* remove integration types

* trigger workflow

* modelzzzz

* `InteractionContextType`

* allow setting custom status with `SetGameAsync`

* bugzzz

* app permissions

* message interaction context

* hm

* push for cd

* structs lets goooo

* whoops forgot to change types

* whoops x2

* tweak some things

* xmldocs + missing prop + fix enabled in dm

* moar validations

* deprecate a bunch of stuffz

* disable moar obsolete warnings

* add IF sample

* Apply suggestions from code review

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

* Update src/Discord.Net.Rest/Entities/RestApplication.cs

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

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2024-03-18 21:24:05 +00:00
Mihail Gribkov
bfc8dc229e Update library dependencies (#2806)
* bump dependencies

* sealed class

* forgot to push

* downgrade `IDisposableAnalyzers` to `4.0.2`

* also forgot to push

* Update docs.yml

* samples => `net8.0` | deps more up to date

* mark as non-trimmable & remove some cringe conditions

* format for beauty
2024-03-19 00:23:01 +03:00
Mihail Gribkov
03402cd4d2 [Feature] Bulk ban support (#2881) 2024-03-16 01:22:23 +03:00
Mihail Gribkov
4efe3be301 yeah it's sadge (#2880) 2024-03-14 19:25:26 -04:00
Mihail Gribkov
d0c0a56884 [Feature] Support setting banner on bot profiles (#2879) 2024-03-14 22:30:23 +00:00
Богдан Петренко
09680c51ac [Feature] Voice reconnection and resuming (#2873)
* Voice receive fix (use system-selected port)

* Update SocketGuild.cs

* Reconnect voice after moved, resume voice connection, don't invoke Disconnected event when is going to reconnect

* no more collection primitives

* Disconnected event rallback & dispose audio client after finished

* Update src/Discord.Net.WebSocket/Audio/AudioClient.cs

* Update src/Discord.Net.WebSocket/Audio/AudioClient.cs

---------
2024-03-14 12:33:41 +03:00
Mihail Gribkov
fc2fc87708 [Feature] SentRequest event (#2870) 2024-03-04 21:36:11 +03:00
Mihail Gribkov
fa51f0a86f Fix optional param being non-optional (#2869) 2024-03-02 01:06:46 +03:00
Mihail Gribkov
2787db3eaa [Fix] InteractionService.AddModulesXAsync command duplication (#2867) 2024-02-27 14:14:59 +03:00
Mihail Gribkov
955fae01a0 [Fix] Incorrect ConnectionState of a DiscordSocketClient casted to IDiscordClient/BaseSocketClient 2024-02-26 14:04:55 +03:00
Mihail Gribkov
5a62ba1af4 [Feature] Allow switching voice channels without disconnecting (external clients only) (#2866)
* eh well it should work

* fix issues

* make sure an external client is used
2024-02-26 13:54:18 +03:00
Proddy
6870ac5386 Fixed a bug when creating a SelectMenuBuilder from a SelectMenuComponent incorrectly set the CustomId (#2862) 2024-02-24 17:32:18 +00:00
Mihail Gribkov
eb5678aea5 [Feature] Add Icon size parameter to GetGuildIconUrl CDN method (#2832)
* we need biggah iconssss
2024-02-24 03:09:29 +03:00
Mihail Gribkov
7c96844f17 [Fix] Allow setting channel topic to null when creating channels (#2849) 2024-02-23 23:51:31 +00:00
Mihail Gribkov
4a05ba5e8a [Docs] Add NUGET_README.md (#2844)
* add `NUGET_README.md`

* Update NUGET_README.md

* Update NUGET_README.md
2024-02-24 02:33:54 +03:00
Богдан Петренко
1a16f4d271 [Fix] Receiving voice packets (use system-assigned port) (#2857)
* Voice receive fix (use system-selected port)

* Update SocketGuild.cs

---------

Co-authored-by: Misha133 <mihagribkov133@gmail.com>
2024-02-23 22:17:07 +00:00
Mihail Gribkov
9a7bd05c28 [CI] New build action + Build framework on linux (#2848)
* Create dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* pragma disable some obsolete warnings

* Update dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* update vars for windows

* cache? dotnet

* oops forgot to save

* add concurrency

* test deploy

* fix?

* disable caching

* Update dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* ...

* Update dotnet.yml

* it should build now. maybe. probably

* huh?

* huh x2

* disable deploy on PRs / enable cache

* publish test results

* Update dotnet.yml

* remove cache cuz it's useless

* Update dotnet.yml

* push to github packages cuz why not

* add toggle vars for pushes

* Update dotnet.yml

* uncomment release since there's a toggle now
2024-02-23 23:31:04 +03:00
Mihail Gribkov
ee386b1a15 Allow setting custom status with SetGameAsync (#2858) 2024-02-22 21:02:57 +00:00
FluffyDoggo
6256de42bc Refactor MaxBitrate and UploadLimit in GuildHelper (#2854) 2024-02-19 11:59:14 +03:00
Mihail Gribkov
1eb7a53f78 [Fix] NRE in automod audit logs (#2850)
* fix nre

* no breakings :(
2024-02-15 20:29:33 +03:00
Mihail Gribkov
a1987021fe Meta 3.13.1 (#2842)
* Update Discord.Net.targets

* Update docfx.json

* Update Discord.Net.nuspec

* Update CHANGELOG.md

* Update docs/docfx.json

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

---------

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2024-02-11 20:58:01 +00:00
Mihail Gribkov
f1777de164 Allow creating announcement channels (#2837) 2024-02-11 23:48:40 +03:00
Mihail Gribkov
4d7e384e51 no fun for ya all (#2835) 2024-02-11 23:47:43 +03:00
Nora
dc8e0e329d Get docs working on latest docfx version. (#2778)
* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Re-add search index extractor.

* [Docs] Use material theme and override derived tree style.

Also adds a tiny GitHub icon on the navbar.

* [Docs] Exclude DebugTools project.

* [Docs] Use better method for overriding things.

Totally not because DocFX won't allow me to have an override template.

* [Docs] Improve styling overrides.

* [Docs] Fix links in FAQs and guides.

* [Docs] Use new xref service.

The old xref service is being deprecated by the end of the year.
See https://github.com/dotnet/docfx/issues/8958

* [Docs] Replace (c) with proper copyright symbol.

* [Docs] Fix formatting in docfx.json file.

Thanks, VSCode.

* [Docs] Remove non-working post processors.

They don't work, and *personally* I feel like they're unnecessary considering you can check the last modification date in the (linked) GitHub page. I honestly have no idea what the other post processor does and honestly the code doesn't help much either.

* [Docs] Fix "in this article" being too thin.

Fixes https://github.com/discord-net/Discord.Net/pull/2778#issuecomment-1748812077

* [Docs] Get examples working again.

* [Docs] Make properties be separated more clearly.

* [Docs] Change docs index to reflect the new nightly MyGet feed.

* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Re-add search index extractor.

* [Docs] Use material theme and override derived tree style.

Also adds a tiny GitHub icon on the navbar.

* [Docs] Exclude DebugTools project.

* [Docs] Use better method for overriding things.

Totally not because DocFX won't allow me to have an override template.

* [Docs] Improve styling overrides.

* [Docs] Fix links in FAQs and guides.

* [Docs] Use new xref service.

The old xref service is being deprecated by the end of the year.
See https://github.com/dotnet/docfx/issues/8958

* [Docs] Replace (c) with proper copyright symbol.

* [Docs] Fix formatting in docfx.json file.

Thanks, VSCode.

* [Docs] Remove non-working post processors.

They don't work, and *personally* I feel like they're unnecessary considering you can check the last modification date in the (linked) GitHub page. I honestly have no idea what the other post processor does and honestly the code doesn't help much either.

* [Docs] Fix "in this article" being too thin.

Fixes https://github.com/discord-net/Discord.Net/pull/2778#issuecomment-1748812077

* [Docs] Get examples working again.

* [Docs] Make properties be separated more clearly.

* [Docs] Change docs index to reflect the new nightly MyGet feed.

* [Docs] Fix index image not switching when changing themes.

Co-Authored-By: exsersewo <25526843+exsersewo@users.noreply.github.com>

* add updated description generator postprocessor

* update postprocessor

* got it working

* downgrade postprocessor docfx

* [Docs] Add left margin to side navigation links.

* remove dup docs cuz `<inheritdoc />`

---------

Co-authored-by: exsersewo <25526843+exsersewo@users.noreply.github.com>
Co-authored-by: Misha133 <mihagribkov133@gmail.com>
Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
2024-02-11 18:51:10 +00:00
Mihail Gribkov
89efe0f3ad no whitespace for ya (#2831) 2024-01-25 14:08:15 +03:00
Mihail Gribkov
541571c9c7 [44] 44 (#2827)
* 44

* 44 44

44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44
2024-01-17 10:47:56 +00:00
Mihail Gribkov
30ccb2c83b Revert pr (Revert 12179a93d7) (#2826) 2024-01-16 22:25:57 +00:00
Cenk Ergen
0f0f3f7614 Log InteractionCommand execution exceptions in Wrapped Exception (#2584)
* log command execution exceptions in wrapped obj

* actually log the wrapped exception

---------

Co-authored-by: Misha133 <mihagribkov133@gmail.com>
2024-01-16 22:06:29 +00:00
Cenk Ergen
5a8582cb6a Optional Aliasses, Summary and Remarks Properties to CommandAttribute (#2700)
* add optional remarks, aliases and summary properties to the CommandAttribute

* fix inline doc typo

* add CommandAttribute Aliasses prop integration

* add CommandAttribute Aliasses prop integration

* add ctor with new params

---------

Co-authored-by: Misha133 <mihagribkov133@gmail.com>
2024-01-16 21:22:43 +00:00
Cenk Ergen
12179a93d7 Add generic [AutocompleteAttribute] (#2611)
* add generic AutocompleteAttribute

* fancy syntax

* it didn't work -_-

---------

Co-authored-by: Misha133 <mihagribkov133@gmail.com>
2024-01-17 00:11:29 +03:00
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
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
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