Table of Contents

Class ApplicationCommandResultHandler<TContext>

Namespace
NetCord.Hosting.Services.ApplicationCommands
Assembly
NetCord.Hosting.Services.dll
public class ApplicationCommandResultHandler<TContext> : IApplicationCommandResultHandler<TContext> where TContext : IApplicationCommandContext

Type Parameters

TContext
Inheritance
ApplicationCommandResultHandler<TContext>
Implements
Inherited Members

Constructors

ApplicationCommandResultHandler()

protected ApplicationCommandResultHandler()

Properties

Default

public static ApplicationCommandResultHandler<TContext> Default { get; }

Property Value

ApplicationCommandResultHandler<TContext>

Ephemeral

public static ApplicationCommandResultHandler<TContext> Ephemeral { get; }

Property Value

ApplicationCommandResultHandler<TContext>

Methods

GetFailMessageAsync(IFailResult, TContext, IServiceProvider)

public virtual ValueTask<InteractionMessageProperties> GetFailMessageAsync(IFailResult failResult, TContext context, IServiceProvider services)

Parameters

failResult IFailResult
context TContext
services IServiceProvider

Returns

ValueTask<InteractionMessageProperties>

HandleResultAsync(IExecutionResult, TContext, GatewayClient?, ILogger, IServiceProvider)

public ValueTask HandleResultAsync(IExecutionResult result, TContext context, GatewayClient? client, ILogger logger, IServiceProvider services)

Parameters

result IExecutionResult
context TContext
client GatewayClient
logger ILogger
services IServiceProvider

Returns

ValueTask