Class ModalCommandInfo
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Represents the info class of an attribute based method for handling Modal Interaction events.
public class ModalCommandInfo : CommandInfo<ModalCommandParameterInfo>, ICommandInfo
- Inheritance
-
ModalCommandInfo
- Implements
- Inherited Members
Properties
Modal
public ModalInfo Modal { get; }
Property Value
Parameters
Gets a collection of the parameters of this command.
public override IReadOnlyList<ModalCommandParameterInfo> Parameters { get; }
Property Value
SupportsWildCards
Gets whether this command supports wild card patterns.
public override bool SupportsWildCards { get; }
Property Value
Methods
ExecuteAsync(IInteractionContext, IServiceProvider)
Executes the command with the provided context.
public override Task<IResult> ExecuteAsync(IInteractionContext context, IServiceProvider services)
Parameters
context
IInteractionContextThe execution context.
services
IServiceProviderDependencies that will be used to create the module instance.
Returns
- Task<IResult>
A task representing the execution process. The task result contains the execution result.
GetLogString(IInteractionContext)
protected override string GetLogString(IInteractionContext context)
Parameters
context
IInteractionContext
Returns
InvokeModuleEvent(IInteractionContext, IResult)
protected override Task InvokeModuleEvent(IInteractionContext context, IResult result)
Parameters
context
IInteractionContextresult
IResult
Returns
ParseArgumentsAsync(IInteractionContext, IServiceProvider)
protected override Task<IResult> ParseArgumentsAsync(IInteractionContext context, IServiceProvider services)
Parameters
context
IInteractionContextservices
IServiceProvider