Interface IInteraction
- Namespace
- NetCord
- Assembly
- NetCord.dll
public interface IInteraction : IEntity, ISpanFormattable, IFormattable, IJsonModel<JsonInteraction>
- Inherited Members
Properties
AppPermissions
Permissions AppPermissions { get; }
Property Value
ApplicationId
ulong ApplicationId { get; }
Property Value
Entitlements
IReadOnlyList<Entitlement> Entitlements { get; }
Property Value
Token
string Token { get; }
Property Value
User
User User { get; }
Property Value
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
JsonInteractionsendResponseAsync
Func<IInteraction, InteractionCallback, RestRequestProperties, CancellationToken, Task>client
RestClient
Returns
SendResponseAsync(InteractionCallback, RestRequestProperties?, CancellationToken)
Task SendResponseAsync(InteractionCallback callback, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
callback
InteractionCallbackproperties
RestRequestPropertiescancellationToken
CancellationToken