Table of Contents

Class HttpInteractionFactory

Namespace
NetCord.Rest
Assembly
NetCord.dll
public static class HttpInteractionFactory
Inheritance
HttpInteractionFactory
Inherited Members

Methods

Create(Stream, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task>, RestClient)

public static IInteraction Create(Stream body, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task> sendResponseAsync, RestClient client)

Parameters

body Stream
sendResponseAsync Func<IInteraction, InteractionCallback, RestRequestProperties, CancellationToken, Task>
client RestClient

Returns

IInteraction

Create(ReadOnlySpan<byte>, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task>, RestClient)

public static IInteraction Create(ReadOnlySpan<byte> body, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task> sendResponseAsync, RestClient client)

Parameters

body ReadOnlySpan<byte>
sendResponseAsync Func<IInteraction, InteractionCallback, RestRequestProperties, CancellationToken, Task>
client RestClient

Returns

IInteraction

CreateAsync(Stream, RestClient, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task>, CancellationToken)

public static ValueTask<IInteraction> CreateAsync(Stream body, RestClient client, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task> sendResponseAsync, CancellationToken cancellationToken = default)

Parameters

body Stream
client RestClient
sendResponseAsync Func<IInteraction, InteractionCallback, RestRequestProperties, CancellationToken, Task>
cancellationToken CancellationToken

Returns

ValueTask<IInteraction>