Table of Contents

Interface IInteraction

Namespace
NetCord
Assembly
NetCord.dll
public interface IInteraction : IEntity, ISpanFormattable, IFormattable, IJsonModel<JsonInteraction>
Inherited Members

Properties

AppPermissions

Permissions AppPermissions { get; }

Property Value

Permissions

ApplicationId

ulong ApplicationId { get; }

Property Value

ulong

Entitlements

IReadOnlyList<Entitlement> Entitlements { get; }

Property Value

IReadOnlyList<Entitlement>

Token

string Token { get; }

Property Value

string

User

User User { get; }

Property Value

User

Methods

CreateFromJson(JsonInteraction, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task>, RestClient)

public static IInteraction CreateFromJson(JsonInteraction jsonModel, Func<IInteraction, InteractionCallback, RestRequestProperties?, CancellationToken, Task> sendResponseAsync, RestClient client)

Parameters

jsonModel JsonInteraction
sendResponseAsync Func<IInteraction, InteractionCallback, RestRequestProperties, CancellationToken, Task>
client RestClient

Returns

IInteraction

SendResponseAsync(InteractionCallback, RestRequestProperties?, CancellationToken)

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

Parameters

callback InteractionCallback
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task