Table of Contents

Struct InteractionProperties

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

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

ulong?

Remarks

This will be null if this interaction is Ping.

CommandType

Gets the type of application command this interaction represents.

public ApplicationCommandType? CommandType { get; }

Property Value

ApplicationCommandType?

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

string

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

ulong?

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

string

Remarks

This will be Empty if the Type is not ApplicationCommand.

Type

The type of this interaction.

public InteractionType Type { get; }

Property Value

InteractionType