Class MessageCommandInfo
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Represents the info class of an attribute based method for command type Message.
public class MessageCommandInfo : ContextCommandInfo, ICommandInfo, IApplicationCommandInfo- Inheritance
- 
      
      
      
      MessageCommandInfo
- Implements
- Inherited Members
Methods
ExecuteAsync(IInteractionContext, IServiceProvider)
Executes the command with the provided context.
public override Task<IResult> ExecuteAsync(IInteractionContext context, IServiceProvider services)Parameters
- contextIInteractionContext
- The execution context. 
- servicesIServiceProvider
- Dependencies 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
- contextIInteractionContext
Returns
ParseArgumentsAsync(IInteractionContext, IServiceProvider)
protected override Task<IResult> ParseArgumentsAsync(IInteractionContext context, IServiceProvider services)Parameters
- contextIInteractionContext
- servicesIServiceProvider