Commit Graph

279 Commits

Author SHA1 Message Date
Mihail Gribkov
3e7ab0915f [Docs] Document Polls (#2930)
* poll docs

* oopsie
2024-05-27 14:50:38 +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
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
Mihail Gribkov
69fb1eb0a6 ._. (#2909) 2024-04-15 15:21:50 -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
678a080756 [Docs + CI] Yeet MyGet (#2904)
* Update index.md

* Update README.md

* Update dotnet.yml
2024-04-13 23:40:01 +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
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
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
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
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
d0e9c8bd97 [Docs] Remove some redundant notes & small updates (#2847)
* remove outdated notes

* Update general.md

* Update creating-slash-commands.md

* Update add note about interaction framework

* typo

* use xref

* Update intro.md

* improve docs workflow

* Update README.md
2024-02-24 14:22:14 +03:00
Mihail Gribkov
0860e327d5 [Docs] Add a note about required intents to the voice docs (#2860) 2024-02-23 18:31:16 -05:00
Nora
61ba44cdce Improve new docs site. (#2843)
* Improve parameter padding and add discord link.

* Update xref service for docs.

Reason: https://github.com/dotnet/docfx/issues/9659

* Update docs readme to specify docfx version.

* Update to latest DocFX.

* update action & add manual trigger
2024-02-13 21:30:22 +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
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
th0mk
f23481a3c5 Add OpenCollective links to readme + docs (#2821)
* Add OpenColllective to readme

* Add OpenCollective to docs index
2024-01-17 01:30:52 +03:00
Mihail Gribkov
ff9b9b4256 [2024] Very important changes (#2819)
* very important changes

* waaaaaaa, gotta also update License
2024-01-11 22:29:37 +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
Quin Lynch
49940536a7 meta: 3.13.0 (#2797) 2023-11-18 21:59:02 +00: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
Christopher Long
0f37677c59 [Docs] Update receiving-context-menu-command-events.md (#2786)
Use correct casing
2023-10-05 11:59:40 +03:00
Gersti
171f95d49c Fixed a typo on the documentation homepage. (#2761) 2023-08-14 12:05:01 +00:00
Quin Lynch
185ee7d28f meta: 3.12.0 (#2751) 2023-08-10 14:02:30 +00:00
Misha133
184a536f95 [Docs] Add interaction response schemes (#2736)
* docfx 💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀

* updates
2023-08-10 15:41:19 +03:00
Quin Lynch
a9ba97af36 meta: 3.11.0 (#2709) 2023-06-27 12:13:06 -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
Christopher Bonnell
23e27e0b49 [Fix] Interaction Framework Choice mistake (#2660) 2023-04-15 01:05:29 +02:00
Collin Herber
4b4b6078b3 Update intro.md (#2623) 2023-03-31 13:19:38 +02:00
Quin Lynch
9ccd9cf75b meta: 3.10.0 (#2639) 2023-03-27 10:07:25 +00:00
Ge
ee617d8ef3 Fix typos in comments and documentation (#2608)
* Fix typos in comments and documentations

* Fixes more typo
2023-02-26 20:49:16 +01:00
Jan
71e9ecb21e Fix example of documentation (#2594) 2023-02-09 21:59:17 +00:00
Casmir
59c2008eaa Doc patch (#2587) 2023-02-07 13:44:44 +00:00
Misha133
e3da96fbf5 [Feature] Expose GetCurrentUser method & missing current user API methods (#2574)
* add stuff

* forgot to push

* docs

* Update DiscordRestClient.cs

* Apply suggestions from code review

* Update toc.yml

---------

Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com>
2023-02-06 17:20:54 +01:00
Zach Goodson
4aded83ab6 Fixed typo in code example. (#2552) 2023-01-21 11:47:39 +01:00
Ikko Ashimine
1d53ea7679 [Docs] Fix typo in autocompletion.md (#2548)
Interations -> Interactions
2022-12-25 16:53:00 -04:00
Misha133
48fb1b5df4 [Feature] Selects v2 support (#2507)
* Initial support for new select types

* Merge branch 'dev' of https://github.com/discord-net/Discord.Net into dev

* some component&action row builder additions

* remove redundant code

* changes1

* maybe working rest part?

* working-ish state?

* fix some xml docs & small rework

* typos

* fix `ActionRowBuilder`

* update DefaultArrayComponentConverter to accomodate new select-v2 types

* now supports dm channels in channel selects

* add a note to IF docs

* add notes about nullable properties

* <see langword="null"/>

* update Modal.cs

Co-authored-by: cat <lumitydev@gmail.com>
Co-authored-by: Cenngo <cenk.ergen1@gmail.com>
2022-12-25 13:41:15 +01:00
Misha133
56b1a930e7 [Feature] Age restricted (NSFW) application commands support (#2531)
* add `nsfw` to data model & internal methods; add missing property

* add `nsfw` prop to command builders

* add `NsfwCommandAttribute` to Interaction Framework

* working state

* docs?
2022-12-20 01:00:56 +03:00
Halbritter
20d8fdf0bf Fully qualify SlashCommandBuilder namespace (#2534)
Update to make sure its cleear which SlashCommandBuilder is used.
2022-12-16 14:08:42 -04:00
Armano den Boef
55280a569e meta 3.9.0 (#2517)
* meta 3.9.0

* Update changelog
2022-11-25 05:47:43 -04:00
Payton
ea039b848c Update events.cs (#2505)
Fixed compiler error caused by missing semicolon
2022-11-07 17:26:18 +01:00
Misha133
a4d34f6947 [Docs] Update samples to use MessageContent intent & update v2 => v3 guide (#2471) 2022-09-25 22:27:14 +02:00
Quin Lynch
9c5f1ecb0d meta: 3.8.1 (#2464) 2022-09-14 15:09:54 -03:00