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
Version
int Version { get; }
Property Value
Methods
CreateFromJson(JsonInteraction, Func<IInteraction, InteractionCallback, bool, RestRequestProperties?, CancellationToken, Task<InteractionCallbackResponse?>>, RestClient)
public static IInteraction CreateFromJson(JsonInteraction jsonModel, Func<IInteraction, InteractionCallback, bool, RestRequestProperties?, CancellationToken, Task<InteractionCallbackResponse?>> sendResponseAsync, RestClient client)
Parameters
jsonModel
JsonInteractionsendResponseAsync
Func<IInteraction, InteractionCallback, bool, RestRequestProperties, CancellationToken, Task<InteractionCallbackResponse>>client
RestClient
Returns
SendResponseAsync(InteractionCallback, bool, RestRequestProperties?, CancellationToken)
Task<InteractionCallbackResponse?> SendResponseAsync(InteractionCallback callback, bool withResponse = false, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
callback
InteractionCallbackwithResponse
boolproperties
RestRequestPropertiescancellationToken
CancellationToken