Table of Contents

Class InteractionCallback

Namespace
NetCord.Rest
Assembly
NetCord.dll
public static class InteractionCallback
Inheritance
InteractionCallback
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 InteractionCallbackProperties DeferredModifyMessage { get; }

Property Value

InteractionCallbackProperties

LaunchActivity

Launch the Activity associated with the app. Only available for apps with Activities enabled.

public static InteractionCallbackProperties LaunchActivity { get; }

Property Value

InteractionCallbackProperties

Pong

ACK a ping interaction.

public static InteractionCallbackProperties Pong { get; }

Property Value

InteractionCallbackProperties

Methods

Autocomplete(IEnumerable<ApplicationCommandOptionChoiceProperties>?)

Respond to an autocomplete interaction with suggested choices.

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

Parameters

choices IEnumerable<ApplicationCommandOptionChoiceProperties>

Returns

InteractionCallbackProperties<InteractionCallbackChoicesDataProperties>

DeferredMessage(MessageFlags?)

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

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

Parameters

flags MessageFlags?

Returns

InteractionCallbackProperties<InteractionMessageProperties>

Message(InteractionMessageProperties)

Respond to an interaction with a message.

public static InteractionCallbackProperties<InteractionMessageProperties> Message(InteractionMessageProperties message)

Parameters

message InteractionMessageProperties

Returns

InteractionCallbackProperties<InteractionMessageProperties>

Modal(ModalProperties)

Respond to an interaction with a popup modal.

public static InteractionCallbackProperties<ModalProperties> Modal(ModalProperties modal)

Parameters

modal ModalProperties

Returns

InteractionCallbackProperties<ModalProperties>

ModifyMessage(Action<MessageOptions>)

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

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

Parameters

action Action<MessageOptions>

Returns

InteractionCallbackProperties<MessageOptions>