Table of Contents

Class InteractionCallback

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class InteractionCallback : IHttpSerializable
Inheritance
InteractionCallback
Implements
Derived
Inherited Members

Properties

DeferredModifyMessage

For components, ACK an interaction and modify the original message later; the user does not see a loading state.

public static InteractionCallback DeferredModifyMessage { get; }

Property Value

InteractionCallback

Pong

ACK a ping interaction.

public static InteractionCallback Pong { get; }

Property Value

InteractionCallback

Type

[JsonPropertyName("type")]
public InteractionCallbackType Type { get; }

Property Value

InteractionCallbackType

Methods

Autocomplete(IEnumerable<ApplicationCommandOptionChoiceProperties>?)

Respond to an autocomplete interaction with suggested choices.

public static InteractionCallback<InteractionCallbackChoicesDataProperties> Autocomplete(IEnumerable<ApplicationCommandOptionChoiceProperties>? choices)

Parameters

choices IEnumerable<ApplicationCommandOptionChoiceProperties>

Returns

InteractionCallback<InteractionCallbackChoicesDataProperties>

DeferredMessage(MessageFlags?)

ACK an interaction and modify a response later, the user sees a loading state.

public static InteractionCallback<InteractionMessageProperties> DeferredMessage(MessageFlags? flags = null)

Parameters

flags MessageFlags?

Returns

InteractionCallback<InteractionMessageProperties>

Message(InteractionMessageProperties)

Respond to an interaction with a message.

public static InteractionCallback<InteractionMessageProperties> Message(InteractionMessageProperties message)

Parameters

message InteractionMessageProperties

Returns

InteractionCallback<InteractionMessageProperties>

Modal(ModalProperties)

Respond to an interaction with a popup modal.

public static InteractionCallback<ModalProperties> Modal(ModalProperties modal)

Parameters

modal ModalProperties

Returns

InteractionCallback<ModalProperties>

ModifyMessage(Action<MessageOptions>)

For components, modify the message the component was attached to.

public static InteractionCallback<MessageOptions> ModifyMessage(Action<MessageOptions> action)

Parameters

action Action<MessageOptions>

Returns

InteractionCallback<MessageOptions>

Serialize()

Serializes the object or its part into HttpContent.

public HttpContent Serialize()

Returns

HttpContent