Commit Graph

219 Commits

Author SHA1 Message Date
Armano den Boef
246282dda3 docs: Improve IF cmd execution docs (#2405)
Adds samples and better explains workflow.
2022-08-01 17:01:01 +02:00
Misha133
cf25acdbc1 docs: Add IgnoreGroupNames clarification to IF docs (#2374) 2022-08-01 13:39:11 +02:00
misticos
06ed995122 docs: Add ServerStarter.Host to deployment.md (#2385) 2022-08-01 13:37:41 +02:00
Misha133
ee6e0adf7c Add RequiredInput to example modal (#2348) - Misha-133 2022-08-01 13:23:43 +02:00
Wojciech Berdowski
e0d68d47d4 Add note about voice binaries on linux
Makes voice section about precompiled binaries more visible.
2022-08-01 13:20:48 +02:00
Cenk Ergen
05120f0428 Add AutoServiceScopes to IF docs 2022-08-01 13:19:34 +02:00
Quin Lynch
20f0932612 meta: 3.7.2 2022-06-02 12:03:38 -03:00
Quin Lynch
b50afd7d8d meta: 3.7.1 2022-05-27 08:43:04 -03:00
Quin Lynch
ac3b1a4f89 meta: 3.7.0 2022-05-24 02:56:21 -03:00
ShineSyndrome
aae549a976 fix: typo in modal section of docs (#2318) 2022-05-24 02:29:42 -03:00
Misha133
20bd2e9e2f [Docs] Autocomplete examples (#2288)
* Improved example in int.framework intro

* Added example to `autocompletion`

* modified example to utilise user's input

* added case insensetive matching; mentioned that 25 suggestions is an API limit
2022-05-18 04:52:38 -03:00
Raiden Shogun
442fea1340 Added IAttachment to docs#2302) 2022-05-18 04:47:55 -03:00
Quin Lynch
2f58ddc6a0 meta: 3.6.1 2022-04-30 19:06:23 -03:00
Quin Lynch
27226f0839 meta: 3.6.0 2022-04-28 12:27:29 -03:00
Armano den Boef
9bd088f9b9 [Docs] Adding permission docs for interaction framework (#2265)
* Get rid of mediatrsample sln

* Add framework perms doc

* Append suggestion

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Append suggestion

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
2022-04-28 12:21:00 -03:00
Cenk Ergen
f5dbb95610 docs: Interaction Service Perms-v2 docs (#2263)
* add perms v2 docs

* add perms v2 docs
2022-04-28 08:48:37 -03:00
Ge
2b49322a54 docs: Fix TextCommands reference in first-bot.md (#2264) 2022-04-28 08:48:11 -03:00
Diego-VP20
26c1a7e80f docs: Add files to the parameters (#2244) 2022-04-27 11:08:07 -03:00
Misha133
18f001e37b [DOCS] Group commands example (#2246)
* add Group Command Examples to int_framework intro

* update subcommad group's name

* added some comments t othe example code

* fixed naming

* added spaces in comments
2022-04-22 07:26:54 -03:00
MrCakeSlayer
8eec6a00ac Fix log severity mapping for guide sample (#2249) 2022-04-18 03:51:40 -03:00
Quin Lynch
9992874703 meta: 3.5.0 2022-04-05 16:21:33 -03:00
Duke
53ab9f3b16 MediatR Guide + sample (#2218)
* Add guide for MediatR

* Add sample for MediatR

* Fix exposed token in program.cs

* Fix review points

* Remove newline in MediatrDiscordEventListener.cs
2022-04-05 14:18:25 -03:00
clarotech
d1cf1bf02d Correct minor typo (#2228) 2022-04-05 14:12:06 -03:00
TricolorHen061
0439437a65 Fix small typo in modal example (#2216) 2022-04-04 18:20:09 -03:00
Quin Lynch
ce410513f4 feature: build overrides (#2212)
* add build overrides

* override docs

* add server submodule

* add overrides to build step

* remove testing api url

Co-Authored-By: Quahu <quahuu@gmail.com>

Co-authored-by: Quahu <quahuu@gmail.com>
2022-04-04 18:19:44 -03:00
Robin Sue
d5342e4585 Fix Serilog Level Mapping (#2202) 2022-03-26 09:42:07 -03:00
Raiden Shogun
c286b9978e Fixed typo (#2206)
`await arg2.Interaction.RespondAsync("Command exception: {arg3.ErrorReason}");` would never have showed the `ErrorReason` because a `$` was missing before the string.
2022-03-26 09:33:21 -03:00
Quin Lynch
e3fc96bc44 meta: 3.4.1 2022-03-09 17:33:25 -04:00
Armano den Boef
7262990654 Resolve complex param sample reference (#2166) 2022-03-03 17:19:25 -04:00
Quin Lynch
50d0000e26 meta: 3.4.0 2022-03-02 20:13:58 -04:00
Cenk Ergen
5522bc443d Create Complex Params Docs (#2160)
* create complex params docs

* Update docs/guides/int_framework/intro.md

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2022-03-02 20:02:12 -04:00
Quin Lynch
36d6ce9ec8 Unneeded build event (#2158)
Build() at the end of the command creation isn't needed. The build is done on line 34.

Co-authored-by: Cookiezzz <Cookiezzz@users.noreply.github.com>
2022-03-02 19:24:10 -04:00
Quin Lynch
c80067425a Display name support for enum type converter (#2156)
* Display name support for enum type converter

* allow display attribute on enum type converter

* update docs/examples to include enum Display sample

* Revert "allow display attribute on enum type converter"

This reverts commit a0eec5b7555d366f9de7421f6fcf6bc71f2a4557.

* adds ChoiceDisplay for enum type converters

* Update EnumChoiceAttribute.cs

* fix renamed folder issue

* fix namespace

Co-authored-by: Xeno <eliotd@gmail.com>
2022-03-02 19:23:51 -04:00
Armano den Boef
a13dce2550 FAQ rework, replacing outdated info, better interaction FAQ (#2106)
* FAQ rework, replacing outdated info, better interaction faq

* Update docs/faq/basics/getting-started.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/faq/basics/getting-started.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/faq/int_framework/general.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* fix TOC reference

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
Co-authored-by: Quin Lynch <lynchquin@gmail.com>
2022-03-02 16:24:34 -04:00
Ilay Nahman
b7f6db96ef Fix docs typos (#2119)
Changed frist to first and dont to don't
2022-03-02 15:09:57 -04:00
Duke
1fc07e742f Guides for Serilog and EFCore (#2134)
* Add serilog guide

* added suggestions from Rozen

* Add efcore guide

* Fix review changes

* Fix grammatical errors & review points
2022-03-02 15:08:51 -04:00
Almighty-Shogun
7d8911bfed Fixed documentation typo's (#2127)
* Fixed typo at line 39

On this code example for the documentation there was a typo on the README.md file at line 39. There was an `;` where there should not be one.

The code that had the typo:

```cs
var tb = new TextInputBuilder()
    .WithLabel("Labeled")
    .WithCustomId("text_input")
    .WithStyle(TextInputStyle.Paragraph)
    .WithMinLength(6); // This ";" does not belong here.
    .WithMaxLength(42)
    .WithRequired(true)
    .WithPlaceholder("Consider this place held.");
```

* Changed `ExecuteAsync` to `ExecuteCommandAsync`

`_interactionService.ExecuteAsync(ctx, serviceProvider);` cannot be executed because the method `ExecuteAsync` does not exists.

* Changed `componBuild()` to `components.Build()`
2022-03-02 15:07:15 -04:00
Quin Lynch
92445fb247 meta: bump version 2022-02-16 10:54:21 -04:00
Quin Lynch
62d4598fc9 meta: bump version 2022-02-16 08:40:56 -04:00
Sean
69da238a0f prefer shortened linq update (#2093) 2022-02-11 21:45:54 -04:00
Armano den Boef
01735c82fb Fix ToString() on CommandInfo (#2094) 2022-02-11 21:45:36 -04:00
Quin Lynch
0352374e74 meta: bump 3.3.0 2022-02-09 00:33:37 -04:00
Quin Lynch
c8f175e11a Feature: Implement modals (#2087)
* Implement Modals (#428)

* Socket Modal Support

* fix shareded client support

* Properly use `HasResponded` instead of `_hasResponded`

* `ModalBuilder` and `TextInputBuilder` validation.

* make orginisation more consistant.

* Rest Modals.

* Docs + add missing methods

* fix message signatures and missing abstract members

* modal changes

* um?????

* update modal docs

* update docs - again for some reason

* cleanup

* fix message signatures

* add modal commands support to interaction service

* Fix _hasResponded

* update to new unsupported standard.

* Sending modals with Interaction service.

* fix spelling in ComponentBuilder

* sending IModals when responding to interactions

* interaction service modals

* fix rest modals

* spelling and minor improvements.

* improve interaction service modal proformance

* use precompiled lambda for interaction service modals

* respect user compiled lambda choice

* changes to modals in the interaction service (more)

* support compiled lambdas in modal properties.

* modal interactions tweaks

* fix inline doc

* more modal docs

* configure responce to faild modal component

* init

* solve runtime errors

* solve build errors

* add default value parsing

* make modal info caching static

* make ModalUtils static

* add inline docs

* fix build errors

* code cleanup

* Introduce Required and Label properties as seperate attributes.

* replace internal dictionary of ModalInfo with a list

* change input building logic of modals

* update RespondWithModalAsync method

* add initial value parameter back to ModalTextInput and fix optional modal field

* add missing inline docs

* dispose the reference modal instance after building

* code cleanup on modalcommandbuilder

* Update docs/guides/int_basics/message-components/text-input.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/message-components/text-input.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/modals/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/modals/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/modals/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/modals/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/modals/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/modals/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_basics/modals/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_framework/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_framework/intro.md

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update docs/guides/int_framework/samples/intro/modal.cs

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

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

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update src/Discord.Net.Interactions/Attributes/Commands/ModalInteractionAttribute.cs

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update src/Discord.Net.Interactions/Attributes/Modals/RequiredInputAttribute.cs

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update src/Discord.Net.Interactions/InteractionServiceConfig.cs

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update src/Discord.Net.WebSocket/Entities/Interaction/MessageComponents/SocketMessageComponentData.cs

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Update src/Discord.Net.WebSocket/Entities/Interaction/Modals/SocketModalData.cs

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* update interaction service modal docs

* implements ExitOnMissingmModalField config option and adds Type field to modal info

* Add WithValue to text input builders

* Fix rare NRE on component enumeration

* Fix RequestOptions being required in some methods

* Use 'OfType' instead of 'Where'

* Remove android unsported warning

* Change publicity of properties in IInputComponeontBuilder.cs

Co-authored-by: Cenk Ergen <57065323+Cenngo@users.noreply.github.com>
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Remove complex parameter ref

Co-authored-by: CottageDwellingCat <80918250+CottageDwellingCat@users.noreply.github.com>
Co-authored-by: Cenk Ergen <57065323+Cenngo@users.noreply.github.com>
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
2022-02-09 00:17:56 -04:00
quin lynch
fddaac9a21 meta: bump version 2022-01-30 03:10:29 -04:00
Armano den Boef
f52513188f Fix markdown formatting in Glossary (#2064) 2022-01-27 10:12:04 -04:00
Armano den Boef
b14af1c008 Adding Entity guides, flowcharts, better sample system. (#2054)
* initial

* Interaction glossary entry

* Sharded Interaction sample

* Renames into solution

* Debugging samples

* Modify target location for webhookclient

* Finalizing docs work, resolving docfx errors.

* Adding threaduser to user chart

* Add branch info to readme.

* Edits to user chart

* Resolve format for glossary entries

* Patch sln target

* Issue with file naming fixed

* Patch 1/x for builds

* Appending suggestions
2022-01-27 09:50:49 -04:00
Rob Aguilar
b0f59e3eb9 Update creating-context-menu-commands.md (#2061)
Fix typo
Add missing semicolon
2022-01-27 09:50:26 -04:00
quin lynch
5897dc5a45 chore: update year and version 2022-01-15 06:42:01 -04:00
Quin Lynch
c1641f12fc Update v2->v3 guide and index page (#2039)
* Update v2->v3 guide and index

* Fix format on save fail

* Update index.md

* Update discord widget id

* Fix formatting
2022-01-14 07:55:17 -04:00
quin lynch
99d8ca4b6b Update bulk-overwrite-of-global-slash-commands.md
Co-Authored-By: Cookiezzz <2996654+Cookiezzz@users.noreply.github.com>
2022-01-10 20:11:43 -04:00