Struct InteractionProperties
Represents a class that contains data present in all interactions to evaluate against at rest-interaction creation.
public readonly struct InteractionProperties
- Inherited Members
Properties
ChannelId
Gets the channel ID of the interaction.
public ulong? ChannelId { get; }
Property Value
Remarks
CommandType
Gets the type of application command this interaction represents.
public ApplicationCommandType? CommandType { get; }
Property Value
Remarks
This will be null if the Type is not ApplicationCommand.
CustomId
Gets the custom ID of the interaction.
public string CustomId { get; }
Property Value
Remarks
This will be Empty if the Type is not MessageComponent or ModalSubmit.
GuildId
Gets the guild ID of the interaction.
public ulong? GuildId { get; }
Property Value
Remarks
This will be null if this interaction was not executed in a guild.
Name
Gets the name of the interaction.
public string Name { get; }
Property Value
Remarks
This will be Empty if the Type is not ApplicationCommand.
Type
The type of this interaction.
public InteractionType Type { get; }