Table of Contents

Class PingInteraction

Namespace
NetCord
Assembly
NetCord.dll
public class PingInteraction : Entity, IEquatable<Entity>, IInteraction, IEntity, ISpanFormattable, IFormattable, IJsonModel<JsonInteraction>
Inheritance
PingInteraction
Implements
Inherited Members

Constructors

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

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

Parameters

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

Properties

AppPermissions

public Permissions AppPermissions { get; }

Property Value

Permissions

ApplicationId

public ulong ApplicationId { get; }

Property Value

ulong

Entitlements

public IReadOnlyList<Entitlement> Entitlements { get; }

Property Value

IReadOnlyList<Entitlement>

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

Token

public string Token { get; }

Property Value

string

User

public User User { get; }

Property Value

User

Methods

SendResponseAsync(InteractionCallback, RestRequestProperties?, CancellationToken)

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

Parameters

callback InteractionCallback
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task