Class UserCommandInfo
Represents the info class of an attribute based method for command type User.
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class UserCommandInfo : ContextCommandInfo, ICommandInfo, IApplicationCommandInfo
Methods
| Improve this Doc View SourceExecuteAsync(IInteractionContext, IServiceProvider)
Executes the command with the provided context.
Declaration
public override async Task<IResult> ExecuteAsync(IInteractionContext context, IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context | The execution context. |
IServiceProvider | services | Dependencies that will be used to create the module instance. |
Returns
Type | Description |
---|---|
Task<IResult> | A task representing the execution process. The task result contains the execution result. |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.ExecuteAsync(Discord.IInteractionContext, IServiceProvider)
|
Improve this Doc
View Source
GetLogString(IInteractionContext)
Declaration
protected override string GetLogString(IInteractionContext context)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context |
Returns
Type | Description |
---|---|
String |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.GetLogString(Discord.IInteractionContext)
|
Improve this Doc
View Source
ParseArgumentsAsync(IInteractionContext, IServiceProvider)
Declaration
protected override Task<IResult> ParseArgumentsAsync(IInteractionContext context, IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context | |
IServiceProvider | services |
Returns
Type | Description |
---|---|
Task<IResult> |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.ParseArgumentsAsync(Discord.IInteractionContext, IServiceProvider)