Class InteractionCallback
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
Pong
ACK a ping interaction.
public static InteractionCallback Pong { get; }
Property Value
Type
[JsonPropertyName("type")]
public InteractionCallbackType Type { get; }
Property Value
Methods
Autocomplete(IEnumerable<ApplicationCommandOptionChoiceProperties>?)
Respond to an autocomplete interaction with suggested choices
.
public static InteractionCallback<InteractionCallbackChoicesDataProperties> Autocomplete(IEnumerable<ApplicationCommandOptionChoiceProperties>? choices)
Parameters
Returns
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
Message(InteractionMessageProperties)
Respond to an interaction with a message
.
public static InteractionCallback<InteractionMessageProperties> Message(InteractionMessageProperties message)
Parameters
message
InteractionMessageProperties
Returns
Modal(ModalProperties)
Respond to an interaction with a popup modal
.
public static InteractionCallback<ModalProperties> Modal(ModalProperties modal)
Parameters
modal
ModalProperties
Returns
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
Serialize()
Serializes the object or its part into HttpContent.
public HttpContent Serialize()