Skip to content

Derived types of ContextCommandAttribute should be able to set RunMode#3231

Merged
quinchs merged 1 commit into
discord-net:devfrom
xin9le:feature/RunMode
Mar 4, 2026
Merged

Derived types of ContextCommandAttribute should be able to set RunMode#3231
quinchs merged 1 commit into
discord-net:devfrom
xin9le:feature/RunMode

Conversation

@xin9le

@xin9le xin9le commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Description

ContextCommandAttribute exposes the RunMode property, allowing developers to choose whether an InteractionModule should be executed synchronously or asynchronously. However, there is currently no way to specify RunMode when using MessageCommandAttribute or UserCommandAttribute, which both inherit from ContextCommandAttribute. As a result, developers effectively cannot configure RunMode for these attributes.

This pull request adds support for specifying RunMode in the constructors of MessageCommandAttribute and UserCommandAttribute.

Changes

  • Added a RunMode parameter to the constructors of MessageCommandAttribute and UserCommandAttribute.

Related Issues

  • Nothing

@Misha-133 Misha-133 requested a review from Cenngo February 13, 2026 21:28
@quinchs quinchs merged commit 8556416 into discord-net:dev Mar 4, 2026
2 checks passed
@xin9le xin9le deleted the feature/RunMode branch March 4, 2026 12:03
kshitijanurag pushed a commit to kshitijanurag/Discord.Net that referenced this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants