Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Add missing guild features #422

Merged
merged 5 commits into from
Jan 14, 2022
Merged

Conversation

quinchs
Copy link
Member

@quinchs quinchs commented Jan 14, 2022

Summary

This PR adds the missing guild features from #418 and adds some checks related to #408.

@quinchs quinchs added the Enhancement New feature or request label Jan 14, 2022
@quinchs quinchs requested a review from lhjt January 14, 2022 09:29
@quinchs quinchs merged commit e4b3f60 into release/3.x Jan 14, 2022
@quinchs quinchs deleted the feature/add-missing-guild-features branch January 14, 2022 09:34
quinchs added a commit that referenced this pull request Apr 1, 2022
* add permission v2 support to interaction service

* add inline docs and rename DefaultMemberPermision to DefaultMemberPermissions

* fix renaming errors

* DefaultMemberPermissions now propagate down the command hiearchy

* Docs update (#417)

* Readme rework

* Spelling & format in index

* Update upgrade guide

Resolves DNET issue #2029

* Update markdown format

* Add missing guild features (#422)

* init

* Add summaries

* Update src/Discord.Net.Core/Entities/Guilds/GuildFeatures.cs

Co-authored-by: Jared L <[email protected]>

* Update src/Discord.Net.Core/Entities/Guilds/GuildFeature.cs

Co-authored-by: Jared L <[email protected]>

* Update src/Discord.Net.Core/Entities/Guilds/GuildFeature.cs

Co-authored-by: Jared L <[email protected]>

Co-authored-by: Jared L <[email protected]>

* Add default ratelimit callback (#421)

* Add AddRow and WithRows (#420)

* Add AddRow and WithRows

* Add missing summary

* Add GetChannelType extension method (#423)

* Create ChannelExtensions.cs

* Update ChannelExtensions.cs

Co-Authored-By: Jared L <[email protected]>

* Fix exception when uploading files (#424)

* Fix ApplicationId in Interactions (#426)

* Add 50086 Error code (#432)

Co-authored-by: DnetRobot <[email protected]>

* Unneeded build event (#433)

Build() at the end of the command creation isn't needed. The build is done on line 34.

* Enforce valid button styles (#429)

* Use IEnumerable instead of array for reactions (#427)

* Add IsInvitable and CreatedAt to threads (#442)

* Add IsInvitable and CreatedAt to threads

* Update src/Discord.Net.Core/Entities/Channels/IThreadChannel.cs

Co-authored-by: Jared L <[email protected]>

* 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 <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

* Update docs/guides/int_framework/intro.md

Co-authored-by: Jared L <[email protected]>

* Update docs/guides/int_framework/intro.md

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

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

Co-authored-by: Jared L <[email protected]>

* 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 <[email protected]>
Co-authored-by: Jared L <[email protected]>

* Fix usage of CacheMode.AllowDownload in channels (#446)

* [Robot] Add missing json error (#444)

* Add 30046, 50068 Error codes

* Update src/Discord.Net.Core/DiscordErrorCode.cs

Co-authored-by: DnetRobot <[email protected]>
Co-authored-by: Quin Lynch <[email protected]>

* Add support for attachments (#445)

* Enforce valid button styles

* support command option type 11

* missing '.'

* Added type converter.

Co-authored-by: Cat <[email protected]>
Co-authored-by: CottageDwellingCat <[email protected]>

* Feature: Allow modifying attachments on interactions and extend the module base (#447)

* fix browser

* Fix Current user null on reconnect (#448)

Co-authored-by: Armano den Boef <[email protected]>
Co-authored-by: Quin Lynch <[email protected]>
Co-authored-by: Jared L <[email protected]>
Co-authored-by: Discord-NET-Robot <[email protected]>
Co-authored-by: DnetRobot <[email protected]>
Co-authored-by: Cookiezzz <[email protected]>
Co-authored-by: CottageDwellingCat <[email protected]>
Co-authored-by: Steven <[email protected]>
Co-authored-by: sabihoshi <[email protected]>
Co-authored-by: FeroxFoxxo <[email protected]>
Co-authored-by: Cat <[email protected]>
Co-authored-by: Quin Lynch <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants