* update customId template generator to escape regex metachars used in template literals
* add clarification to TreatAsRegex prop documentation.
* Implement channel ApplicationCommandPermissionTarge
* implement channel target in ApplicationCommandPermission and add static methods for targeting @everyone and all channels
* Revert "add clarification to TreatAsRegex prop documentation."
This reverts commit 6eab5878a7ddff4e949a90d446f2e3dfe2e9c506.
* fix oopsie
* 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>
* add `nsfw` to data model & internal methods; add missing property
* add `nsfw` prop to command builders
* add `NsfwCommandAttribute` to Interaction Framework
* working state
* docs?
* Initial V2 permissions
* add perms-v2 attributes and properties, add deprecation messages
* add perms-v2 properties to command info classes
* add perms-v2 fields to Rest/SocketApplicationCommand entities and IApplicationCommand
* fix json name of DmPermission field
Co-authored-by: Cenngo <cenk.ergen1@gmail.com>
* add modifyModal deleagate parameter to RespondWithModalAsync extension method
* change the position of the new parameter to avoid introducing a breaking change
* 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>
* 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>