4020 Commits

Author SHA1 Message Date
enonibobble
aa424f6f37 Enable nuget debug symbols. (#2929) 2024-05-12 22:17:52 +03:00
Alex Thomson
a59f4ba62e Add missing PollProperties (#2927) 2024-05-12 11:37:47 +03:00
Mihail Gribkov
9dd67b2f69 meta: 3.15.0 (#2925) 2024-05-11 19:00:41 -04:00
zobweyt
1a5cba875d [Feature] Parameter precondition attribute for simplifying performing hierarchical operations within a guild (#2906)
* Support interaction framework and update bundled preconditions docs

* Support text commands and update bundled preconditions docs

* Fix example

* Move hierarchy util to `PermissionUtils`

* Refactoring
2024-05-12 01:27:15 +03:00
Mihail Gribkov
476ec068f1 [Feature] Polls (#2902)
no breakings hopefully
2024-05-11 20:34:12 +00:00
ImNoOSRS
5dadcb2e30 RequireRole permission for commands. (#2923)
* Create RequireRoleAttribute.cs

* Apply suggestions from code review

---------

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
2024-05-11 23:27:59 +03:00
Zach Goodson
753724d15c Create RequireTeamAttribute.cs (#2903)
* Create RequireTeamAttribute.cs

* Fix Attribute Doc

* Attempt to Fix NULL Cases.

* Fix NULL check (oops).

* Add RequireTeamAtttribute to preconditions.md

* Fix Typo
2024-05-11 23:24:38 +03:00
Proddy
93cb71af57 Fix null error when using a SelectMenuBuilder constructor (#2924)
* Fix null error when using a `SelectMenuBuilder` constructor

* Update references to `Options` to support `null`
2024-05-11 23:23:51 +03: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
Quin Lynch
83fdc8917e Fix: NRE with rest interactions & no api call (again) (#2922)
* init

* add better error message in this case
2024-05-11 23:21:12 +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
Mihail Gribkov
f85bf9ac48 bettah bulk bans (#2915) 2024-04-23 00:13:31 +03:00
Mihail Gribkov
27a0785653 .Distinct() roles(ids) in IGuildUser.ModifyAsync (#2914) 2024-04-23 00:13:15 +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
Quin Lynch
13ea5664e1 Fix: RestDMChannel relies on recipient (#2910)
* don't assume we have a DM user

* also check nullable for Update/GetUser

* Update src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs

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

---------

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
2024-04-15 18:24:00 +00:00
Quin Lynch
397a887719 Fix: Don't rely on Guild for id (#2911) 2024-04-15 15:22:06 -03:00
Mihail Gribkov
69fb1eb0a6 ._. (#2909) 2024-04-15 15:21:50 -03:00
Adam Gauthier
b70e21ba28 [Feature] Support options in Rest's AddRoleAsync (#2908)
Adding support for passing RequestOptions to DiscordRestClient's role
methods. Seems like it was just forgotten when the methods were added.
2024-04-15 10:13:40 +03:00
Nora
031ed60ebc [Docs] Updates and tweaks. (#2907)
* Update to docfx 2.76.0 and fix newly introduced issue.

* Enable affix in index page.

* Fix some missing references in docs.

* Fixed some more references in docs.

* Update docs workflow to 2.76.0.
2024-04-13 23:23:12 +00:00
Mihail Gribkov
7aab36606b Remove analyzer project & resolve some build warnings (#2905)
* yeet analyzer & analyzer test

* fix test warning

* yeet analyzer from the workflow

* resolve more warnings

* forgot to push
2024-04-14 00:01:07 +03:00
Mihail Gribkov
678a080756 [Docs + CI] Yeet MyGet (#2904)
* Update index.md

* Update README.md

* Update dotnet.yml
2024-04-13 23:40:01 +03:00
Jeroen Heijster
3f05f42aa8 Update CHANGELOG.md (#2901) 2024-04-10 12:11:09 +03:00
Mihail Gribkov
d14d89dd18 Update status badges in readme & docs (#2888)
* Update README.md

* Update index.md
2024-04-09 18:58:06 +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
Zach Goodson
787a913625 Fix buttons-in-depth Table / Typo. (#2897)
* Fix Typo, Table Display in buttons-in-depth.md

* Remove Random Quotes in buttons-in-depth.md
2024-04-02 09:38:26 +03:00
Nora
3598ea4873 [Docs] Icon consistency. (#2895)
* Fix navbar brand (and work around annoying chromium bug).

https://issues.chromium.org/issues/41176872

* Update favicon to new logo.

* Update discord badges.
2024-03-29 19:01:02 +03:00
Liege72
a1e8f6e39b [Docs]: New branding for website (#2894)
updates the svgs on the docs website
2024-03-28 20:17:04 -03:00
Dmitry
51a1137462 Fix docs DI picture appearance (#2890) 2024-03-23 19:40:45 +03:00
Mihail Gribkov
13e22b14fd [CI] Push CNAME to static docs repo (#2887) 2024-03-21 13:00:21 -03:00
Mihail Gribkov
baee7c1ca6 [CI] fix tag build version (#2886)
* [CI] Fix tag build version

* fix this thing.
2024-03-19 02:21:45 +03:00
Mihail Gribkov
73d63e1625 meta: 3.14.0 (#2884) 2024-03-18 17:50:01 -04:00
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
Nora
473b13e75f Improve and modernize docs. (#2882)
* Add proper home landing page.

* Improve landing page considerably.

* Add navbar library name.

* Fix css rules.

* Update getting started images.

* Change favicon to the navbar's logo.

* Tiny change to docs index.

* Add title to home landing page.

* Tweak build overrides faq page.

* Fix FAQ article titles and headers.

* Fix FAQ article titles and headers.

* Replace channel 9 with the official .net course.
2024-03-18 20:39:43 +03:00
Mihail Gribkov
03402cd4d2 [Feature] Bulk ban support (#2881) 2024-03-16 01:22:23 +03:00
Nora
3331614a7a [Docs] Fix inline code blocks and misc tweaks. (#2878)
* Fix code blocks and list items having overlap if they contain code blocks.

* Fixes for interaction framework intro guide.

* Add NuGet icon to top navbar.

* tweak action triggers

* Fix mobile navbar links.

* Add relatively ugly hack to improve toc filter functionality.

---------

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
2024-03-15 08:02:25 +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
d68e06e27d [CI] Retire azure pipelines (#2877)
* Delete azure-pipelines.yml

* Update dotnet.yml

* Delete azure directory
2024-03-13 17:51:52 +00:00
Mihail Gribkov
def372cb31 [CI] Add workflow job names (#2876) 2024-03-13 14:37:40 -03:00
Mihail Gribkov
19c3a3a4aa [CI] Update docs.yml (#2874) 2024-03-12 14:06:40 -03:00
Mihail Gribkov
f9a4dffc6b [CI] More deploy fixes (#2872) 2024-03-07 16:14:20 -05:00
Mihail Gribkov
94c618e275 Fix deploy workflow (once again) 🐒 (#2871) 2024-03-07 16:02:15 -05: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
e61d44ec3f Update docs.yml (#2861) 2024-02-26 14:01:29 +03:00