Class ComponentInteractionModule<TContext>
- Namespace
- NetCord.Services.ComponentInteractions
- Assembly
- NetCord.Services.dll
public class ComponentInteractionModule<TContext> : BaseComponentInteractionModule<TContext> where TContext : IComponentInteractionContext
Type Parameters
TContext
- Inheritance
-
ComponentInteractionModule<TContext>
- Inherited Members
-
Constructors
ComponentInteractionModule()
public ComponentInteractionModule()
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