Skip to content

Rework command filtering for processor specific commands#1914

Merged
akiraveliara merged 15 commits into
masterfrom
plerx/enhancement/CommandProcessorFilter
Jun 3, 2024
Merged

Rework command filtering for processor specific commands#1914
akiraveliara merged 15 commits into
masterfrom
plerx/enhancement/CommandProcessorFilter

Conversation

@Plerx2493

Copy link
Copy Markdown
Member

Summary

Looks at AllowedProcessor attributes and the commandcontext type used in the command method

@Plerx2493 Plerx2493 added enhancement commands For issues related to DSharpPlus.Commands labels May 23, 2024
@Plerx2493 Plerx2493 added this to the v5.0 milestone May 23, 2024
@Plerx2493 Plerx2493 requested review from OoLunar and akiraveliara May 23, 2024 15:02
Comment thread DSharpPlus.Commands/CommandsExtension.cs Outdated
Comment thread DSharpPlus.Commands/Processors/BaseCommandProcessor/BaseCommandProcessor.cs Outdated
@akiraveliara

Copy link
Copy Markdown
Member

@Plerx2493 Plerx2493 marked this pull request as ready for review May 26, 2024 18:01
Comment thread docs/articles/commands/processors/introduction.md Outdated
Comment thread DSharpPlus.Tests/Commands/CommandFiltering/TestMultiLevelSubCommandsFiltered.cs Outdated
@akiraveliara

Copy link
Copy Markdown
Member

does this also fix #1782 ?

@Plerx2493 Plerx2493 marked this pull request as draft May 28, 2024 23:40
@Plerx2493 Plerx2493 marked this pull request as ready for review June 1, 2024 19:36
@Plerx2493

Copy link
Copy Markdown
Member Author

does this also fix #1782 ?

Don't think so, will take a look later

@Plerx2493 Plerx2493 force-pushed the plerx/enhancement/CommandProcessorFilter branch from 7853eec to fc5f56e Compare June 2, 2024 19:01
@Plerx2493 Plerx2493 requested a review from akiraveliara June 3, 2024 12:24
Comment thread DSharpPlus.Commands/CommandsExtension.cs
Comment thread DSharpPlus.Tests/Commands/CommandFiltering/Tests.cs Outdated
Plerx2493 added 2 commits June 3, 2024 14:35
…sorFilter

# Conflicts:
#	DSharpPlus.Commands/Processors/SlashCommands/SlashCommandProcessor.cs
@akiraveliara akiraveliara merged commit 89000b4 into master Jun 3, 2024
@akiraveliara akiraveliara deleted the plerx/enhancement/CommandProcessorFilter branch June 3, 2024 12:56
OoLunar pushed a commit that referenced this pull request Oct 3, 2024
* Rework command filtering for processor specific commands

* formatting

* Compute ContextType from BaseCommandProcessor generic parameter

* using neat with syntax

* Add tests

* Fix test command class

* Make DSP.C internal open to other packages

* Internals only open to DPS.Tests

* Fix context menu processors and add tests for those

* Restructur command processors to allow better testing

* fix misclick and rework SlashCommandProcessor to allow better testing

* Better naming in SlashCommandProcessor

* finish docs

* Update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands For issues related to DSharpPlus.Commands enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants