Class DiscordInteractionCallback
Represents a discord Interaction Callback Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
Inheritance
System.Object
DiscordInteractionCallback
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Models.Interaction
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordInteractionCallback : IDiscordInteractionCallback, IEquatable<DiscordInteractionCallback>
Constructors
| Improve this Doc View SourceDiscordInteractionCallback()
Initializes a new DiscordInteractionCallback
Declaration
public DiscordInteractionCallback()
DiscordInteractionCallback(DiscordInteractionCallbackData)
Initializes a new DiscordInteractionCallback
Declaration
public DiscordInteractionCallback(DiscordInteractionCallbackData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordInteractionCallbackData | data | The data needed to create the DiscordInteractionCallback. |
Properties
| Improve this Doc View SourceAllowedMentions
Allowed mentions object.
Declaration
public IDiscordAllowedMentions AllowedMentions { get; set; }
Property Value
Type | Description |
---|---|
IDiscordAllowedMentions |
Components
Message components.
Declaration
public IEnumerable<IDiscordComponent> Components { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordComponent> |
Content
The message content.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Embeds
A list of embed that will be added tot he response.
Declaration
public IEnumerable<IDiscordEmbed> Embeds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordEmbed> |
Remarks
Supports up to 10 embeds.
Flags
Interaction callback flags.
Declaration
public DiscordMessageFlags? Flags { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordMessageFlags> |
Remarks
Only SuppressEmbeds and Ephemeral can be set.
IsTts
Whether or not the response is TTS.
Declaration
public bool? IsTts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
public DiscordInteractionCallbackData ToDataModel()
Returns
Type | Description |
---|---|
DiscordInteractionCallbackData | The converted DiscordInteractionCallbackData. |
Implements
System.IEquatable<T>