Table of Contents

Class ApplicationCommandModule<TContext>

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public class ApplicationCommandModule<TContext> : BaseApplicationCommandModule<TContext> where TContext : IApplicationCommandContext

Type Parameters

TContext
Inheritance
ApplicationCommandModule<TContext>
Inherited Members

Constructors

ApplicationCommandModule()

public ApplicationCommandModule()

Methods

DeleteFollowupAsync(ulong, RestRequestProperties?, CancellationToken)

public Task DeleteFollowupAsync(ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

messageId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

DeleteResponseAsync(RestRequestProperties?, CancellationToken)

public Task DeleteResponseAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

FollowupAsync(InteractionMessageProperties, RestRequestProperties?, CancellationToken)

public Task<RestMessage> FollowupAsync(InteractionMessageProperties message, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

message InteractionMessageProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

GetFollowupAsync(ulong, RestRequestProperties?, CancellationToken)

public Task<RestMessage> GetFollowupAsync(ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

messageId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

GetResponseAsync(RestRequestProperties?, CancellationToken)

public Task<RestMessage> GetResponseAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

ModifyFollowupAsync(ulong, Action<MessageOptions>, RestRequestProperties?, CancellationToken)

public Task<RestMessage> ModifyFollowupAsync(ulong messageId, Action<MessageOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

messageId ulong
action Action<MessageOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

ModifyResponseAsync(Action<MessageOptions>, RestRequestProperties?, CancellationToken)

public Task<RestMessage> ModifyResponseAsync(Action<MessageOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<MessageOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

RespondAsync(InteractionCallback, RestRequestProperties?, CancellationToken)

public Task RespondAsync(InteractionCallback callback, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

callback InteractionCallback
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task